ScrapeCreatorsMeta AdsAdvertising

Search Facebook ad library ads by keyword

scrapecreators.x.v1-facebook-adlibrary-search-ads

Searches the Meta Ad Library by keyword and returns matching ads.

Price
$0.00188/callPelo preço do provedor
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/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=runningPreview
Try onlineEm breveProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

sort_by is order-only: ranking by total_impressions does not mean the response carries verified spend or impression counts. Search may return a non-null collation_count that is null on scrapecreators.x.v1-facebook-adlibrary-ad detail for the same ad — grouping semantics differ between search and detail; do not treat collation_count as creative-variant or budget counts.

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
trimbooleanoOpcionalSet to true for a trimmed down version of the responsefalse
querystringObrigatórioKeyword to search forrunning
cursorstringOpcionalCursor to paginate through resultsAQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-
statusstringOpcionalStatus of the ad. Defaults to ACTIVE.ACTIVE
ad_typestringOpcionalSearch for all ads or only political and issue adsall
countrystringOpcionalThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.ALL
sort_bystringOpcionalOrder only. One of: total_impressions | relevancy_monthly_grouped. Defaults to impressions ranking (total_impressions). Controls result ORDER, not verified performance — does not guarantee non-null spend, impressions_text, or a positive impressions_index. Those fields are often null / -1 for commercial ads and are not verified performance metrics.total_impressions
end_datestringOpcionalImpressions end date. Needs to be in YYYY-MM-DD format.2025-02-16
media_typestringOpcionalMedia type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.ALL
start_datestringOpcionalImpressions start date. Needs to be in YYYY-MM-DD format.2025-01-05
search_typestringOpcionalIf you want to search by exact phrase or notkeyword_unordered
  • Parâmetros de consulta
  • trimbooleanoOpcional

    Set to true for a trimmed down version of the response

    Exemplo: false

  • querystringObrigatório

    Keyword to search for

    Exemplo: running

  • cursorstringOpcional

    Cursor to paginate through results

    Exemplo: AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-

  • statusstringOpcional

    Status of the ad. Defaults to ACTIVE.

    Exemplo: ACTIVE

  • ad_typestringOpcional

    Search for all ads or only political and issue ads

    Exemplo: all

  • countrystringOpcional

    This can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.

    Exemplo: ALL

  • sort_bystringOpcional

    Order only. One of: total_impressions | relevancy_monthly_grouped. Defaults to impressions ranking (total_impressions). Controls result ORDER, not verified performance — does not guarantee non-null spend, impressions_text, or a positive impressions_index. Those fields are often null / -1 for commercial ads and are not verified performance metrics.

    Exemplo: total_impressions

  • end_datestringOpcional

    Impressions end date. Needs to be in YYYY-MM-DD format.

    Exemplo: 2025-02-16

  • media_typestringOpcional

    Media type of the ad. Defaults to ALL. Meme just means the ad has text and an image. No clue why they call it meme.

    Exemplo: ALL

  • start_datestringOpcional

    Impressions start date. Needs to be in YYYY-MM-DD format.

    Exemplo: 2025-01-05

  • search_typestringOpcional

    If you want to search by exact phrase or not

    Exemplo: keyword_unordered

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=running' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.00188/call, incluindo a taxa de serviço.