Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

TikTok Ads Library Search Ads

Documentación de la 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).

Precio
$0.06USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 7 opcionales

Entorno de pruebas

Entrada
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.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
TikTok Ads Library$0.06 por llamadaJSON
TikTok Ads Library$0.03 por llamadaJSON
TikTok Ads Library$0.03 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de TikTok Ads Library Search Ads?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok-ads-library/search-ads con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de TikTok Ads Library Search Ads?

$0.06 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de TikTok Ads Library Search Ads?

Requeridos: query (string). Opcionales: limit (integer), offset (integer), region (una de all, FR, DE, GB), sort_by (una de last_shown_date,desc, last_shown_date,asc), end_time (integer) y search_id (string) y 1 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de TikTok Ads Library Search Ads?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica).

¿Necesito una cuenta de desarrollador o una clave API de TikTok Ads Library?

No. TikTok Ads Library Search Ads funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de TikTok Ads Library por separado.