Search posts within a specific Facebook group by keyword. Returns matching posts with content, engagement metrics, and author data. Supports pagination and date filtering.
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"
{
"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.",
"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-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
}