API para X / Twitter: Respostas
Obtenha as respostas a qualquer post do X (Twitter) pela URL, como registros estruturados: autor, texto e engajamento. Um resultado vazio é válido e não indica se o post existe ou não.
Rede de provedores
Provedores ordenados por tráfego
com teto de US$ 0,0037 por requisição1 resultadoUS$ 0,000218 resultadosUS$ 0,001936 resultadosUS$ 0,0037 (teto)Você paga pelo que volta. Reduza o limite para pagar menos - e nenhuma requisição custa mais que o teto, não importa quanto volte.
com teto de US$ 0,0138 por requisição1 resultadoUS$ 0,0030320 resultadosUS$ 0,0083540 resultadosUS$ 0,0138 (teto)Você paga pelo que volta. Reduza o limite para pagar menos - e nenhuma requisição custa mais que o teto, não importa quanto volte.
Teste
Faça sua primeira requisição
{
"data": {
"conversationId": "a1b2c3d4",
"items": [
{
"authorHandle": "alex_rivera",
"authorName": "Alex Rivera",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"likeCount": 12500,
"media": [
{
"height": 42,
"type": "general",
"url": "https://example.com/page",
"videoUrl": "https://example.com/page",
"width": 1024
}
],
"quoteCount": 12500,
"replyCount": 12500,
"repostCount": 12500,
"text": "A short example description of this item.",
"url": "https://example.com/page",
"viewCount": 12500
}
]
},
"found": true,
"reason": "not_found"
}interface TwitterRepliesResponse {
data: {
conversationId?: string;
items: {
authorHandle?: string;
authorName?: string;
createdUtc: number;
id: string;
likeCount?: number;
media?: {
height?: number;
type: string;
url: string;
videoUrl?: string;
width?: number;
}[];
quoteCount?: number;
replyCount?: number;
repostCount?: number;
text: string;
url: string;
viewCount?: number | 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/twitter.replies \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/jack/status/20"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://x.com/jack/status/20"URL completa do post do X (Twitter) cujas respostas serão buscadas (ex.: https://x.com/nasa/status/1846987139428634858). |
| limit | integer | Número máximo de resultados a retornar (1-40, padrão 40). Fontes cobradas por resultado custam menos com limites menores; uma fonte reserva que cobra pela página nativa pode custar até o preço anunciado da requisição. |
| Resposta | ||
| data | object | |
| data.conversationId | string | Id of the conversation the reply belongs to, as a string. |
| data.items | object[] | Reply records for the requested post. Populated whenever the provider has data for the entity. |
| data.items[].authorHandle | string | Screen name / handle of the reply's author, without the @ prefix. |
| data.items[].authorName | string | Display name of the reply's author. Empty when the upstream omits it. |
| data.items[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.items[].id | string | The reply's numeric tweet ID, as a string. Populated whenever the provider has data for the entity. |
| data.items[].likeCount | integer | Number of likes on this reply. |
| data.items[].media | object[] | Photo, video, and GIF attachments on the post. Empty when the post has none. |
| data.items[].media[].height | integer | Pixel height of the media item, when the lane reports it. |
| data.items[].media[].type | string | One of photo, video, or gif. |
| data.items[].media[].url | string | Image URL. For a video or GIF this is the poster/thumbnail frame. X media URLs on pbs.twimg.com are publicly fetchable without authentication; append ?name=orig for the full-resolution original. |
| data.items[].media[].videoUrl | string | Playable video file URL. Present only for video and gif items. |
| data.items[].media[].width | integer | Pixel width of the media item, when the lane reports it. |
| data.items[].quoteCount | integer | Number of quote tweets of this reply. |
| data.items[].replyCount | integer | Number of replies to this reply. |
| data.items[].repostCount | integer | Number of reposts/retweets of this reply. |
| data.items[].text | string | The reply's text. Empty for media-only replies with no text. |
| data.items[].url | string | Canonical x.com URL of the reply, with tracking query params stripped. Populated whenever the provider has data for the entity. |
| data.items[].viewCount | integer | Number of views of this reply. Null when the source does not report it, as for posts older than X view counts. |
| found | boolean | Whether the provider returned a reply result. An empty items array is valid and may mean the post has no replies or the target could not be resolved. |
| 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,0005 |
| Preço /mil req. | USD | US$ 0,50 |
Dúvidas frequentes
Sobre o endpoint Respostas da API para X / Twitter
O endpoint Respostas da AnyAPI para X / Twitter retorna dados de X / Twitter em JSON normalizado com uma chamada POST para /v1/run/twitter.replies. Obtenha as respostas a qualquer post do X (Twitter) pela URL, como registros estruturados: autor, texto e engajamento. Um resultado vazio é válido e não indica se o post existe ou não. A AnyAPI distribui cada requisição entre 4 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,50 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 da API para X / Twitter feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,6 segundos, em 5.237 chamadas medidas.