Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

TikTok Ad Library Search

API 文档
https://api.sandbase.ai/v1/api/tiktok/ad-library-search

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

价格
起价 $0.0008美元 / 次调用
方法
POST
响应
JSON
参数
0 个必填 · 4 个可选

Playground

输入
Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
Opaque cursor from a previous response's nextCursor. Omit it for the first page.
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.
Advertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

TikTok Ad Library Search API

This API searches TikTok's public Ads Library and returns a page of matching ads. Each ad includes the advertiser name, ad title, an audience band, run dates, a library link and a video link. Send either a query keyword or an advertiserName, not both.

Use cases

  • Track which ads a brand currently runs on TikTok in a given EU or EEA region.
  • Compare ad titles and audience bands for competing advertisers.
  • Build a timeline of when a campaign started and last ran from its first and last shown dates.
  • Collect library links and video links to review ad creatives.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-library-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "spotify"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
advertiserNamestringNoAdvertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
cursorstringNoOpaque cursor from a previous response's nextCursor. Omit it for the first page.
querystringNoKeyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
regionstringNoTwo-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-

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "ads": [
      {
        "adId": "1823872659482674",
        "adTitle": "Pitch to Spotify Playlists",
        "brandName": "SPOTIFY USA INC",
        "coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/oUeIxrmUDGrsUgpzfm…",
        "estimatedAudience": "100K-200K",
        "firstShownUtc": 1739404800,
        "format": "2",
        "lastShownUtc": 1793577600,
        "status": "1",
        "url": "https://library.tiktok.com/ads/detail/?ad_id=1823872659482674",
        "videoUrl": "https://library.tiktok.com/api/v1/cdn/1793691827/video/aHR0cHM6Ly92NzcudGlrdG9rY…"
      }
    ],
    "hasMore": false,
    "nextCursor": "cur_uNU1NXRd1LfZ6gD-_NvMGA",
    "total": 5000
  },
  "found": true
}

Response fields

FieldMeaning
data.ads[].adIdID of the ad. Pass it to an ad detail API to get more about one ad.
data.ads[].adTitleTitle text of the ad.
data.ads[].brandNameName of the advertiser that ran the ad, such as SPOTIFY LIMITED.
data.ads[].estimatedAudienceAudience size as a range string, such as 100K-200K or 1M-10M.
data.ads[].firstShownUtc / data.ads[].lastShownUtcUnix timestamps in seconds for the first and last day the ad was shown.
data.ads[].urlLink to the ad's detail page in TikTok's Ads Library.
data.ads[].videoUrl / data.ads[].coverUrlLink to the ad video and link to its cover image.
data.totalTotal count of matching ads reported for the search.
data.hasMore / data.nextCursorhasMore tells you if another page exists. nextCursor is the value to send as cursor for the next page.

Notes

  • Use region with a two-letter EU or EEA code such as DE, FR, GB or IT. Each region holds a different set of ads, and DE is the default.
  • To page through results, send the nextCursor value from the last response as cursor. Stop when hasMore is false.
  • Use TikTok Ad Library Ad to look up a single ad from its adId.

Pricing

Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
TikTok每次调用从 $0.0008 起JSON
TikTok每次调用从 $0.0012 起JSON
TikTok每次调用从 $0.0008 起JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON
TikTok$0.001 每次调用JSON

指南:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

问题

常见问题

如何使用 TikTok Ad Library Search API?

向 https://api.sandbase.ai/v1/api/tiktok/ad-library-search 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

TikTok Ad Library Search API 的价格是多少?

起价每次调用 $0.0008,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

TikTok Ad Library Search API 接受哪些参数?

无需参数。 可选:query (string), cursor (string), region (string) 和 advertiserName (string)。 Parameters 表和本页的 Playground 列出了每个字段。

TikTok Ad Library Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 TikTok 开发者账户或 API key 吗?

不需要。TikTok Ad Library Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 TikTok API 访问权限。