Skip to main content
GET
Ad Library Search & Get Ad
Search Facebook’s public Ad Library, the transparency archive of ads running across Facebook, Instagram, Messenger and the Audience Network — or look one up directly by its archive id. Credits: 5 (each)

Authorization

string
required
Your ScrapeBadger API key.

Query Parameters — /ads/search

string
required
Advertiser name or keyword.
string
default:"US"
ISO 3166-1 alpha-2 country code. The Ad Library is partitioned by country — the same advertiser returns different ads per market.
string
default:"all"
One of all, political_and_issue_ads. Political and issue ads carry extra disclaimers in the archive.
string
default:"active"
One of active, inactive, all.
string
Pagination cursor — the end_cursor from a previous response.

Path Parameters — /ads/{ad_archive_id}

string
required
The Ad Library archive id, as returned in ad_archive_id on any search result.

Response

AdLibraryAd[]
Each AdLibraryAd includes ad_archive_id, page_id, page_name, ad_creative_body, ad_creative_link_title, ad_creative_link_caption, ad_creative_link_description, ad_snapshot_url (Facebook-hosted rendered preview), start_date_utc, start_date, end_date_utc, end_date (null while the ad is still running), is_active, publisher_platforms[] (FACEBOOK, INSTAGRAM, MESSENGER, AUDIENCE_NETWORK), images[], videos[], cta_text (button label) and cta_type (Facebook’s CTA enum, e.g. SHOP_NOW, LEARN_MORE, SIGN_UP).
integer
Number of ads in this page.
string
Pass as after for the next page. Search only.
boolean
Whether more ads are reachable. Search only.
string
Echoes the query (or the archive id on the lookup endpoint).

Example

Response
The Ad Library is country-partitioned. To size a competitor’s full spend footprint, sweep country across the markets you care about rather than paginating a single one deeper.