API para TikTok: Vídeos da música
Liste os vídeos do TikTok que usam uma determinada música ou som (com descrições, autores e estatísticas de engajamento).
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"hasMore": 42,
"nextCursor": "example",
"videos": [
{
"authorHandle": "alex_rivera",
"authorImage": "https://example.com/image.jpg",
"authorName": "Alex Rivera",
"authorUserId": "Alex Rivera",
"collectCount": 12500,
"commentCount": 12500,
"createTime": 42,
"description": "A short example description of this item.",
"durationSeconds": 12.5,
"image": "https://example.com/image.jpg",
"likeCount": 12500,
"playCount": 12500,
"shareCount": 13,
"url": "https://example.com/page",
"videoId": "a1b2c3d4",
"videoUrl": "https://example.com/page"
}
]
},
"found": true,
"reason": "not_found"
}interface TiktokSongVideosResponse {
data: {
hasMore: number;
nextCursor: string | null;
videos: {
authorHandle: string;
authorImage?: string;
authorName: string;
authorUserId?: string;
collectCount?: number;
commentCount: number;
createTime: number;
description: string;
durationSeconds?: number;
image?: string;
likeCount: number;
playCount: number;
shareCount: number;
url?: string;
videoId: string;
videoUrl?: string;
}[];
} | 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.song_videos \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"clipId":"7439295283975702544"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| clipId | string | "7439295283975702544"O ID da música encontrado nas URLs de música do TikTok (ex.: 7439295283975702544). |
| cursor | string | Cursor de paginação para buscar a próxima página de resultados. |
| requireFields | array | Opcional; se omitido, o roteamento não muda e a fonte mais barata atende. Informe os campos de saída que esta requisição precisa poder retornar, por exemplo `nextCursor`, e ela só será atendida por uma fonte que retorne todos eles. Os campos que você não informar continuam sendo retornados sempre que a fonte que atende os tiver. Isso pode aumentar o seu preço: quando a fonte mais barata não consegue retornar um campo informado, uma fonte mais cara atende, e você recebe a cotação e é cobrado pelo preço dela. Um campo informado ainda pode vir ausente em um registro que realmente não o tenha. Se você informar uma combinação de campos que nenhuma fonte retorna sozinha, a requisição é recusada como entrada inválida, sem cobrança. |
| Resposta | ||
| data | object | |
| data.hasMore | integer | |
| data.nextCursorpode ser exigido | string | Opaque cursor for the next page of videos, or null when this lane has no more. Pass it back as cursor to continue. |
| data.videos | object[] | Populated whenever the provider has data for the entity. |
| data.videos[].authorHandle | string | Populated whenever the provider has data for the entity. |
| data.videos[].authorImage | string | Author's avatar image URL. Signed and short-lived, so the query string is load-bearing and kept intact. |
| data.videos[].authorName | string | Populated whenever the provider has data for the entity. |
| data.videos[].authorUserId | string | Author's numeric TikTok user id. |
| data.videos[].collectCount | integer | Number of times the video was saved. |
| data.videos[].commentCount | integer | |
| data.videos[].createTime | integer | |
| data.videos[].description | string | |
| data.videos[].durationSeconds | number | Video duration in seconds. |
| data.videos[].image | string | URL of the video's cover image. Signed and short-lived, so the query string is load-bearing and kept intact. |
| data.videos[].likeCount | integer | |
| data.videos[].playCount | integer | |
| data.videos[].shareCount | integer | |
| data.videos[].url | string | Canonical TikTok URL of the video. |
| data.videos[].videoId | string | Populated whenever the provider has data for the entity. |
| data.videos[].videoUrl | string | Playable video URL. Signed and short-lived, so the query string is load-bearing and kept intact. |
| 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,0009 |
| Preço /mil req. | USD | US$ 0,90 |
Dúvidas frequentes
Sobre o endpoint Vídeos da música da API para TikTok
O endpoint Vídeos da música da AnyAPI para TikTok retorna dados de TikTok em JSON normalizado com uma chamada POST para /v1/run/tiktok.song_videos. Liste os vídeos do TikTok que usam uma determinada música ou som (com descrições, autores e estatísticas de engajamento). A AnyAPI distribui cada requisição entre 4 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,90 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Vídeos da música da API para TikTok feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,9 segundos, em 2 chamadas medidas.