Ads from Meta's official Ad Library API, by keyword or page
social_facebook_ads_libraryAds from Meta's official Ad Library API, by keyword or page IDs and country: ad ID, page, funding byline, creation and delivery dates, creative texts, snapshot URL, platforms, languages and, for political or issue ads, spend and impression ranges; EU reach for EU ads. Covers political/issue ads worldwide and all ads delivered in the EU/UK. Needs the operator's free Ad Library API token. Related tools on this server, for a different need: social_facebook_events when you need Events listed on a Facebook Page's Events tab: event id; social_facebook_followers_following when you need Facebook Page follower counts from Facebook's public Page. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "social_facebook_ads_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search words (or use pageIds) | |
| limit | No | 1 to 50 ads (default 10) | |
| adType | No | ALL or POLITICAL_AND_ISSUE_ADS (default). ALL only returns ads for EU/UK countries | |
| country | No | Two-letter country the ads reached, e.g. US, DE (ALL for every country) | |
| pageIds | No | Up to 10 Facebook page IDs, comma separated | |
| activeStatus | No | ACTIVE, INACTIVE or ALL (default ALL) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||