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/callAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
—Not verified yet
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-search-ads?query=runningPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

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.

ParameterTypeRequiredDescriptionExample
Query parameters
trimbooleanOptionalSet to true for a trimmed down version of the responsefalse
querystringRequiredKeyword to search forrunning
cursorstringOptionalCursor to paginate through resultsAQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-
statusstringOptionalStatus of the ad. Defaults to ACTIVE.ACTIVE
ad_typestringOptionalSearch for all ads or only political and issue adsall
countrystringOptionalThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.ALL
sort_bystringOptionalOrder 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_datestringOptionalImpressions end date. Needs to be in YYYY-MM-DD format.2025-02-16
media_typestringOptionalMedia 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_datestringOptionalImpressions start date. Needs to be in YYYY-MM-DD format.2025-01-05
search_typestringOptionalIf you want to search by exact phrase or notkeyword_unordered
  • Query parameters
  • trimbooleanOptional

    Set to true for a trimmed down version of the response

    Example: false

  • querystringRequired

    Keyword to search for

    Example: running

  • cursorstringOptional

    Cursor to paginate through results

    Example: AQHRYLVDkoMkvGv7yK1rcce-vJmKiKv330R4v3j9KHSOaYvmF1bq1QkotG0rgW8Fkrj-

  • statusstringOptional

    Status of the ad. Defaults to ACTIVE.

    Example: ACTIVE

  • ad_typestringOptional

    Search for all ads or only political and issue ads

    Example: all

  • countrystringOptional

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

    Example: ALL

  • sort_bystringOptional

    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.

    Example: total_impressions

  • end_datestringOptional

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

    Example: 2025-02-16

  • media_typestringOptional

    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.

    Example: ALL

  • start_datestringOptional

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

    Example: 2025-01-05

  • search_typestringOptional

    If you want to search by exact phrase or not

    Example: keyword_unordered

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the 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"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.00188/call, including the service fee.