Search public Facebook posts by keyword, newest first, and return normalized post and engagement data. Sentiment stays disabled.
Endpoint
- Path:
/api/v1/facebook/search - Cost: 7 credits per successful request
Query parameters
| Name | Required | Description | Example |
|---|---|---|---|
query | Yes | The keyword or phrase to search for. | social listening |
raw | No | Include the unchanged provider response in the raw field. Defaults to false. | true |
curl --get 'https://api.sociallisteningapi.com/api/v1/facebook/search' \
--data-urlencode 'query=social listening' \
--data-urlencode 'raw=true' \
--header 'x-api-key: YOUR_API_KEY'Responses
{
"success": true,
"platform": "facebook",
"endpoint": "/api/v1/facebook/search",
"data": {
"items": [
{
"id": "122123115081122899",
"platform": "facebook",
"url": "https://www.facebook.com/example/posts/122123115081122899",
"content": {
"title": null,
"text": "A practical guide to social listening for small teams.",
"media_urls": [],
"thumbnail_url": null
},
"author": {
"id": "author_123",
"username": null,
"display_name": "Alex Morgan",
"avatar_url": "https://example.com/avatar.jpg",
"verified": null
},
"engagement": {
"views": null,
"likes": 48,
"comments": 7,
"shares": 3,
"saves": null
},
"published_at": "2026-08-05T01:30:00.000Z",
"ext": {
"author_url": "https://www.facebook.com/example",
"external_url": null,
"reactions": {
"like": 35,
"love": 10,
"care": 3,
"haha": 0,
"wow": 0,
"sad": 0,
"angry": 0
},
"video": null
}
}
]
},
"pagination": {
"next_cursor": null,
"has_more": false,
"page_size": 1
},
"raw": {
"count": 1,
"pages": 1,
"posts": []
},
"request_id": "req_example123",
"credits_used": 7,
"credits_remaining": 93
}