Meta Ad LibraryMeta AdsAdvertising

Search the Meta ad library by keyword

meta-ad-library.meta-ads.library.search

Search publicly running Facebook and Instagram ads by keyword

Price
freePelo preço de tabela
Success rate
—Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.searchBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

give it either search_terms or search_page_ids — a call with neither returns an error, not the whole library. ad_snapshot_url is the human-viewable render of the creative and needs the access token appended to load. Results are ads Meta has KEPT: commercial ads leave the library some time after they stop running, so this is a live-ish view, not an archive

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
afterstringOpcionalpaging.cursors.after from the previous response
limitinteiroOpcionalpage size; 25 by default, a few hundred is the practical ceiling before Meta starts timing out25
fieldsstringObrigatóriocomma-separated; nothing but id comes back by defaultid,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_size
ad_typestringOpcionalALL (default) | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS | EMPLOYMENT_ADS | FINANCIAL_PRODUCTS_AND_SERVICES_ADSALL
languagesmatrizOpcionalISO 639-1 codes (plus CMN, YUE)["en"]
media_typestringOpcionalALL | IMAGE | MEME | VIDEO | NONEVIDEO
search_typestringOpcionalKEYWORD_UNORDERED (default, all words in any order) | KEYWORD_EXACT_PHRASEKEYWORD_UNORDERED
search_termsstringOpcionalmax 100 characters; matched against the ad's text. Required in practice unless you filter by search_page_ids insteadproject management software
ad_active_statusstringOpcionalACTIVE (default) | INACTIVE | ALL — ALL is what you want for creative research, since a competitor's best-performing ad may have finishedALL
publisher_platformsmatrizOpcionalFACEBOOK | INSTAGRAM | AUDIENCE_NETWORK | MESSENGER | WHATSAPP | OCULUS | THREADS["INSTAGRAM"]
ad_delivery_date_maxstringOpcionalYYYY-MM-DD
ad_delivery_date_minstringOpcionalYYYY-MM-DD; ads that were delivering on or after this date2026-06-01
ad_reached_countriesmatrizObrigatórioREQUIRED on every ads_archive call. JSON array of ISO country codes, URL-encoded — ["US"] — or ALL["US"]
estimated_audience_size_mininteiroOpcionalone of the fixed buckets 100 | 1000 | 5000 | 10000 | 50000 | 100000 | 500000 | 1000000
  • Parâmetros de consulta
  • afterstringOpcional

    paging.cursors.after from the previous response

  • limitinteiroOpcional

    page size; 25 by default, a few hundred is the practical ceiling before Meta starts timing out

    Exemplo: 25

  • fieldsstringObrigatório

    comma-separated; nothing but id comes back by default

    Exemplo: id,page_id,page_name,ad_creative_bodies,ad_creative_link_titles,ad_creative_link_captions,ad_snapshot_url,ad_delivery_start_time,ad_delivery_stop_time,publisher_platforms,languages,estimated_audience_size

  • ad_typestringOpcional

    ALL (default) | POLITICAL_AND_ISSUE_ADS | HOUSING_ADS | EMPLOYMENT_ADS | FINANCIAL_PRODUCTS_AND_SERVICES_ADS

    Exemplo: ALL

  • languagesmatrizOpcional

    ISO 639-1 codes (plus CMN, YUE)

    Exemplo: ["en"]

  • media_typestringOpcional

    ALL | IMAGE | MEME | VIDEO | NONE

    Exemplo: VIDEO

  • search_typestringOpcional

    KEYWORD_UNORDERED (default, all words in any order) | KEYWORD_EXACT_PHRASE

    Exemplo: KEYWORD_UNORDERED

  • search_termsstringOpcional

    max 100 characters; matched against the ad's text. Required in practice unless you filter by search_page_ids instead

    Exemplo: project management software

  • ad_active_statusstringOpcional

    ACTIVE (default) | INACTIVE | ALL — ALL is what you want for creative research, since a competitor's best-performing ad may have finished

    Exemplo: ALL

  • publisher_platformsmatrizOpcional

    FACEBOOK | INSTAGRAM | AUDIENCE_NETWORK | MESSENGER | WHATSAPP | OCULUS | THREADS

    Exemplo: ["INSTAGRAM"]

  • ad_delivery_date_maxstringOpcional

    YYYY-MM-DD

  • ad_delivery_date_minstringOpcional

    YYYY-MM-DD; ads that were delivering on or after this date

    Exemplo: 2026-06-01

  • ad_reached_countriesmatrizObrigatório

    REQUIRED on every ads_archive call. JSON array of ISO country codes, URL-encoded — ["US"] — or ALL

    Exemplo: ["US"]

  • estimated_audience_size_mininteiroOpcional

    one of the fixed buckets 100 | 1000 | 5000 | 10000 | 50000 | 100000 | 500000 | 1000000

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

Beta
curl -X GET 'https://toolswitch.dev/v1/tools/meta-ad-library.meta-ads.library.search' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Esta API de gateway está em Beta; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.