Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

TikTok Ad Library Search

Tài liệu 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).

Giá
Từ $0.0008USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
0 bắt buộc · 4 tùy chọn

Phòng thử nghiệm

Đầu vào
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.
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTokTừ $0.0012 mỗi lần gọiJSON
TikTokTừ $0.0008 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON
TikTok$0.001 mỗi lần gọiJSON

Hướng dẫn:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API TikTok Ad Library Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/tiktok/ad-library-search với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API TikTok Ad Library Search có giá bao nhiêu?

Từ $0.0008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API TikTok Ad Library Search chấp nhận những tham số nào?

Không có tham số bắt buộc. Tùy chọn: query (string), cursor (string), region (string) và advertiserName (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API TikTok Ad Library Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của TikTok không?

Không. TikTok Ad Library Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của TikTok.