API para TikTok: Fotos
Obtenha todas as imagens de um post em modo foto (carrossel) do TikTok pela URL, em ordem, com as dimensões em pixels e as versões sem e com marca d'água de cada uma. Vídeos não têm imagens: para eles, use tiktok.video_download.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"authorHandle": "alex_rivera",
"authorImage": "https://example.com/image.jpg",
"authorName": "Alex Rivera",
"authorUserId": "Alex Rivera",
"caption": "A short example description of this item.",
"comments": 12500,
"createdUtc": 12.5,
"id": "a1b2c3d4",
"images": [
{
"height": 42,
"image": "https://example.com/image.jpg",
"watermarkedImage": "https://example.com/image.jpg",
"width": 1024
}
],
"likes": 12500,
"region": "CA",
"saves": 42,
"shares": 13,
"url": "https://example.com/page",
"views": 12500
},
"found": true,
"reason": "not_found"
}interface TiktokPhotosResponse {
data: {
authorHandle?: string;
authorImage?: string;
authorName?: string;
authorUserId?: string;
caption?: string;
comments?: number;
createdUtc?: number;
id: string;
images: {
height?: number;
image: string;
watermarkedImage?: string;
width?: number;
}[];
likes?: number;
region?: string;
saves?: number;
shares?: number;
url?: string;
views?: 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.photos \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.tiktok.com/@foodbyfranchi/video/7479916555602513174"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://www.tiktok.com/@foodbyfranchi/video/7479916555602513174"URL completa do post em modo foto do TikTok. O TikTok serve posts em carrossel no mesmo caminho /video/<id> dos vídeos, então o link de compartilhamento normal funciona. |
| Resposta | ||
| data | object | |
| data.authorHandle | string | Author's TikTok handle, without the leading @. |
| data.authorImage | string | Author's avatar image URL. Signed and short-lived, so the query string is load-bearing and kept intact. |
| data.authorName | string | Author's display name. |
| data.authorUserId | string | Author's numeric TikTok user id. |
| data.caption | string | Post caption. |
| data.comments | integer | Comment count. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.id | string | TikTok post id. Populated whenever the provider has data for the entity. |
| data.images | object[] | Every image in the post, in the order the creator arranged them. Populated whenever the provider has data for the entity. |
| data.images[].height | integer | Pixel height of the image. |
| data.images[].image | string | The image without TikTok's watermark or the creator's handle. A signed, short-lived TikTok CDN URL, so fetch it promptly; the query params are the signature and must be kept intact. Despite the .jpeg in the path this is often served as HEIC, so transcode if you need broad browser support. Populated whenever the provider has data for the entity. |
| data.images[].watermarkedImage | string | The same image carrying TikTok's watermark and the creator's handle. Signed and short-lived on the same terms as image. |
| data.images[].width | integer | Pixel width of the image. |
| data.likes | integer | Like count. |
| data.region | string | Two-letter region code the post was published from. |
| data.saves | integer | Save count. |
| data.shares | integer | Share count. |
| data.url | string | Canonical TikTok URL of the photo post. |
| data.views | integer | View count. |
| found | boolean | False when the post carries no photo-mode images: a plain video (use tiktok.video_download), or a deleted or private post. |
| 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 Fotos da API para TikTok
O endpoint Fotos da AnyAPI para TikTok retorna dados de TikTok em JSON normalizado com uma chamada POST para /v1/run/tiktok.photos. Obtenha todas as imagens de um post em modo foto (carrossel) do TikTok pela URL, em ordem, com as dimensões em pixels e as versões sem e com marca d'água de cada uma. Vídeos não têm imagens: para eles, use tiktok.video_download. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. 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, 100,0% das chamadas ao endpoint Fotos da API para TikTok feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,8 segundos, em 403 chamadas medidas.