API para Instagram: Respostas a comentários
Liste as respostas a um comentário do Instagram, com paginação por cursor (texto, autor, curtidas).
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"comments": [
{
"author": "Alex Rivera",
"avatarUrl": "https://example.com/image.jpg",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"likes": 12500,
"text": "A short example description of this item.",
"userId": "a1b2c3d4",
"verified": true
}
],
"nextCursor": "example"
},
"found": true,
"reason": "not_found"
}interface InstagramCommentRepliesResponse {
data: {
comments: {
author: string;
avatarUrl?: string;
createdUtc: number;
id: string;
likes?: number;
text: string;
userId?: string;
verified: boolean;
}[];
nextCursor: string | null;
} | 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.comment_replies \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"commentId":"18126632131325044","url":"https://www.instagram.com/p/C8rKmYvsrck/"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| commentId | string | "18126632131325044"ID do comentário no Instagram (o ID de um comentário vindo do endpoint Instagram Post Comments). |
| url | string | "https://www.instagram.com/p/C8rKmYvsrck/"URL completa do post ou reel do Instagram ao qual o comentário pertence. |
| cursor | string | Cursor de paginação do nextCursor de uma resposta anterior. |
| Resposta | ||
| data | object | |
| data.comments | object[] | Replies to the requested comment, oldest first. Populated whenever the provider has data for the entity. |
| data.comments[].author | string | Username of the account that wrote the reply, without the @ prefix. Populated whenever the provider has data for the entity. |
| data.comments[].avatarUrl | string | URL of the replying account's profile avatar image. |
| data.comments[].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.comments[].id | string | The reply's Instagram comment ID, as a string. Populated whenever the provider has data for the entity. |
| data.comments[].likes | integer | Number of likes on the reply. Omitted when no like count is reported for the reply. |
| data.comments[].text | string | The reply's text content. Populated whenever the provider has data for the entity. |
| data.comments[].userId | string | Instagram user id of the replying account. |
| data.comments[].verified | boolean | Whether the reply's author has a verified badge. |
| data.nextCursor | string | Opaque cursor for the next page of replies, or null when this lane has no more. Pass it back as cursor to continue. |
| 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 Respostas a comentários da API para Instagram
O endpoint Respostas a comentários da AnyAPI para Instagram retorna dados de Instagram em JSON normalizado com uma chamada POST para /v1/run/instagram.comment_replies. Liste as respostas a um comentário do Instagram, com paginação por cursor (texto, autor, curtidas). A AnyAPI distribui cada requisição entre 4 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 Respostas a comentários da API para Instagram feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,1 segundos, em 49 chamadas medidas.