API para Instagram: Principais posts da hashtag
Os posts mais bem ranqueados pelo próprio Instagram para uma hashtag, lidos do feed ao vivo da hashtag e não de um índice de busca na web, com contagens de visualizações, curtidas e comentários. Predominam Reels e o ranking é por engajamento, então mostra o que está performando em uma tag agora. Para resultados mais antigos ranqueados por relevância, com filtros de data e tipo de mídia, use instagram.search_hashtag; para o feed cronológico, use instagram.hashtag_recent_posts.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"nextCursor": "example",
"posts": [
{
"avatarUrl": "https://example.com/image.jpg",
"caption": "A short example description of this item.",
"comments": 12500,
"createdUtc": 12.5,
"durationSeconds": 12.5,
"id": "a1b2c3d4",
"likes": 12500,
"media": [
{
"type": "general",
"url": "https://example.com/page",
"videoUrl": "https://example.com/page"
}
],
"shortcode": "a1b2c3d4",
"url": "https://example.com/page",
"username": "alex_rivera",
"verified": true,
"views": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface InstagramHashtagTopPostsResponse {
data: {
nextCursor: string | null;
posts: {
avatarUrl?: string;
caption: string;
comments?: number;
createdUtc?: number;
durationSeconds?: number;
id: string;
likes?: number;
media?: {
type: string;
url: string;
videoUrl?: string;
}[];
shortcode: string;
url: string;
username: string;
verified?: boolean;
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/instagram.hashtag_top_posts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"hashtag":"skincare"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| hashtag | string | "skincare"Hashtag a buscar, sem o # inicial. |
| cursor | string | Cursor de paginação do nextCursor de uma resposta anterior. |
| Resposta | ||
| data | object | |
| data.nextCursor | string | Opaque cursor for the next page of posts, or null when this lane has no more. Pass it back as cursor to continue. |
| data.posts | object[] | Top-ranked posts for the hashtag, ordered by Instagram's engagement model rather than by time. Populated whenever the provider has data for the entity. |
| data.posts[].avatarUrl | string | Profile picture URL of the posting account. Populated whenever the provider has data for the entity. |
| data.posts[].caption | string | Post caption text, including its hashtags. Populated whenever the provider has data for the entity. |
| data.posts[].comments | integer | Comment count. |
| data.posts[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.posts[].durationSeconds | number | Video duration in seconds. Absent on photo posts. |
| data.posts[].id | string | Instagram media id. Populated whenever the provider has data for the entity. |
| data.posts[].likes | integer | Like count. Absent when the account hides it. |
| data.posts[].media | object[] | Photo and video attachments on the post. |
| data.posts[].media[].type | string | One of photo or video. |
| data.posts[].media[].url | string | Image URL. For a video this is the cover frame. |
| data.posts[].media[].videoUrl | string | Playable video file URL. Present only for video items. |
| data.posts[].shortcode | string | Short code in the post permalink. Populated whenever the provider has data for the entity. |
| data.posts[].url | string | Canonical permalink to the post. Populated whenever the provider has data for the entity. |
| data.posts[].username | string | Username of the account that posted. Populated whenever the provider has data for the entity. |
| data.posts[].verified | boolean | True when the posting account is verified. |
| data.posts[].views | integer | Play count. Present on video posts. |
| 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,0011 |
| Preço /mil req. | USD | US$ 1,10 |
Dúvidas frequentes
Sobre o endpoint Principais posts da hashtag da API para Instagram
O endpoint Principais posts da hashtag da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.hashtag_top_posts. Os posts mais bem ranqueados pelo próprio Instagram para uma hashtag, lidos do feed ao vivo da hashtag e não de um índice de busca na web, com contagens de visualizações, curtidas e comentários. Predominam Reels e o ranking é por engajamento, então mostra o que está performando em uma tag agora. Para resultados mais antigos ranqueados por relevância, com filtros de data e tipo de mídia, use instagram.search_hashtag; para o feed cronológico, use instagram.hashtag_recent_posts. A AnyAPI distribui cada requisição entre 3 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,10 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Principais posts da hashtag da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 6,8 segundos, em 703 chamadas medidas.