How to search TikTok Ads Library by advertiser
Search TikTok's public Ads Library by keyword or advertiser and return ad titles, audience bands, run dates, videos, and library links
On this page
You need one page of Spotify ads from the German TikTok Ads Library before you plan a campaign, and that page has to become a shortlist of creative angles your team can test. One call to anyapi.tiktok.ad_library_search returns the page described below: ad titles, audience bands, run dates, videos and library links. Nothing here was run, so the table is a design and its values are placeholders showing the shape
The worksheet the search fills
One row per ad. The first eight columns come from the response and the last one is your own note
| adTitle | brandName | estimatedAudience | firstShownUtc | lastShownUtc | videoUrl | url | status | creative angle |
|---|---|---|---|---|---|---|---|---|
(from adTitle) | (from brandName) | 100K-200K | 1735689600 | 1738368000 | (from videoUrl) | (from url) | (from status) | your note |
Values here are placeholders showing the shape. The two timestamps are epoch seconds, so convert them before the table goes in front of anyone who wants dates
Step 1: send one input, not two
The call goes through POST /v1/runs with toolId anyapi.tiktok.ad_library_search. The contract requires exactly one of advertiserName or query and forbids sending both, so decide the lane before you send anything. advertiserName is the advertiser whose ads you want listed. query is a keyword matched against ad titles and content. This job uses advertiserName
Example input, with the advertiser from the brief: advertiserName set to spotify and region set to DE. Replace the advertiser with your own and keep the shape
region takes a two-letter code for TikTok's Commercial Content Library, and each region holds a different set of ads. Omit the field and the library's own default applies, which the contract gives as DE
The limit sits at this step: coverage is the EU and EEA, and a non-EU code such as US is not served. The German page is inside that coverage. A US page cannot be requested from this tool
cursor is optional, comes from a previous response's nextCursor, and stays out of the first call
Step 2: read the fields that decide the angle
The response carries found and data. When found is false, reason says why, and the only value the contract lists is not_found. The contract also says that a found: false answer is a successful call rather than an error, and that costUsd is what it actually cost, so a quiet advertiser still bills
Inside data, the rows sit in ads[]. adTitle is the title as the library shows it, and brandName is the advertiser name on the ad. estimatedAudience is the size band TikTok publishes, for example 100K-200K, so read it as a band and not a count
firstShownUtc and lastShownUtc are UTC epoch timestamps in seconds, and multiplying by 1000 gives a JS Date in milliseconds. The distance between the two says how long the ad has been running. videoUrl plays the ad's first video, coverUrl holds the cover image of that video, and url opens the ad's detail page in the public Ads Library. status and format are TikTok's own codes as the library reports them, and the contract translates neither one, so read them beside the library page
The creative angle column is not in the response. Watch videoUrl and write that column yourself
Step 3: page only if you need more
The first response returns nextCursor, hasMore and total alongside the ads. Pass nextCursor back as cursor to continue, and stop when hasMore is false or nextCursor is null. The contract calls the cursor opaque, so do not build or edit one yourself, and each additional page is another call at the listed price
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to pull one page of
Spotify ads from the German TikTok Ads Library. Check the current inputs
and price of anyapi.tiktok.ad_library_search before running anything.
Send advertiserName "spotify" and region "DE", and do not send query in
the same call. Return a table with adTitle, brandName, estimatedAudience,
firstShownUtc, lastShownUtc, videoUrl, url and status, plus an empty
creative angle column for me to fill. Show both timestamps as readable
dates next to the raw seconds. Do not follow the cursor and do not fetch
a second page. If found is false, say so and stop without retrying.Replace spotify with your advertiser, and change region only to a code inside the EU and EEA. If you want three pages, tell the agent to follow nextCursor twice and to report how many calls it made
Estimated tool cost
Prices from the Purrkey catalog, read November 12, 2026. The unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings rather than settled charges, and model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One search | calls x max price | $0.0012 per call | 1 | $0.0012 |
| Three cursor pages | calls x max price | $0.0012 per call | 3 | $0.0036 |
| Three-page plan | $0.0036 |
One page is one call, and a three-page pull is three calls because the cursor round trips once per page. Start with the single page at most $0.0012
Run the search
The tool page is https://purrkey.app/tools/tiktok?q=ad_library_search, where the input fields and the current listing sit next to each other. Companion reading for a second advertiser: https://purrkey.app/blog/compare-competitor-ads
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with TikTok.FAQ
How do I search TikTok Ads Library by advertiser?
Call the TikTok Ads Library search tool with advertiserName set to the advertiser and region set to a two-letter EU or EEA code. The contract requires exactly one of advertiserName or query, and forbids sending both in the same call.
What inputs does the TikTok Ads Library search tool take?
The contract documents advertiserName, query, cursor and region. query is a keyword matched against ad titles and content, advertiserName is the advertiser to list ads for, cursor is an opaque value from a previous response's nextCursor, and region is a two-letter code for TikTok's Commercial Content Library.
Which regions can I search?
Coverage is the EU and EEA, and a non-EU code such as US is not served. Omitting region takes the library's own default, which the contract gives as DE, and each region holds a different set of ads.
What do estimatedAudience and the two run dates mean?
estimatedAudience is the audience size band TikTok publishes for the ad, for example 100K-200K, so it reads as a band and not a count. firstShownUtc and lastShownUtc are UTC epoch timestamps in seconds, and multiplying by 1000 gives a JS Date in milliseconds.
How much does one TikTok Ads Library search cost?
The listing is up to $0.0012 per call, priced as a maximum per call rate. Successful runs settle at the actual AnyAPI charge. One page is one call at most $0.0012 and three cursor pages are three calls at most $0.0036, so the figures are ceilings.
What happens when the advertiser has no ads?
The response comes back with found set to false and reason set to the not-found value. The contract says that answer is a successful call rather than an error, and costUsd is what it actually cost.
How do I get a second page of ads?
Read nextCursor from the response and send it back as cursor. hasMore says whether another page exists, and nextCursor is null when the lane has no more, so each additional page is a separate billed call.
Next step
Try this with TikTok
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.