TikTok API

TikTok Ad library search API

Search TikTok's ad library by keyword (top ads with brand, title, spend, CTR, likes, and video info).

POST/v1/run/tiktok.ad_library_search
Uptime
50.00%
30d · 12 calls
Requests
12
30d · weekly, last 12 wks
Response
2.6s
median · 30d

Pricing

One price, in dollars

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "ads": [
      {
        "adId": "a1b2c3d4",
        "adTitle": "Example title",
        "brandName": "Acme Inc",
        "cost": 19.99,
        "coverUrl": "https://example.com/page",
        "ctr": 12.5,
        "industry": "general",
        "likes": 12500,
        "objective": "example",
        "videoUrl": "https://example.com/page"
      }
    ],
    "hasMore": true,
    "nextCursor": "example",
    "total": 12500
  },
  "found": true
}
Response interface
interface TiktokAdLibrarySearchResponse {
  data: {
    ads: {
      adId: string;
      adTitle: string;
      brandName: string;
      cost: number;
      coverUrl: string;
      ctr: number;
      industry: string;
      likes: number;
      objective: string;
      videoUrl: string;
    }[];
    hasMore: boolean;
    nextCursor: string | null;
    total: number;
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-12 · uptime and latency measured over 30d
POST /v1/run/tiktok.ad_library_search
curl -X POST https://api.getanyapi.com/v1/run/tiktok.ad_library_search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":20,"objective":"conversions","period":30,"query":"spotify"}'
FieldTypeExample value
Request body
querystring"spotify"Keyword to search ad titles and content (e.g. spotify).
adFormatenumAd format filter.
adLanguageenumAd language filter.
advertiserNamestringFilter to a specific advertiser by name (searches the public TikTok Ads Library by advertiser).
cursorstringPage number for pagination (defaults to 1).
durationenumVideo duration bucket filter.
industryenumAdvertiser industry filter.
likesenumLikes percentile bucket filter (top_1_20 is the top-performing 20 percent).
limitinteger20Results per page, with an existing maximum of 50 (default 20). Use a canonical JSON integer; legacy numeric strings remain accepted.
objectiveenum"conversions"Campaign objective filter.
orderBystringSort metric: for_you, impression, play_2s_rate, play_6s_rate, cvr, ctr, or like.
periodenum30Time window for top ads. Use the canonical JSON integer 7, 30, or 180; legacy numeric strings remain accepted.
regionstringCountry code (defaults to US).
Response
dataobject
data.adsobject[]Populated whenever the provider has data for the entity.
data.ads[].adIdstringPopulated whenever the provider has data for the entity.
data.ads[].adTitlestringPopulated whenever the provider has data for the entity.
data.ads[].brandNamestring
data.ads[].costnumber
data.ads[].coverUrlstringPopulated whenever the provider has data for the entity.
data.ads[].ctrnumber
data.ads[].industrystringPopulated whenever the provider has data for the entity.
data.ads[].likesinteger
data.ads[].objectivestringPopulated whenever the provider has data for the entity.
data.ads[].videoUrlstringPopulated whenever the provider has data for the entity.
data.hasMoreboolean
data.nextCursorstringOpaque cursor for the next page of ads, or null when this lane has no more. Pass it back as cursor to continue.
data.totalinteger
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the TikTok Ad library search API

The AnyAPI TikTok Ad library search API returns TikTok ad library search data as normalized JSON from one POST call to /v1/run/tiktok.ad_library_search. Search TikTok's ad library by keyword (top ads with brand, title, spend, CTR, likes, and video info). AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 50.0% of TikTok ad library search calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 12 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search TikTok's ad library by keyword (top ads with brand, title, spend, CTR, likes, and video info). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 50.0% of TikTok ad library search calls through AnyAPI succeeded, with a median response time of 2.6 seconds across 12 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.