tiktok-ads-search
Installation
SKILL.md
TikTok Ads Search
Use the bundled script to search public TikTok advertisements or retrieve specific ad details. It calls only the three Frevana /apify/tiktok-ads/tasks create, status, and result APIs. Requires Bash and Python 3.9+ with the standard library; no TikTok access token or SDK is needed.
Workflow
- Require a keyword (
--query), advertiser (--advertiser-name), specific supported country, or one to one hundred unique--ad-idvalues. Do not combine ad IDs with any search filter. For account/campaign management, usetiktok-ads; for ordinary public posts, use a TikTok public-data skill. - Prefer
runto create, wait, and retrieve results. Usecreate,status,wait, andresultfor separate phases. Read references/api.md for filters, defaults, supported countries, and task states. - Treat creation as billable: the server checks estimated credits and settles actual usage asynchronously. Record the printed
client_task_idand returnedtask_id. After an uncertain create response, retry only with identical options and the same client ID; never automatically create a replacement task. Different parameters with the same ID return HTTP 409. - Wait for
status=READYandresult_available=true. Follownext_poll_after_ms; zero stops automatic polling. Stop onFAILED,REVIEW_REQUIRED, orRESULT_EXPIRED. A wait timeout can be resumed with the sametask_id. - Preserve raw JSON in saved files. Summarize relevant ads for the user unless they request raw JSON. Do not imply a pending or settling task has completed.
quick_search=trueand unavailable ads may omit detail fields; never invent missing details.
Commands
Resolve {baseDir} to the directory containing this file.