adIdstringobligatoire
TikTok Top Ads material/ad ID, or a Top Ads detail URL (e.g. 7648493525660270600).
https://api.sandbase.ai/v1/api/tiktok/ad-library-adFetch full details for a single TikTok ad (brand, title, spend, CTR, objectives, landing page, and video info).
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
This API returns details for one TikTok ad from the Top Ads library. You pass the ad ID or a Top Ads detail URL in adId. The response includes the ad title, target countries, click-through rate, objective, landing page, and video details.
ctr of different ads in the same industry.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-library-ad" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"adId": "7648493525660270600"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
adId | string | Yes | TikTok Top Ads material/ad ID, or a Top Ads detail URL (e.g. 7648493525660270600). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"adId": "7648493525660270600",
"adTitle": "New Captain Tsubasa Game Arrives!",
"brandName": "",
"comments": 0,
"cost": 0,
"countries": [
"US"
],
"coverUrl": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0051c001-sg/os0IwlEEv5Y9Ao1jzi…",
"ctr": 0.87,
"durationSeconds": 6.016,
"height": 1280,
"industry": "label_25100000000",
"landingPage": "https://captaintsubasa-mg11.com/zh-tw/?utm_source=tiktok&utm_medium=cpc&utm_camp…"
},
"found": true
}
| Field | Meaning |
|---|---|
found | true when the ad exists. A lookup that finds nothing returns false. |
data.adId / data.adTitle | The ID of the ad and its title text. |
data.brandName | Name of the brand. It can be an empty string, as in this example. |
data.countries[] | Country codes where the ad ran, such as US, SG and TW. |
data.ctr | Click-through rate of the ad. The example value is 0.87. |
data.objective | Campaign objective as a label, such as campaign_objective_conversion. |
data.industry | Industry label code, such as label_25100000000. The response gives the code only, not a readable name. |
data.landingPage | The URL the ad sends users to, including its tracking parameters. |
data.likes / data.comments / data.shares / data.cost | Counts of likes, comments and shares, and a cost value. All can be 0. |
data.videoUrl / data.coverUrl / data.durationSeconds / data.width / data.height | Links to the video file and cover image, plus the video length in seconds and its size in pixels. |
outputs[0].data. If the ad is not found, the call still succeeds and returns found: false.adId accepts a numeric Top Ads ID such as 7648493525660270600, or a Top Ads detail URL.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/ad-library-ad" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"adId": "7648493525660270600"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
adIdstringobligatoireTikTok Top Ads material/ad ID, or a Top Ads detail URL (e.g. 7648493525660270600).
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
TikTok Ad Library AdCette API TikTok | À partir de $0.0012 par appel | JSON |
TikTok | À partir de $0.0008 par appel | JSON |
TikTok | À partir de $0.0008 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
TikTok | $0.001 par appel | JSON |
Guides :TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok/ad-library-ad avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.0012 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : adId (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. TikTok Ad Library Ad fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API TikTok séparément.