# Facebook Search Posts API (https://www.socialcrawl.dev/platforms/facebook/search-posts) > Searches public Facebook posts by keyword and returns unified Post items: text, permalink, publish time, like count, comment count, share count, author, and media when Facebook exposes them. About 5 to 7 posts a page. `recent_posts=true` ranks by recency; `start_date` and `end_date` (YYYY-MM-DD) bound the window. Duplicate ids across consecutive pages are Facebook search behaviour, not a pagination bug. Forward `pagination.next_cursor` as `cursor`. TL;DR: `GET /v1/facebook/search/posts` costs 1 credit per call and returns SocialCrawl's unified JSON schema. Single x-api-key auth, 100 free credits on signup. ## Parameters | Parameter | Required | Description | | --- | --- | --- | | `query` | yes | Keyword or phrase to search for. | | `cursor` | no | Cursor from the previous response. | | `start_date` | no | Include posts on or after this date (YYYY-MM-DD). | | `end_date` | no | Include posts on or before this date (YYYY-MM-DD). | | `recent_posts` | no | When true, rank by recency instead of relevance. | | `location_uid` | no | Facebook location id to scope the search. | ## Code example ```bash curl "https://www.socialcrawl.dev/v1/facebook/search/posts?query=NASA" \ -H "x-api-key: sc_YOUR_API_KEY" ``` See the full Facebook API: https://www.socialcrawl.dev/platforms/facebook ## Pricing - Standard endpoints: 1 credit per call - Advanced endpoints: 5 credits per call - Premium endpoints: 10 credits per call - 100 free credits on signup, no credit card required. Cached responses cost 0 credits. Credit packs never expire. - Full pricing: https://www.socialcrawl.dev/pricing