Call it
curl https://api.peume.com/v1/call/tiktok-ad-transparency-search \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"days": 30,
"limit": 20,
"offset": 0,
"query": "nike",
"region": "DE",
"sort": "last_shown_date,desc"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-ad-transparency-search", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"days": 30,
"limit": 20,
"offset": 0,
"query": "nike",
"region": "DE",
"sort": "last_shown_date,desc"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-ad-transparency-search",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"days": 30,
"limit": 20,
"offset": 0,
"query": "nike",
"region": "DE",
"sort": "last_shown_date,desc"
}
},
)
print(res.json()["output"])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: tiktok-ad-transparency-search.
Parameters
fieldsstringComma-separated keys (dotted paths descend) to keep on each result item. Trims the response, not the charge.
max_itemsintegerCaps the result rows returned; `_truncated` says how many were withheld. Not the charge.
summaryboolean`true` returns only an outline: keys, item counts, per-field sizes.
jqstringjq expression over the result envelope; its output replaces `output`. A failed expression returns the full result with `jqError`.
advertiserIdstringTikTok Commercial Content Library advertiser ID. Provide advertiserId or query.
cursorstringSearch cursor from a previous response's nextCursor.
daysintegerNumber of days of Commercial Content Library history to search, from 1 to 365. Defaults to 30.
Example: 30
limitintegerMaximum number of ads to return, from 1 to 50. Defaults to 20. Billing is flat per request.
Example: 20
offsetintegerZero-based result offset. Defaults to 0.
Example: 0
querystringKeyword to search in TikTok's EU Commercial Content Library. Provide query or advertiserId.
Example: nike
regionstringRegion code for the transparency search. Defaults to DE.
Example: DE
sortstringUpstream sort expression. Defaults to last_shown_date,desc.
Example: last_shown_date,desc
