API para X / Twitter

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.

POST/v1/run/twitter.replies
Disponibilidade
99,96%
30d · 5.237 chamadas
Requisições
5.238
30d · semanal, últimas 12 sem.
Resposta
1,6s
mediana · 30d

Teste

Faça sua primeira requisição

Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.
{
  "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 da resposta
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 30d
POST /v1/run/twitter.replies
curl -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"}'
CampoTipoValor de exemplo
Corpo da requisição
urlstring"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).
limitintegerNú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
dataobject
data.conversationIdstringId of the conversation the reply belongs to, as a string.
data.itemsobject[]Reply records for the requested post. Populated whenever the provider has data for the entity.
data.items[].authorHandlestringScreen name / handle of the reply's author, without the @ prefix.
data.items[].authorNamestringDisplay name of the reply's author. Empty when the upstream omits it.
data.items[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.items[].idstringThe reply's numeric tweet ID, as a string. Populated whenever the provider has data for the entity.
data.items[].likeCountintegerNumber of likes on this reply.
data.items[].mediaobject[]Photo, video, and GIF attachments on the post. Empty when the post has none.
data.items[].media[].heightintegerPixel height of the media item, when the lane reports it.
data.items[].media[].typestringOne of photo, video, or gif.
data.items[].media[].urlstringImage 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[].videoUrlstringPlayable video file URL. Present only for video and gif items.
data.items[].media[].widthintegerPixel width of the media item, when the lane reports it.
data.items[].quoteCountintegerNumber of quote tweets of this reply.
data.items[].replyCountintegerNumber of replies to this reply.
data.items[].repostCountintegerNumber of reposts/retweets of this reply.
data.items[].textstringThe reply's text. Empty for media-only replies with no text.
data.items[].urlstringCanonical x.com URL of the reply, with tracking query params stripped. Populated whenever the provider has data for the entity.
data.items[].viewCountintegerNumber of views of this reply. Null when the source does not report it, as for posts older than X view counts.
foundbooleanWhether 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çãoUSDUS$ 0,0005
Preço /mil req.USDUS$ 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.

Custa a partir de US$ 0,50 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

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 resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

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. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.