PeumeAPI

Social media data · Facebook

Facebook Post Search

Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).

$0.099 per callUsually answers in under a minute

Call it

curl https://api.peume.com/v1/call/facebook-post-search \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "limit": 3,
    "query": "nike"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: facebook-post-search.

Parameters

fieldsstring

Comma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.

max_itemsinteger

Caps the result rows returned; `_truncated` says how many were withheld. Not the charge.

summaryboolean

`true` returns only an outline: keys, item counts, per-field sizes.

jqstring

jq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.

endDatestring

Only return posts published on or before this date, format YYYY-MM-DD (e.g. 2024-12-31).

limitinteger

Maximum number of results to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.

Example: 3

locationstring

Optional location to narrow results; include both city and country for best matches (e.g. 'Paris, France').

queryRequiredstring

Keyword or phrase to search Facebook posts for (e.g. 'product launch').

Example: nike

startDatestring

Only return posts published on or after this date, format YYYY-MM-DD (e.g. 2024-01-01).

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.