Skip to main content
Glama

TikTok Ad Library Scraper: Ads & Targeting · $0.30/1K

TikTok Ad Library

search_tiktok_ads
Read-onlyIdempotent

Ads from the TikTok Ad Library (Commercial Content Library: European Economic Area, CH, GB, TR and BR) by keyword, exact phrase, advertiser, ad ID or library URL, with date, format, status, age, gender and reach filters: ad text, video and image links, landing page, button, advertiser and payer, run dates, impressions by country, age and gender, and targeting. Advertiser and keyword suggestions, new-ads monitor, video transcript, text on the image and AI marketing analysis. No login or cookies needed from you. Use for ads on TikTok (TikTok Ad Library: EEA, CH, GB, TR and BR) by keyword, advertiser or ad ID; for Facebook and Instagram ads use search_meta_ads; for Google use search_google_ads. Returns {items: [...]} with one object per result, for example: {"status":"ok","adId":"1853503986660497","adUrl":"https://library.tiktok.com/ads/detail/?ad_id=1853503986660497","advertiserName":"enmosport.net","adType":"IMAGE","adText":"Men's Outdoor Running Shoes Casual Shoes Hiking Shoes","adCallToAction":"Shop now","adStartDate":"2026-01-05","adEndDate":"2026-01-05","adImpressions":"0-1K","advertiserLocation":"Spain","adLandingUrl":"https://enmosport.net/pr Large requests return nextCursor: call again with only cursor to get the next page. Cost: pay per result (prices on the store page where you subscribed), or US$ 0.025 per call with x402 (up to 50 ads). Read-only: it only reads public data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_tiktok_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoKeywords to search in ads. Comma-separate several (max 5). Give q, advertiser, ad_id or url.
maxNoMaximum ads per search (1-5000, default 12). When one call cannot carry them all, send nextCursor for the rest.
urlNoA TikTok Ad Library search or ad URL with your filters already set (one per call).
agesNoTarget age groups, comma-separated: 13-17, 18-24, 25-34, 35-44, 45-54, 55+.
sortNoOrder of the results.
ad_idNoAd IDs. Comma-separate several (max 20).
exactNoMatch q as an exact phrase.
reachNoUnique users reached, comma-separated: 0-10K, 10K-100K, 100K+.
cursorNoNext page: the nextCursor of the previous answer. Send it alone; the first call's parameters are kept. Cursors last 24 hours.
genderNoTarget gender: female or male.
statusNoOnly running or only ended ads.
ad_typeNoAd format.
compactNoShorter rows: drops the per-country breakdowns and duplicate fields.
countryNoCountry codes (ISO 2 letters), comma-separated: EEA, CH, GB, TR or BR. Default: all. The library holds no ads for the United States.
date_toNoOnly ads shown on or before this date (YYYY-MM-DD).
detailsNoOpen each ad: landing page, button, payer, impressions by country, age and gender, targeting (default true). false returns the faster list view.
min_daysNoOnly ads running for at least this many days.
only_newNoOnly ads this API key has not received before under the same stateKey.
stateKeyNoWith only_new: name of your monitor (letters, numbers, - and _).
timezoneNoTime zone the dates are read in, e.g. Europe/Berlin. Default UTC.
date_fromNoOnly ads shown on or after this date (YYYY-MM-DD, the library starts in 2022-10). Default: the last 12 months.
advertiserNoAdvertiser name. The library registers company names, so a brand name also matches the registered names that carry it. Separate several with a newline (max 10).
image_textNoThe words written on the ad image or video cover (imageText).
transcribeNoSpeech of each video ad as text: transcript, language, first 3 seconds (hook3s), timed segments. Fewer ads per call; send nextCursor for the rest.
ai_analysisNoMarketing reading of each ad (analysis): hook, offer, offer type, angle, emotional trigger, target persona, call to action, summary.
result_typeNoadvertisers: registered advertiser names that match the text. keyword_ideas: searches the library suggests. Default ads.
advertiser_idNoAdvertiser ID, together with one advertiser name.
exclude_keywordsNoDrop ads with any of these words (comma-separated).
include_keywordsNoKeep only ads whose text, advertiser or link has one of these words (comma-separated).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond readOnlyHint/openWorldHint the description discloses cost (pay per result or US$0.025 per call with x402, up to 50 ads), that no login or cookies are required, and that large requests return nextCursor which must be sent alone. The 'Read-only: it only reads public data' sentence partly restates the annotation, so it is strong but not fully additive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope statement and the sibling routing sit up front, which is good, but the body is one dense run-on that restates the geographic scope twice ('TikTok Ad Library (EEA, CH, GB, TR and BR)') and packs an example payload, cost model and pagination into the same block. It is information-rich but under-edited.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 29-parameter tool with no output schema, the description supplies a concrete sample return object, pagination behavior, cost model, regional limitation and read-only nature — everything an agent needs to call it correctly. The leftover gaps are cosmetic rather than operational.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns an extra point by grouping parameters into named features (new-ads monitor = only_new + stateKey, support for suggestions, transcript, image text, AI analysis) and clarifying pagination semantics in prose. It does not add format or boundary detail beyond what each schema property already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening states a specific verb and resource (ads from the TikTok Ad Library) plus the exact geographic scope (EEA, CH, GB, TR, BR) and the lookup keys (keyword, exact phrase, advertiser, ad ID, library URL). It explicitly distinguishes itself from search_meta_ads and search_google_ads, so an agent can route correctly without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the alternatives and the condition that selects them: use this for TikTok ads, search_meta_ads for Facebook/Instagram, search_google_ads for Google. It also warns that the library holds no US ads, which prevents a class of wrong calls rather than just describing capability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.