Facebook Ad Search
From AnyAPI, through Joshu Data Bodega.
Part of Facebook ads.
- Price
- $0.0022 per call$2.20 per 1,000 calls
No calls measured in the last 30 days.
Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.
Inputs
jqstring, optionaljq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
querystring, requiredKeyword to search the Meta Ad Library for (e.g. "protein powder").
adTypestring: all, political_and_issue_ads, optionalRestrict to all ads (default) or only political and issue ads.
cursorstring, optionalOpaque pagination cursor from a previous response's nextCursor.
fieldsstring, optionalComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
sortBystring: impressions, recent, optionalSort order: impressions (highest first, the default) or recent (most recent).
statusstring: ALL, ACTIVE, INACTIVE, optionalAd status filter.
countrystring, optionalTwo-letter country code to scope results. Omit for all countries.
endDatestring, optionalFilter to ads with impressions on or before this date, in YYYY-MM-DD format.
summaryboolean, optional`true` returns only an outline: keys, item counts, per-field sizes.
max_itemsinteger, optionalCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
mediaTypestring: ALL, IMAGE, VIDEO, MEME, IMAGE_AND_MEME, NONE, optionalCreative media type filter.
startDatestring, optionalFilter to ads with impressions on or after this date, in YYYY-MM-DD format.
searchTypestring: keyword_unordered, keyword_exact_phrase, optionalMatch mode for the query: loose keyword match (keyword_unordered, the default) or exact phrase (keyword_exact_phrase).
Call it
curl https://hello.joshu.me/api/router/call \
-H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "anyapi.facebook.ads_search",
"params": {
"query": "nike",
"country": "US",
"searchType": "keyword_exact_phrase"
}
}'