ScrapeAdLibrary
v0.1.0Search the public Meta Ad Library: ads, creatives, EU transparency data and advertisers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_ads
Search the public Meta Ad Library (Facebook, Instagram, Messenger, Audience Network, Threads) for ads by keyword and/or advertiser. Cost: 1 credit per 10 ads returned, rounded up (limit=10 → 1 credit, limit=50 → 5); an empty result or an error costs 0. Keep `limit` small unless the user needs more. Args: query: Keyword or phrase (1-100 chars). Required unless page_id is given. page_id: Restrict to one advertiser (numeric page ID, see search_pages). country: ISO-3166 alpha-2 country where the ads ran (e.g. 'IT', 'US') or…
| Parameter | Type | Description |
|---|---|---|
active_from | ||
active_to | ||
ad_type | string | |
country | string | |
cursor | ||
languages | ||
limit | integer | |
match | string | |
media_type | string | |
page_id | ||
platforms | ||
query | ||
sort | string | |
status | string |
get_ad
Get the full detail of one ad: complete text, all media and carousel cards, the advertiser profile, who paid for it (payer/beneficiary), and EU (DSA) / UK transparency data (reach, targeted ages, gender, locations, reach breakdown by country and age). Cost: 2 credits. Args: ad_id: Ad Library ID (the numeric `id` returned by search_ads). country: ISO-3166 alpha-2 country for transparency data, or 'ALL' (default).
| Parameter | Type | Description |
|---|---|---|
ad_id * | string | |
country |
get_page
Get an advertiser's profile: name, category, likes, Instagram account and followers, verification, and an estimate of how many ads it is running now. Cost: 1 credit. Args: page_id: Numeric advertiser page ID (from search_ads results or search_pages).
| Parameter | Type | Description |
|---|---|---|
page_id * | string |
get_page_ads
List the ads of one advertiser (competitor), newest and most relevant first. Cost: 1 credit per 10 ads returned, rounded up; an empty result costs 0. Args: page_id: Numeric advertiser page ID (use search_pages to find it from a brand name). country: ISO-3166 alpha-2 country or 'ALL' (default). status: 'active' (default), 'inactive' or 'all'. media_type: 'all', 'image', 'video', 'meme' or 'none'. platforms: Subset of facebook, instagram, messenger, audience_network, threads. languages: ISO-639-1 language c…
| Parameter | Type | Description |
|---|---|---|
page_id * | string | |
active_from | ||
active_to | ||
country | string | |
cursor | ||
languages | ||
limit | integer | |
media_type | string | |
platforms | ||
sort | string | |
status | string |
search_pages
Find advertisers (Facebook/Instagram pages) that ran ads matching a keyword or brand name. Use it to get the page_id needed by get_page and get_page_ads. Cost: 1 credit per 10 advertisers returned, rounded up; an empty result costs 0. Args: query: Brand name or keyword. country: ISO-3166 alpha-2 country or 'ALL' (default). limit: 1-30 (default 10).
| Parameter | Type | Description |
|---|---|---|
query * | string | |
country | ||
limit | integer |