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/callAu prix du fournisseur
Success rate
—Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=runningPreview
Try onlineBientôtProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Paramètres

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.

ParamètreTypeObligatoireDescriptionExemple
Paramètres de requête
trimbooléenFacultatifSet to true for a trimmed down version of the responsefalse
querychaîneObligatoireKeyword to search forrunning
cursorchaîneFacultatifCursor to paginate through resultsAQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-
statuschaîneFacultatifStatus of the ad. Defaults to ACTIVE.ACTIVE
ad_typechaîneFacultatifSearch for all ads or only political and issue adsall
countrychaîneFacultatifThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.ALL
sort_bychaîneFacultatifOrder 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_datechaîneFacultatifImpressions end date. Needs to be in YYYY-MM-DD format.2025-02-16
media_typechaîneFacultatifMedia 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_datechaîneFacultatifImpressions start date. Needs to be in YYYY-MM-DD format.2025-01-05
search_typechaîneFacultatifIf you want to search by exact phrase or notkeyword_unordered
  • Paramètres de requête
  • trimbooléenFacultatif

    Set to true for a trimmed down version of the response

    Exemple : false

  • querychaîneObligatoire

    Keyword to search for

    Exemple : running

  • cursorchaîneFacultatif

    Cursor to paginate through results

    Exemple : AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-

  • statuschaîneFacultatif

    Status of the ad. Defaults to ACTIVE.

    Exemple : ACTIVE

  • ad_typechaîneFacultatif

    Search for all ads or only political and issue ads

    Exemple : all

  • countrychaîneFacultatif

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

    Exemple : ALL

  • sort_bychaîneFacultatif

    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.

    Exemple : total_impressions

  • end_datechaîneFacultatif

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

    Exemple : 2025-02-16

  • media_typechaîneFacultatif

    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.

    Exemple : ALL

  • start_datechaîneFacultatif

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

    Exemple : 2025-01-05

  • search_typechaîneFacultatif

    If you want to search by exact phrase or not

    Exemple : keyword_unordered

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la 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"

Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à $0.00188/call, frais de service inclus.