API para TikTok: Busca na biblioteca de anúncios
Busque na Ads Library pública do TikTok por palavra-chave ou anunciante (anunciante, título, faixa de público, datas de veiculação, link da biblioteca e vídeo).
Preços
Um preço, em dólares
Um provedor marcado como Fora de serviço parou de responder de forma confiável e foi retirado do rodízio, então suas chamadas vão para os outros. Ele volta sozinho assim que responder de forma confiável de novo.
Teste
Faça sua primeira requisição
{
"data": {
"ads": [
{
"adId": "a1b2c3d4",
"adTitle": "Example title",
"brandName": "Acme Inc",
"coverUrl": "https://example.com/page",
"estimatedAudience": "example",
"firstShownUtc": 42,
"format": "example",
"lastShownUtc": 42,
"status": "active",
"url": "https://example.com/page",
"videoUrl": "https://example.com/page"
}
],
"hasMore": true,
"nextCursor": "example",
"total": 12500
},
"found": true,
"reason": "not_found"
}interface TiktokAdLibrarySearchResponse {
data: {
ads: {
adId: string;
adTitle: string;
brandName: string;
coverUrl: string;
estimatedAudience: string;
firstShownUtc?: number;
format?: string;
lastShownUtc?: number;
status?: string;
url?: string;
videoUrl: string;
}[];
hasMore: boolean;
nextCursor: string | null;
total: number;
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/tiktok.ad_library_search \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"spotify"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| advertiserName | string | Nome do anunciante cujos anúncios listar (ex.: Spotify). Informe advertiserName ou query, nunca os dois. |
| cursor | string | Cursor opaco vindo do nextCursor de uma resposta anterior. Omita na primeira página. |
| query | string | "spotify"Palavra-chave para buscar nos títulos e no conteúdo dos anúncios (ex.: spotify). Informe query ou advertiserName, nunca os dois. |
| region | string | Código de região de duas letras da Commercial Content Library do TikTok, como DE, FR, GB ou IT. Cada região tem um conjunto diferente de anúncios. Omita para usar a região padrão da própria biblioteca, DE. A cobertura é a UE e o EEE; um código fora da UE, como US, não é atendido. |
| Resposta | ||
| data | object | |
| data.ads | object[] | Populated whenever the provider has data for the entity. |
| data.ads[].adId | string | TikTok ad id. Populated whenever the provider has data for the entity. |
| data.ads[].adTitle | string | Ad title as shown in TikTok's ad library. Populated whenever the provider has data for the entity. |
| data.ads[].brandName | string | Advertiser name on the ad. |
| data.ads[].coverUrl | string | Cover image URL of the ad's first video. Populated whenever the provider has data for the entity. |
| data.ads[].estimatedAudience | string | Audience size band TikTok publishes for the ad, for example "100K-200K". |
| data.ads[].firstShownUtc | integer | UTC epoch timestamp in seconds (Unix time) when TikTok first showed the ad. Multiply by 1000 for a JS Date in milliseconds. |
| data.ads[].format | string | TikTok's creative format code for the ad, as the ad library reports it. |
| data.ads[].lastShownUtc | integer | UTC epoch timestamp in seconds (Unix time) when TikTok last showed the ad. Multiply by 1000 for a JS Date in milliseconds. |
| data.ads[].status | string | TikTok's audit status code for the ad, as the ad library reports it. |
| data.ads[].url | string | Link to the ad's detail page in TikTok's public Ads Library. |
| data.ads[].videoUrl | string | Playable URL of the ad's first video. Populated whenever the provider has data for the entity. |
| data.hasMore | boolean | |
| data.nextCursor | string | Opaque cursor for the next page of ads, or null when this lane has no more. Pass it back as cursor to continue. |
| data.total | integer | |
| found | boolean | |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0012 |
| Preço /mil req. | USD | US$ 1,20 |
Dúvidas frequentes
Sobre o endpoint Busca na biblioteca de anúncios da API para TikTok
O endpoint Busca na biblioteca de anúncios da AnyAPI para TikTok retorna dados de TikTok em JSON normalizado com uma chamada POST para /v1/run/tiktok.ad_library_search. Busque na Ads Library pública do TikTok por palavra-chave ou anunciante (anunciante, título, faixa de público, datas de veiculação, link da biblioteca e vídeo). A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 1,20 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 42,9% das chamadas ao endpoint Busca na biblioteca de anúncios da API para TikTok feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 2,6 segundos, em 42 chamadas medidas.