querystring
Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
https://api.sandbase.ai/v1/api/tiktok/ad-library-searchSearch TikTok's public Ads Library by keyword or advertiser (advertiser, title, audience band, run dates, library link, and video).
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
advertiserName | string | No | Advertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both. |
cursor | string | No | Opaque cursor from a previous response's nextCursor. Omit it for the first page. |
query | string | No | Keyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both. |
region | string | No | 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- |
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
}
| Field | Meaning |
|---|---|
data.ads[].adId | ID of the ad. Pass it to an ad detail API to get more about one ad. |
data.ads[].adTitle | Title text of the ad. |
data.ads[].brandName | Name of the advertiser that ran the ad, such as SPOTIFY LIMITED. |
data.ads[].estimatedAudience | Audience size as a range string, such as 100K-200K or 1M-10M. |
data.ads[].firstShownUtc / data.ads[].lastShownUtc | Unix timestamps in seconds for the first and last day the ad was shown. |
data.ads[].url | Link to the ad's detail page in TikTok's Ads Library. |
data.ads[].videoUrl / data.ads[].coverUrl | Link to the ad video and link to its cover image. |
data.total | Total count of matching ads reported for the search. |
data.hasMore / data.nextCursor | hasMore tells you if another page exists. nextCursor is the value to send as cursor for the next page. |
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.nextCursor value from the last response as cursor. Stop when hasMore is false.adId.Billed at the actual cost of each call, about $0.0008 for the request above. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
querystringKeyword to search ad titles and content (e.g. spotify). Provide query or advertiserName, never both.
cursorstringOpaque cursor from a previous response's nextCursor. Omit it for the first page.
regionstringTwo-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.
advertiserNamestringAdvertiser name to list ads for (e.g. Spotify). Provide advertiserName or query, never both.
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Ad Library Searchこの API TikTok | 1回あたり $0.0008 から | JSON |
TikTok | 1回あたり $0.0012 から | JSON |
TikTok | 1回あたり $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
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/ad-library-search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.0008 から、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: query (string), cursor (string), region (string) と advertiserName (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Ad Library Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。