API para Instagram: Posts recentes da hashtag
Posts do Instagram publicados com uma hashtag, mais recentes primeiro, lidos do feed cronológico ao vivo dela e não de um índice de busca na web. Feito para monitoramento: os resultados chegam poucos minutos após a publicação, então as contagens de engajamento costumam ainda estar em zero e Reels não aparecem (o Instagram os mantém em outra aba). Para resultados ranqueados por engajamento, use instagram.hashtag_top_posts; para resultados mais antigos ranqueados por relevância, use instagram.search_hashtag.
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.",
"carouselCount": 12500,
"comments": 12500,
"createdUtc": 12.5,
"displayName": "Alex Rivera",
"hashtags": [
"a1b2c3d4"
],
"height": 42,
"id": "a1b2c3d4",
"likes": 12500,
"locationLat": 12.5,
"locationLng": -122.4194,
"locationName": "Example title",
"media": [
{
"type": "general",
"url": "https://example.com/page"
}
],
"paidPartnership": true,
"private": false,
"productType": "general",
"shortcode": "a1b2c3d4",
"url": "https://example.com/page",
"userId": "a1b2c3d4",
"username": "alex_rivera",
"verified": true,
"width": 1024
}
]
},
"found": true,
"reason": "not_found"
}interface InstagramHashtagRecentPostsResponse {
data: {
nextCursor: string | null;
posts: {
avatarUrl?: string;
caption: string;
carouselCount?: number;
comments?: number;
createdUtc?: number;
displayName?: string;
hashtags?: string[];
height?: number;
id: string;
likes?: number;
locationLat?: number;
locationLng?: number;
locationName?: string;
media?: {
type: string;
url: string;
}[];
paidPartnership?: boolean;
private?: boolean;
productType?: string;
shortcode: string;
url: string;
userId?: string;
username: string;
verified?: boolean;
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/instagram.hashtag_recent_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 monitorar, 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[] | Posts under the hashtag, newest first. Engagement counts are usually zero because the posts are minutes old. Populated whenever the provider has data for the entity. |
| data.posts[].avatarUrl | string | Profile picture URL of the author. |
| data.posts[].caption | string | Post caption text, including its hashtags. Populated whenever the provider has data for the entity. |
| data.posts[].carouselCount | integer | Number of items in the carousel. Absent on a single-image post. |
| data.posts[].comments | integer | Comment count. Usually zero on a post this new. |
| 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[].displayName | string | Display name of the author. |
| data.posts[].hashtags | string[] | Hashtags carried in the caption, each including its leading #. Populated whenever the provider has data for the entity. |
| data.posts[].height | integer | Original pixel height of the media. |
| data.posts[].id | string | Instagram media id. Populated whenever the provider has data for the entity. |
| data.posts[].likes | integer | Like count. Usually zero on a post this new. |
| data.posts[].locationLat | number | Latitude of the tagged place. |
| data.posts[].locationLng | number | Longitude of the tagged place. |
| data.posts[].locationName | string | Place name tagged on the post. Absent when the poster tagged none, which is most posts. |
| data.posts[].media | object[] | Cover media for the post. A carousel reports its full size in carouselCount. |
| data.posts[].media[].type | string | One of photo or video. Videos are rare in this feed; Instagram keeps reels on a separate tab. |
| data.posts[].media[].url | string | Image URL. For a video this is the cover frame. |
| data.posts[].paidPartnership | boolean | True when the post is tagged as a paid partnership. |
| data.posts[].private | boolean | True when the author's account is private. |
| data.posts[].productType | string | Instagram product type of the media, for example feed, clips or igtv. |
| 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[].userId | string | Instagram user id of the author. |
| 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 author's account carries a verified badge. |
| data.posts[].width | integer | Original pixel width of the media. |
| 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,0015 |
| Preço /mil req. | USD | US$ 1,50 |
Dúvidas frequentes
Sobre o endpoint Posts recentes da hashtag da API para Instagram
O endpoint Posts recentes da hashtag da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.hashtag_recent_posts. Posts do Instagram publicados com uma hashtag, mais recentes primeiro, lidos do feed cronológico ao vivo dela e não de um índice de busca na web. Feito para monitoramento: os resultados chegam poucos minutos após a publicação, então as contagens de engajamento costumam ainda estar em zero e Reels não aparecem (o Instagram os mantém em outra aba). Para resultados ranqueados por engajamento, use instagram.hashtag_top_posts; para resultados mais antigos ranqueados por relevância, use instagram.search_hashtag. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,50 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 99,9% das chamadas ao endpoint Posts recentes da hashtag da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 6,4 segundos, em 1.368 chamadas medidas.