PeumeAPI

Search & SEO · Facebook

Search

Search the by keyword with country, status, and media filters.

$0.0028 per call

Call it

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

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-search-2.

Parameters

end_datestring

Impressions end date. Needs to be in YYYY-MM-DD format.

cursorstring

Cursor to paginate through results

countrystring

This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.

ad_typestring

Search for all ads or only political and issue ads

all · political_and_issue_ads

trimboolean

Set to true for a trimmed down version of the response

media_typestring

Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.

ALL · IMAGE · VIDEO · MEME · IMAGE_AND_MEME · NONE

queryRequiredstring

Keyword to search for

languagestring

Language to filter ads on. Needs to be a 2 letter language code, such as EN, ES, or FR.

sort_bystring

Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.

total_impressions · relevancy_monthly_grouped

search_typestring

If you want to search by exact phrase or not

keyword_unordered · keyword_exact_phrase

statusstring

Status of the ad. Defaults to ACTIVE.

ALL · ACTIVE · INACTIVE

start_datestring

Impressions start date. Needs to be in YYYY-MM-DD format.

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.