API para TikTok: Download de vídeo
Obtenha os arquivos de mídia reproduzíveis por trás da URL de um vídeo do TikTok: o MP4 limpo sem marca d'água, o com marca d'água que o próprio botão de salvar do TikTok gera e a imagem de capa, com duração e dimensões em pixels. Posts em modo foto não têm arquivo de vídeo: para eles, use tiktok.photos.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"authorHandle": "alex_rivera",
"authorName": "Alex Rivera",
"authorUserId": "Alex Rivera",
"caption": "A short example description of this item.",
"createdUtc": 12.5,
"durationSeconds": 12.5,
"height": 42,
"id": "a1b2c3d4",
"image": "https://example.com/image.jpg",
"region": "CA",
"url": "https://example.com/page",
"videoUrl": "https://example.com/page",
"watermarkedUrl": "https://example.com/page",
"width": 1024
},
"found": true,
"reason": "not_found"
}interface TiktokVideoDownloadResponse {
data: {
authorHandle?: string;
authorName?: string;
authorUserId?: string;
caption?: string;
createdUtc?: number;
durationSeconds?: number;
height?: number;
id: string;
image?: string;
region?: string;
url?: string;
videoUrl: string;
watermarkedUrl?: string;
width?: 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.video_download \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@mrbeast/video/7654638524729216287"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://www.tiktok.com/@mrbeast/video/7654638524729216287"URL completa do vídeo do TikTok. Links de compartilhamento e parâmetros de rastreamento na query não são problema. |
| 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 `height` ou `width`, 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 vídeo 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.authorHandle | string | Author's TikTok handle, without the leading @. |
| data.authorName | string | Author's display name. |
| data.authorUserId | string | Author's numeric TikTok user id. |
| data.caption | string | Post caption. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.durationSeconds | number | Length of the video in seconds. |
| data.heightpode ser exigido | integer | Pixel height of the video file. |
| data.id | string | TikTok video id. Populated whenever the provider has data for the entity. |
| data.image | string | Cover image for the video. A signed, short-lived TikTok CDN URL, often served as HEIC rather than JPEG, so fetch it promptly and transcode if you need broad browser support. |
| data.region | string | Two-letter region code the video was published from. |
| data.url | string | Canonical TikTok URL of the video. |
| data.videoUrl | string | Direct MP4 without the TikTok watermark or handle overlay. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Send no cookies with the request - a tt_chain_token cookie makes the CDN answer 403. Populated whenever the provider has data for the entity. |
| data.watermarkedUrl | string | Direct MP4 carrying TikTok's watermark and the creator's handle, the same file TikTok's own save button produces. Signed and short-lived on the same terms as videoUrl. |
| data.widthpode ser exigido | integer | Pixel width of the video file. |
| found | boolean | False when the post has no downloadable video file: a deleted or private video, or a photo-mode post (use tiktok.photos for those). |
| 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 Download de vídeo da API para TikTok
O endpoint Download de vídeo da AnyAPI para TikTok retorna dados de TikTok em JSON normalizado com uma chamada POST para /v1/run/tiktok.video_download. Obtenha os arquivos de mídia reproduzíveis por trás da URL de um vídeo do TikTok: o MP4 limpo sem marca d'água, o com marca d'água que o próprio botão de salvar do TikTok gera e a imagem de capa, com duração e dimensões em pixels. Posts em modo foto não têm arquivo de vídeo: para eles, use tiktok.photos. A AnyAPI distribui cada requisição entre 3 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 Download de vídeo da API para TikTok feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,7 segundos, em 2.648 chamadas medidas.