Search Public Facebook Posts
View all Facebook Public Data API endpoints →Supply query to search public posts; cursor, location_uid, recent_posts, start_date and end_date are documented optional inputs. The sampled NASA search returned results and a cursor, with post_id, url, message, numeric timestamp, author identity, comments_count, reactions_count, reshare_count, reaction breakdowns and nullable image or video references. Results included an official NASA post and related reporting, so relevance is not an exact-author filter. Only the query-only request was exercised; date formats, location filtering, recent_posts and continuation behavior still need validation. Search results are observations, not an exhaustive count of mentions or historical coverage.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/facebook-scraper/search-post API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/facebook-scraper/search-post?key=<API_KEY>&query=NASA'
Query Result
Use Cases
- Assemble a human-reviewed shortlist of public reporting and official posts about a news topic.
- Store observed brand-mention messages with author IDs and collection timestamps.
- Evaluate keyword relevance before treating a search query as a reliable brand-monitoring input.
- Compare media formats among returned topic posts without extrapolating total platform-wide volume.
Frequently asked questions
Do all keyword results come from the same official Page?
No. The NASA sample included both official posts and related reporting. Check author identity before classifying results.
Can I search posts within a date range?
start_date and end_date are available as parameters, but their accepted formats and effects have not been validated. Test on a small scope first.
Can the result count represent all mentions of a brand?
No. Search is an observation of currently visible content, not an exhaustive mention index or complete history.