ScrapeCreatorsMeta AdsAdvertising

Facebook ad library company ads by page id or name

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

Fetches all ads currently running for a specific company from the Meta Ad Library.

Price
$0.00188/callAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
Oct 20, 2026Verified working
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-facebook-adlibrary-company-ads?pageId=367152833370567Preview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

ParameterTypeRequiredDescriptionExample
Query parameters
trimbooleanOptionalSet to true for a trimmed down version of the responsefalse
cursorstringOptionalCursor to paginate through resultsAQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXP
pageIdstringOptionalThe companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName367152833370567
statusstringOptionalStatus of the ad. Defaults to ACTIVE.ACTIVE
countrystringOptionalThis can only be one country. It has to be the 2 letter code for the country. It defaults to ALL.ALL
sort_bystringOptionalSort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.total_impressions
end_datestringOptionalEnd date to search for. Format: YYYY-MM-DD2025-12-31
languagestringOptionalLanguage to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etcEN
media_typestringOptionalMedia type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme.ALL
start_datestringOptionalStart date to search for. Format: YYYY-MM-DD2025-01-01
companyNamestringOptionalThe name of the company. Can either use this or pageIdLululemon
  • Query parameters
  • trimbooleanOptional

    Set to true for a trimmed down version of the response

    Example: false

  • cursorstringOptional

    Cursor to paginate through results

    Example: AQHRBUAxNmFlxBVMFL6uTb1ICFsV65O4SqmPbcVZJhiveBpPS1hFHAmL6yCJcF760cXP

  • pageIdstringOptional

    The companies ad library page id. You can get this with my Search For Companies Endpoint. Can either use this or companyName

    Example: 367152833370567

  • statusstringOptional

    Status of the ad. Defaults to ACTIVE.

    Example: ACTIVE

  • 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

    Sort by impressions (high to low), or Most Recent (relevancy_monthly_grouped). Defaults to impressions.

    Example: total_impressions

  • end_datestringOptional

    End date to search for. Format: YYYY-MM-DD

    Example: 2025-12-31

  • languagestringOptional

    Language to filter ads on. Needs to be 2 letter language code, ie EN, ES, FR, etc

    Example: EN

  • media_typestringOptional

    Media type of the ad. Defaults to ALL. Meme refers to ads with image and text. Not sure why they call it meme.

    Example: ALL

  • start_datestringOptional

    Start date to search for. Format: YYYY-MM-DD

    Example: 2025-01-01

  • companyNamestringOptional

    The name of the company. Can either use this or pageId

    Example: Lululemon

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-company-ads?pageId=367152833370567' \
  -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.