API para X / Twitter

API para X / Twitter: Thread

Obtenha a thread linear do próprio autor que contém um post do X (Twitter), da raiz até as continuações encadeadas pelo autor. Respostas de outros usuários ficam de fora.

POST/v1/run/twitter.thread
Disponibilidade
100,00%
30d · 337 chamadas
Requisições
339
30d · semanal, últimas 12 sem.
Resposta
3,6s
mediana · 30d

Preços

Um preço, em dólares

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": {
    "author": {
      "handle": "alex_rivera",
      "id": "a1b2c3d4",
      "name": "Example title"
    },
    "avatarUrl": "https://example.com/image.jpg",
    "bio": "A short example description of this item.",
    "blueVerified": true,
    "complete": true,
    "conversationId": "a1b2c3d4",
    "coverUrl": "https://example.com/page",
    "createdUtc": 12.5,
    "followers": 12500,
    "following": 12500,
    "location": "example",
    "threadLength": 180,
    "tweets": [
      {
        "authorHandle": "alex_rivera",
        "authorId": "Alex Rivera",
        "authorName": "Alex Rivera",
        "bookmarkCount": 12500,
        "conversationId": "a1b2c3d4",
        "createdUtc": 12.5,
        "id": "a1b2c3d4",
        "inReplyToId": "a1b2c3d4",
        "isReply": true,
        "lang": "en",
        "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,
        "source": "https://example.com/page",
        "text": "A short example description of this item.",
        "url": "https://example.com/page",
        "viewCount": 12500
      }
    ],
    "url": "https://example.com/page",
    "verified": true
  },
  "found": true,
  "reason": "not_found"
}
Interface da resposta
interface TwitterThreadResponse {
  data: {
    author: {
      handle: string;
      id: string;
      name: string;
    };
    avatarUrl?: string;
    bio?: string;
    blueVerified?: boolean;
    complete: boolean;
    conversationId: string;
    coverUrl?: string;
    createdUtc?: number;
    followers?: number;
    following?: number;
    location?: string;
    threadLength: number;
    tweets: {
      authorHandle: string;
      authorId: string;
      authorName: string;
      bookmarkCount?: number;
      conversationId: string;
      createdUtc?: number;
      id: string;
      inReplyToId: string | null;
      isReply?: boolean;
      lang?: string;
      likeCount?: number;
      media?: {
        height?: number;
        type: string;
        url: string;
        videoUrl?: string;
        width?: number;
      }[];
      quoteCount?: number;
      replyCount?: number;
      repostCount?: number;
      source?: string;
      text: string;
      url: string;
      viewCount?: number;
    }[];
    url?: string;
    verified?: boolean;
  } | 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.thread
curl -X POST https://api.getanyapi.com/v1/run/twitter.thread \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://x.com/SpaceX/status/1732824684683784516"}'
CampoTipoValor de exemplo
Corpo da requisição
urlstring"https://x.com/SpaceX/status/1732824684683784516"URL de status canônica em x.com ou twitter.com com um ID numérico de tweet. Pode ser qualquer tweet da thread do autor; o provedor resolve a raiz da thread.
Resposta
dataobject
data.authorobject
data.author.handlestringPopulated whenever the provider has data for the entity.
data.author.idstringPopulated whenever the provider has data for the entity.
data.author.namestringPopulated whenever the provider has data for the entity.
data.avatarUrlstringAvatar image URL of the author.
data.biostringBio text on the author's profile.
data.blueVerifiedbooleanWhether the author carries an X blue verification badge.
data.completebooleanWhether the provider reached the end of the self-thread without hitting its internal cap.
data.conversationIdstringConversation ID shared by the self-thread tweets. Populated whenever the provider has data for the entity.
data.coverUrlstringProfile banner image URL of the author.
data.createdUtcnumberUTC epoch timestamp in seconds (Unix time) the author's account was created. Multiply by 1000 for a JS Date in milliseconds.
data.followersintegerFollower count of the author.
data.followingintegerNumber of accounts the author follows.
data.locationstringLocation text on the author's profile.
data.threadLengthintegerNumber of tweets returned in the self-thread.
data.tweetsobject[]Ordered self-thread tweets. Replies from other users are excluded. Populated whenever the provider has data for the entity.
data.tweets[].authorHandlestringPopulated whenever the provider has data for the entity.
data.tweets[].authorIdstringPopulated whenever the provider has data for the entity.
data.tweets[].authorNamestringPopulated whenever the provider has data for the entity.
data.tweets[].bookmarkCountintegerBookmark count of the post.
data.tweets[].conversationIdstring
data.tweets[].createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
data.tweets[].idstringPopulated whenever the provider has data for the entity.
data.tweets[].inReplyToIdstring
data.tweets[].isReplybooleanWhether the post is a reply to another post.
data.tweets[].langstringTwo-letter language code X detected for the post.
data.tweets[].likeCountintegerLike count of the post.
data.tweets[].mediaobject[]Photo, video, and GIF attachments on the post. Empty when the post has none.
data.tweets[].media[].heightintegerPixel height of the media item, when the lane reports it.
data.tweets[].media[].typestringOne of photo, video, or gif.
data.tweets[].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.tweets[].media[].videoUrlstringPlayable video file URL. Present only for video and gif items.
data.tweets[].media[].widthintegerPixel width of the media item, when the lane reports it.
data.tweets[].quoteCountintegerQuote count of the post.
data.tweets[].replyCountintegerReply count of the post.
data.tweets[].repostCountintegerRepost count of the post.
data.tweets[].sourcestringClient the post was sent from, e.g. "Twitter Web App".
data.tweets[].textstringPopulated whenever the provider has data for the entity.
data.tweets[].urlstringPopulated whenever the provider has data for the entity.
data.tweets[].viewCountintegerView count of the post.
data.urlstringCanonical X profile URL of the thread's author.
data.verifiedbooleanWhether the author carries a legacy X verification badge.
foundbooleanWhether the provider returned a tweet thread result.
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,00375
Preço /mil req.USDUS$ 3,75

Dúvidas frequentes

Sobre o endpoint Thread da API para X / Twitter

O endpoint Thread da AnyAPI para X / Twitter retorna dados de X / Twitter em JSON normalizado com uma chamada POST para /v1/run/twitter.thread. Obtenha a thread linear do próprio autor que contém um post do X (Twitter), da raiz até as continuações encadeadas pelo autor. Respostas de outros usuários ficam de fora. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa a partir de US$ 3,75 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Thread da API para X / Twitter feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,6 segundos, em 337 chamadas medidas.

Custa a partir de US$ 3,75 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 a thread linear do próprio autor que contém um post do X (Twitter), da raiz até as continuações encadeadas pelo autor. Respostas de outros usuários ficam de fora. 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 Thread da API para X / Twitter feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 3,6 segundos, em 337 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.