Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

TikTok Ads Library Search Ads

Docs API
https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads

Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).

Prix
$0.06USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 7 facultatifs

Bac à sable

Entrée
Search query (advertiser name or keyword)
Number of results per page (max 50)
Pagination offset (0-based). Requires search_id from a previous response for values > 0.
Region/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes.
Sort order: 'last_shown_date,desc' or 'last_shown_date,asc'
End of date range as Unix timestamp (seconds). Defaults to now.
Search ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
Start of date range as Unix timestamp (seconds). Defaults to 1 year ago.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

TikTok Ads Library Search Ads API

Search the TikTok Ad Library for ads matching a query (advertiser name or keyword).

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "tiktok-ads-library/search-ads", "limit": 12, "query": "nike", "offset": 0, "region": "all", "sort_by": "last_shown_date,desc", "search_id": ""}'

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

Parameters

NameTypeRequiredDescription
querystringYesSearch query (advertiser name or keyword)
end_timeintegerNoEnd of date range as Unix timestamp (seconds). Defaults to now.
limitintegerNoNumber of results per page (max 50)
offsetintegerNoPagination offset (0-based). Requires search_id from a previous response for values > 0.
regionstringNoRegion/country code filter (e.g. 'FR', 'DE', 'GB') or 'all' for all regions. Use get_supported_regions for the full list of accepted codes. One of: all, FR, DE, GB.
search_idstringNoSearch ID returned from a previous search_ads call. Required when offset > 0 to paginate through results.
sort_bystringNoSort order: 'last_shown_date,desc' or 'last_shown_date,asc' One of: last_shown_date,desc, last_shown_date,asc.
start_timeintegerNoStart of date range as Unix timestamp (seconds). Defaults to 1 year ago.

Pricing

Flat $0.06 per call. Failed calls are not charged.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
TikTok Ads Library$0.06 par appelJSON
TikTok Ads Library$0.03 par appelJSON
TikTok Ads Library$0.03 par appelJSON

Questions

FAQ

Comment utiliser l’API TikTok Ads Library Search Ads ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads 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.

Combien coûte l’API TikTok Ads Library Search Ads ?

$0.06 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API TikTok Ads Library Search Ads accepte-t-elle ?

Obligatoire : query (string). Facultatif : limit (integer), offset (integer), region (l’un de all, FR, DE, GB), sort_by (l’un de last_shown_date,desc, last_shown_date,asc), end_time (integer) et search_id (string) et 1 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API TikTok Ads Library Search Ads ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone).

Ai-je besoin d’un compte développeur ou d’une clé API TikTok Ads Library ?

Non. TikTok Ads Library Search Ads 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 Ads Library séparément.