All endpoints
Facebook Group Search

Facebook Group Search API

Search posts within a specific Facebook group by keyword. Returns matching posts with content, engagement metrics, and author data. Supports pagination and date filtering.

Price: $0.008 per page
Free tier: 50 requests/month
Endpoint
GET /v1/facebook/group/search

Parameters

query *
Search keyword (max 500 characters)
group_id *
Facebook group ID to search within
pages
Number of pages to fetch (1-10, default 1). Billed per page.
start_date
Filter posts from this date (YYYY-MM-DD)
end_date
Filter posts until this date (YYYY-MM-DD)

Response fields

posts
Array of matching posts
post_id
Post ID
url
Direct link to the post
message
Post text content
date
Publication date and time
timestamp
Unix timestamp
author_name
Author display name
author_id
Author Facebook ID
author_url
Author profile URL
author_profile_picture
Author profile image URL
comments_count
Number of comments
reactions_count
Total number of reactions
reshare_count
Number of shares
reactions
Breakdown of reaction types
image_url
Attached image URL
video
Attached video data
external_url
External link in the post
count
Number of posts returned
pages
Number of pages fetched

Example Request

curl "https://apidirect.io/v1/facebook/group/search?query=data%20science&group_id=457987654321&start_date=2026-01-01" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "post_id": "457987654321_5566778899",
      "url": "https://www.facebook.com/groups/python/posts/5566778899",
      "message": "Best data science libraries in Python for 2026? Looking for recommendations beyond pandas and scikit-learn.",
      "date": "2026-02-28 08:20:00",
      "timestamp": 1772266800,
      "author_name": "Maria Lopez",
      "author_id": "100054321098",
      "author_url": "https://www.facebook.com/profile.php?id=100054321098",
      "author_profile_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/...",
      "comments_count": 67,
      "reactions_count": 124,
      "reshare_count": 5,
      "reactions": {"like": 80, "love": 25, "wow": 10, "haha": 4, "sad": 0, "angry": 5},
      "image_url": null,
      "video": null,
      "external_url": null
    }
  ],
  "count": 1,
  "pages": 1
}

Frequently asked questions

Can I search within private groups?

No, only public group content is searchable through the API. Private group content requires group membership.

How does date filtering work?

Use start_date and end_date parameters in YYYY-MM-DD format to narrow results to a specific time range. You can use one or both parameters.

How does pagination work?

Use the pages parameter to fetch multiple pages of results in a single request (1-10). Each page is billed separately. Default is 1 page.

How does pricing work?

You only pay for successful requests. The Facebook Group Search API costs $0.008 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.

Do I need a credit card to start?

No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.

Are there rate limits?

Yes, there's a concurrency limit of 3 simultaneous requests per endpoint per user. If you need more, just get in touch.

Start using the Facebook Group Search API

Get your API key and start making requests in minutes. 50 requests/month free every month.

Get API Key