Search Facebook posts by keyword across all of Facebook. Returns post content, engagement metrics (reactions, comments, shares), author data, and media. Supports pagination and date filtering.
curl "https://apidirect.io/v1/facebook/posts?query=artificial%20intelligence&start_date=2026-01-01" \
-H "X-API-Key: YOUR_API_KEY"
{
"posts": [
{
"post_id": "100087654321_998877665544",
"url": "https://www.facebook.com/permalink.php?id=100087654321&story_fbid=998877665544",
"message": "The latest breakthroughs in artificial intelligence are truly remarkable. Here is what caught my attention this week...",
"date": "2026-03-01 11:00:00",
"timestamp": 1772445600,
"author_name": "Tech Daily",
"author_id": "100087654321",
"author_url": "https://www.facebook.com/TechDaily",
"author_profile_picture": "https://scontent.xx.fbcdn.net/v/t39.30808-1/...",
"comments_count": 89,
"reactions_count": 1540,
"reshare_count": 320,
"reactions": {"like": 900, "love": 350, "wow": 180, "haha": 10, "sad": 50, "angry": 50},
"image_url": "https://scontent.xx.fbcdn.net/v/t39.30808-6/...",
"video": null,
"external_url": null
}
],
"count": 1,
"pages": 1
}
You can search all public Facebook posts including posts from pages, public groups, and public user profiles. Private content is not accessible.
Use start_date and end_date in YYYY-MM-DD format to narrow results to a specific time range. You can use one or both parameters.
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.
You only pay for successful requests. The Facebook Search Posts API costs $0.008 per page. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.
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.
Yes, there's a concurrency limit of 3 simultaneous requests per endpoint per user. If you need more, just get in touch.
Get your API key and start making requests in minutes. 50 requests/month free every month.
Get API Key