API Direct
Endpoints
Facebook Group Posts

Facebook Group Posts

GET /v1/facebook/group/posts
Documentation

Get posts from a public Facebook group by group ID. Returns post content, engagement metrics (reactions, comments, shares), and author data. Supports pagination and sorting.

Cost
$0.008 per page
Free tier
50 requests/month

Parameters

group_id *
Facebook group ID (use Group Details endpoint to get this)
pages
Number of pages to fetch (1-10, default 1). Billed per page.
sort_by
Sort order: most_recent or relevance (default: most_recent)
get_sentiment
Set to true to add AI emotion analysis (+$0.001/page)

Example Request

curl "https://apidirect.io/v1/facebook/group/posts?group_id=457987654321" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "post_id": "457987654321_1122334455",
      "url": "https://www.facebook.com/groups/python/posts/1122334455",
      "message": "Just released my new Python package for data validation. Check it out!",
      "sentiment": {
        "emotions": {
          "joy": 40,
          "trust": 55,
          "fear": 0,
          "surprise": 10,
          "sadness": 0,
          "disgust": 0,
          "anger": 0,
          "anticipation": 30
        },
        "dominant_emotion": "trust",
        "emotional_intensity": 5,
        "polarity": "positive"
      },
      "date": "2026-03-05 12:45:00",
      "timestamp": 1772793900,
      "author_name": "Alex Chen",
      "author_id": "100098765432",
      "author_url": "https://www.facebook.com/profile.php?id=100098765432",
      "author_profile_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/...",
      "comments_count": 45,
      "reactions_count": 230,
      "reshare_count": 18,
      "reactions": {"like": 150, "love": 50, "wow": 20, "haha": 5, "sad": 0, "angry": 5},
      "image_url": null,
      "video": null,
      "external_url": "https://pypi.org/project/example-package"
    }
  ],
  "count": 1,
  "pages": 1
}

Your Usage

Free tier this month
Loading...
Recent Activity