TikTok API

TikTok Ad library search API

Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).

$0.80/1k req, pay per request, no subscription.

What the API returnedads[0]
{
"adId":ย "7648493525660270600",
"adTitle":ย "Spotify Premium: 3 months free",
"brandName":ย "Spotify",
"estimatedAudience":ย "500K-1M",
"firstShownUtc":ย 1758067200,
"lastShownUtc":ย 1758931200,
"url":ย "https://library.tiktok.com/ads/detail?ad_id=7648493525660270600&region=DE",
"videoUrl":ย "https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648493525660270600~tplv-ad-video.mp4",
... 3 more fields
}
Uptime
96.28%
30d ยท 4,118 calls
Requests
4,118
30d ยท weekly, last 12 wks
Response
2.4s
median ยท 30d

Pricing and providers

TikTok Ad library search API pricing: one API, 2 interchangeable providers

The cheapest provider serves first. If it fails, the next one takes over in the same call.

You pay
$8.00
$0.80/1k req, only for what you use. No monthly plan.
Your first 125 requests are free with the $0.10 starting balance.

Try it

Get TikTok ad library search in one 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.

This sample shows 17 of 18 fields. See every field

{
  "found": true,
  "data": {
    "nextCursor": "eyJvZmZzZXQiOjIwfQ==",
    "hasMore": true,
    "total": 46,
    "ads": [
      {
        "adId": "7648493525660270600",
        "adTitle": "Spotify Premium: 3 months free",
        "brandName": "Spotify",
        "estimatedAudience": "500K-1M",
        "firstShownUtc": 1758067200,
        "lastShownUtc": 1758931200,
        "url": "https://library.tiktok.com/ads/detail?ad_id=7648493525660270600&region=DE",
        "videoUrl": "https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648493525660270600~tplv-ad-video.mp4",
        "coverUrl": "https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648493525660270600~tplv-ad-cover.jpeg",
        "status": "active",
        "format": "video"
      },
      {
        "adId": "7648501298817568001",
        "adTitle": "Discover Weekly, reimagined",
        "brandName": "Spotify",
        "estimatedAudience": "1M-2M",
        "firstShownUtc": 1757548800,
        "lastShownUtc": 1758758400,
        "url": "https://library.tiktok.com/ads/detail?ad_id=7648501298817568001&region=DE",
        "videoUrl": "https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648501298817568001~tplv-ad-video.mp4",
        "coverUrl": "https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648501298817568001~tplv-ad-cover.jpeg",
        "status": "active",
        "format": "video"
      }
    ]
  }
}

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

Reference

One request, one response shape.

Every field you send and every field you get back, each with a real example.

Last verified 2026-10-31 ยท uptime and latency measured over 30d

Request body

JSON, posted to this endpoint.

  • advertiserNamestring

    Advertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.

  • cursorstring

    Opaque cursor from a previous response's nextCursor. Omit it for the first page.

  • querystring

    spotify

    Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.

  • regionstring

    DE

    Two-letter region code for TikTok's Commercial Content Library, such as DE, FR, GB or IT. Each region holds a different set of ads. Omit it to take the library's own default region, DE. Coverage is the EU and EEA; a non-EU code such as US is not served.

You send. A small JSON body. The values shown are examples to replace with your own.

Response

JSON, one example value per field.

each addata.ads[]

Populated whenever the provider has data for the entity.

  • adIdstring

    7648493525660270600

    TikTok ad id. Populated whenever the provider has data for the entity.

  • adTitlestring

    Spotify Premium: 3 months free

    Ad title as shown in TikTok's ad library. Populated whenever the provider has data for the entity.

  • brandNamestring

    Spotify

    Advertiser name on the ad.

  • coverUrlstring

    https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648493525660270600~tplv-ad-cover.jpeg

    Cover image URL of the ad's first video. Populated whenever the provider has data for the entity.

  • estimatedAudiencestring

    500K-1M

    Audience size band TikTok publishes for the ad, for example "100K-200K".

  • firstShownUtcinteger

    1758067200

    UTC epoch timestamp in seconds (Unix time) when TikTok first showed the ad. Multiply by 1000 for a JS Date in milliseconds.

  • formatstring

    video

    TikTok's creative format code for the ad, as the ad library reports it.

  • lastShownUtcinteger

    1758931200

    UTC epoch timestamp in seconds (Unix time) when TikTok last showed the ad. Multiply by 1000 for a JS Date in milliseconds.

  • statusstring

    active

    TikTok's audit status code for the ad, as the ad library reports it.

  • urlstring

    https://library.tiktok.com/ads/detail?ad_id=7648493525660270600&region=DE

    Link to the ad's detail page in TikTok's public Ads Library.

  • videoUrlstring

    https://p16-ads-sign-useast8.tiktokcdn.com/obj/ad-video/7648493525660270600~tplv-ad-video.mp4

    Playable URL of the ad's first video. Populated whenever the provider has data for the entity.

datadata
  • hasMoreboolean

    true

  • nextCursorstring

    eyJvZmZzZXQiOjIwfQ==

    Opaque cursor for the next page of ads, or null when this lane has no more. Pass it back as cursor to continue.

  • totalinteger

    46

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

You get back. Named, typed fields in the same shape whichever source answers.

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 public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video). AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $0.80 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 96.3% of TikTok ad library search calls through AnyAPI succeeded, with a median response time of 2.4 seconds across 4,118 measured calls.

It costs from $0.80 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

Search TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video). 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, 96.3% of TikTok ad library search calls through AnyAPI succeeded, with a median response time of 2.4 seconds across 4,118 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.

Yes. A new AnyAPI account starts with $0.10 of free balance and no card required, which covers 125 TikTok Ad library search calls at $0.0008 each.

AnyAPI asks the next of its 2 sources in the same request, cheapest first, so one source going down does not fail your call.

Send a POST request to https://api.getanyapi.com/v1/run/tiktok.ad_library_search with your AnyAPI key in an "Authorization: Bearer" header and the input as a JSON body. The same key and the same wallet work on every AnyAPI endpoint.

No. You add US dollars to one prepaid AnyAPI balance and each request draws it down. There is no monthly plan and no minimum, and the same balance pays for every AnyAPI endpoint.

Yes. Install @getanyapi/sdk from npm for TypeScript or getanyapi from pip for Python. Both call every AnyAPI endpoint with the same key, and any HTTP client works too.

Yes. An agent can connect to the AnyAPI MCP server at https://api.getanyapi.com/mcp, or create its own free-trial key with one unauthenticated POST to https://api.getanyapi.com/agent/signup and call this endpoint over HTTP.