PeumeAPI

Ads · TikTok

Scrape the TikTok ad library by keyword

Scrape publicly running from TikTok's ad library by keyword or advertiser

$0.0045 per adUsually answers in under a minute

Call it

curl https://api.peume.com/v1/call/scrape-the-tiktok-ad-library-by-keyword \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "maxItems": 50,
    "maxTotalChargeUsd": 0.5,
    "timeout": 90,
    "search": "skincare",
    "region": "all",
    "query_type": "1"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: scrape-the-tiktok-ad-library-by-keyword.

Parameters

maxItemsinteger

optional row cap; pay-per-event actors that take the row count from their own input ignore it, so maxTotalChargeUsd is the spend limit

Example: 50

maxTotalChargeUsdnumber

the spend cap enforces on every event this run bills, in dollars. 's key requires it, above 0 and at most 1, and holds it for the call

Example: 0.5

timeoutinteger

's key requires 1-90 so the run and its rows arrive before any wait gives up (a larger pull needs your own key)

Example: 90

searchRequiredstring

keyword or advertiser name to search the ad library for

Example: skincare

adv_biz_idsstring

advertiser business id, to pin the search to one advertiser instead of a keyword

ad_idstring

fetch one specific ad

regionstring

ISO country code or 'all' (the default). TikTok's library is a DSA transparency database, so coverage is EU/EEA/UK-centric — and per the actor's own input schema it REJECTS region=US; pass 'all' to include US ads

Example: all

query_typestring

which field `search` is matched against: '1' = advertiser name (the actor's DEFAULT), '0' = keyword. A keyword passed without query_type:'0' is matched as an advertiser name and finds nothing

Example: 1

start_datestring

YYYY-MM-DD

Example: 2026-06-01

end_datestring

YYYY-MM-DD

sortstring
limitinteger

results to return; pair it with maxTotalChargeUsd

Example: 50

offsetinteger

Example: 0

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.