Ad libraries
ad_librariesSearch ads and advertisers across Facebook/Meta, Google, LinkedIn, and TikTok, then read individual ad details or transcripts; supports pagination, date filters, and cached results.
Instructions
Ad libraries (Facebook/Meta, Google, LinkedIn, TikTok): search ads and advertisers, read one ad. The resource starts with the library: facebook.search, google.company.ads.
Pick a resource, then pass its parameters as top-level arguments (extras in params). Each call costs the credits shown below and the result says what was charged and what is left; failures are free. List resources return a cursor: pass it back unchanged for the next page. Pass max_age_days to accept a cached copy for free.
Resources:
facebook.ad(id|url): Facebook Ad Library ad details. 1 credit. Optional: get_transcript.
facebook.ad.transcript(id|url): Facebook Ad Library ad transcript. 1 credit (captions); AI transcription 1 credit up to 2 minutes, then 5 per started minute of the whole video. Optional: allow_long_transcription.
facebook.company.ads(id|company_name): Facebook Ad Library ads by page. 1 credit. Paged. Optional: status, media_type, start_date, end_date.
facebook.search(query): Facebook Ad Library search. 1 credit. Paged. Optional: match, ad_type, status, media_type, start_date, end_date.
facebook.search.companies(query): Facebook Ad Library advertiser search. 1 credit. Paged.
google.ad(url): Google Ads Transparency ad details. 1 credit.
google.advertisers.search(query): Google Ads Transparency advertiser search. 1 credit. Paged.
google.company.ads(id|domain): Google Ads Transparency ads by advertiser. 1 credit. Paged. Optional: topic, platform, format, start_date, end_date.
linkedin.ad(url|id): LinkedIn Ad Library ad details. 1 credit.
linkedin.search(): LinkedIn Ad Library search. 1 credit. Paged. Optional: company, company_id, countries, start_date, end_date.
tiktok.ad(id|url): TikTok Ad Library ad details. 1 credit.
tiktok.search(query|advertiser_name): TikTok Ad Library search. 1 credit. Paged. Optional: adv_biz_ids, start_date, end_date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The platform's id for the item, where a URL is not used. Used by: facebook.ad, facebook.ad.transcript, facebook.company.ads, google.company.ads, linkedin.ad, tiktok.ad | |
| url | No | URL of the item the resource is about (profile, post, video, event...). Used by: facebook.ad, facebook.ad.transcript, google.ad, linkedin.ad, tiktok.ad | |
| sort | No | Order of results: `impressions` is most impressions first (ScrapeCreators' default), `newest` is most recent. Changing it restarts the cursor chain. Used by: facebook.company.ads, facebook.search | |
| query | No | Search terms. Used by: facebook.search, facebook.search.companies, google.advertisers.search, linkedin.search, tiktok.search | |
| cursor | No | Opaque cursor from the previous page; pass it back unchanged | |
| params | No | Any other parameter for the chosen resource, by name, e.g. {"start_date": "2026-01-01"}. Optional parameters of each resource are in the tool description; call describe for types and allowed values. | |
| region | No | Two-letter country code (ISO 3166-1) for results that vary by country. Used by: facebook.company.ads, facebook.search, google.advertisers.search, google.company.ads, linkedin.search, tiktok.search | |
| status | No | Ad status. Used by: facebook.company.ads, facebook.search | |
| end_date | No | Impressions window end, YYYY-MM-DD. Used by: facebook.company.ads, facebook.search, google.company.ads, linkedin.search, tiktok.search | |
| language | No | Only ads in this language, a 2-letter code (EN, ES, FR). Used by: facebook.company.ads, facebook.search | |
| resource | Yes | Which Ad libraries data to fetch. The tool description lists what each needs. | |
| media_type | No | Creative type. `meme` is Meta's word for text on an image. Used by: facebook.company.ads, facebook.search | |
| start_date | No | Impressions window start, YYYY-MM-DD. Used by: facebook.company.ads, facebook.search, google.company.ads, linkedin.search, tiktok.search | |
| max_age_days | No | Accept a cached copy fetched within this many days, for 0 credits (0 to 30). |