API para TikTok: Buscar fotos
Busque no TikTok posts em modo foto (carrossel) por palavra-chave, com todas as imagens de cada post e contagens de visualizações, curtidas e comentários. tiktok.search_keyword retorna vídeos e descarta esses posts.
Preços
Um preço, em dólares
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"posts": [
{
"author": "Alex Rivera",
"authorFollowers": 12500,
"authorName": "Alex Rivera",
"authorSecUid": "Alex Rivera",
"authorVerified": true,
"caption": "A short example description of this item.",
"comments": 12500,
"createdUtc": 12.5,
"hashtags": [
"a1b2c3d4"
],
"id": "a1b2c3d4",
"images": [
{
"height": 42,
"image": "https://example.com/image.jpg",
"width": 1024
}
],
"likes": 12500,
"saves": 42,
"shares": 13,
"soundAuthor": "Alex Rivera",
"soundClipId": "a1b2c3d4",
"soundTitle": "Example title",
"title": "Example title",
"views": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface TiktokSearchPhotosResponse {
data: {
nextCursor: string | null;
posts: {
author: string;
authorFollowers?: number;
authorName?: string;
authorSecUid?: string;
authorVerified?: boolean;
caption: string;
comments: number;
createdUtc: number;
hashtags?: string[];
id: string;
images?: {
height?: number;
image: string;
width?: number;
}[];
likes: number;
saves?: number;
shares: number;
soundAuthor?: string;
soundClipId?: string;
soundTitle?: string;
title?: 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.search_photos \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"latte art"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "latte art"Palavra-chave de busca. |
| cursor | string | Cursor de paginação do nextCursor de uma resposta anterior. |
| limit | integer | Número máximo de itens a retornar em uma página. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page, or null when there are no more. Pass it back as cursor to continue. |
| data.posts | object[] | Photo-mode posts matching the keyword. |
| data.posts[].author | string | Handle of the account that posted the video, without the leading @. Populated whenever the provider has data for the entity. |
| data.posts[].authorFollowers | integer | The author's follower count at the time of the request. TikTok rounds this for large accounts. |
| data.posts[].authorName | string | The author's display name, which is not the handle and can contain any characters. |
| data.posts[].authorSecUid | string | The author's TikTok sec_uid. Pass it straight to tiktok.profile_reposts or tiktok.profile_playlists to pivot to that creator without a tiktok.profile lookup. |
| data.posts[].authorVerified | boolean | |
| data.posts[].caption | string | Populated whenever the provider has data for the entity. |
| data.posts[].comments | integer | |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.posts[].hashtags | string[] | Hashtags carried in the caption, without the leading #. Empty when the post uses none; @-mentions are excluded. |
| data.posts[].id | string | TikTok video id. Pass it to tiktok.video as id for the full record. Populated whenever the provider has data for the entity. |
| data.posts[].images | object[] | The slideshow's images in order. |
| data.posts[].images[].height | integer | |
| data.posts[].images[].image | string | Image URL. A signed, short-lived TikTok CDN URL - the query params are load-bearing, so keep the URL intact. Populated whenever the provider has data for the entity. |
| data.posts[].images[].width | integer | |
| data.posts[].likes | integer | |
| data.posts[].saves | integer | |
| data.posts[].shares | integer | |
| data.posts[].soundAuthor | string | Credited author of the sound. |
| data.posts[].soundClipId | string | Id of the sound the post uses. Pass it to tiktok.song or tiktok.song_videos as clipId. |
| data.posts[].soundTitle | string | Name of the sound. "original sound" means the creator's own audio rather than a licensed track. |
| data.posts[].title | string | The slideshow's own title, which TikTok stores separately from the caption. Absent when the creator set none. |
| data.posts[].views | 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 Buscar fotos da API para TikTok
O endpoint Buscar fotos da AnyAPI para TikTok retorna dados de TikTok em JSON normalizado com uma chamada POST para /v1/run/tiktok.search_photos. Busque no TikTok posts em modo foto (carrossel) por palavra-chave, com todas as imagens de cada post e contagens de visualizações, curtidas e comentários. tiktok.search_keyword retorna vídeos e descarta esses posts. 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, 100,0% das chamadas ao endpoint Buscar fotos da API para TikTok feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,4 segundos, em 27 chamadas medidas.