Search posts

Search public Facebook posts by keyword, with date filters.

$0.003 per call1 req/sPOST

Request

POST https://dev-backend.tryingrow.com/public-api/facebook/search-posts

Send your key in the x-api-key header and a JSON body.

Body

FieldTypeDescription
date_postedstringFilter posts by year (e.g., "2021"). Optional. Must be between 2004 and current year.
end_cursorstringfor pagination - use the end_cursor from the previous request
end_datestringFilter posts until this date (YYYY-MM-DD format). Must be used together with start_date. Cannot be used with date_posted.
queryrequiredstringthe search query
recent_postsbooleanFilter by recent posts. Optional. Defaults to false
start_datestringFilter posts from this date (YYYY-MM-DD format). Must be used together with end_date. Cannot be used with date_posted.

Example

curl -X POST https://dev-backend.tryingrow.com/public-api/facebook/search-posts \
  -H "x-api-key: $INGROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"…"}'

Response

JSON from Facebook, fetched live. Every response also carries two headers: x-cost-usd with what the call cost and x-balance-usd with the balance left. Errors: 402 when the balance or your monthly spend limit is too low, 429 when over the rate limit (wait for retry-after seconds).

Pricing and limits

How much does the InGrow Search posts API cost?
$0.003 per successful call, taken from your InGrow balance. Failed calls are refunded, and every new organization starts with $1 free credit.
What is the rate limit of the Search posts API?
1 request per second per organization, shared by every Facebook endpoint. Over the limit returns 429 with a retry-after header.
How do I call the Search posts API?
Send POST https://dev-backend.tryingrow.com/public-api/facebook/search-posts with a JSON body and your API key in the x-api-key header. Required fields: query. The same key works through the InGrow MCP server.

More Facebook APIs