API di X / Twitter

X / Twitter Ricerca API

Cerca su X (Twitter) con la sintassi completa della ricerca avanzata (operatori come from:, since:, until:, min_faves: funzionano direttamente nella query) e ottieni tweet strutturati con testo, autore, coinvolgimento e paginazione a cursore. Limit è un massimo per pagina; le pagine native contengono circa 20 tweet, a meno che requireSinglePage selezioni una fonte in blocco.

0,48 USD/1k richieste, paghi a richiesta, nessun abbonamento.

openai gpt-6 / X
x.com/search?q=openai%20gpt-6&src=typed_query&f=live

openai gpt-6

TopLatestPeopleMediaLists
D

Dusk Ibrahim@duskdevlog · Sep 19, 2025

gpt-6 handling multi-file refactors without losing context is the first time an LLM diff actually felt safe to auto-apply

883122,840412K
Cosa ha restituito l'APIitems[0]
{
"id": "1928912345678901234",
"url": "https://x.com/duskdevlog/status/1928912345678901234",
"text": "gpt-6 handling multi-file refactors without losing context is the first time an LLM diff actually felt safe to auto-apply",
"authorUsername": "duskdevlog",
"authorName": "Dusk Ibrahim",
"authorVerified": true,
"authorId": "1758912340000000000",
"authorImage": "https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg",
... 13 campi in più
}
Disponibilità
99,97%
30d · 3.969.964 chiamate
Richieste
4M
30 g · settimanale, ultime 12 sett.
Risposta
1,5s
mediana · 30d

Prezzi e provider

Prezzi dell'API X / Twitter Ricerca: una sola API, 2 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

Un provider contrassegnato come Non attivo ha smesso di rispondere in modo affidabile ed è stato tolto dalla rotazione, quindi le tue chiamate vanno agli altri. Viene rimesso da solo quando torna a rispondere in modo affidabile.

Paghi
4,80 USD
0,48 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 208 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni X / Twitter Ricerca in una sola richiesta

Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 29 campi su 31. Vedi tutti i campi

{
  "found": true,
  "data": {
    "items": [
      {
        "id": "1928912345678901234",
        "url": "https://x.com/duskdevlog/status/1928912345678901234",
        "text": "gpt-6 handling multi-file refactors without losing context is the first time an LLM diff actually felt safe to auto-apply",
        "authorUsername": "duskdevlog",
        "authorName": "Dusk Ibrahim",
        "authorVerified": true,
        "authorId": "1758912340000000000",
        "authorImage": "https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg",
        "authorFollowers": 18400,
        "likeCount": 2840,
        "retweetCount": 312,
        "replyCount": 88,
        "quoteCount": 14,
        "viewCount": 412000,
        "bookmarkCount": 640,
        "createdUtc": 1758240000,
        "lang": "en",
        "isReply": false,
        "conversationId": "1928912345678901234",
        "inReplyToId": null,
        "media": []
      },
      {
        "id": "1928912345678901235",
        "url": "https://x.com/laurenshipsit/status/1928912345678901235",
        "text": "openai just quietly bumped the context window again, nobody noticed because everyone is busy arguing about pricing",
        "authorUsername": "laurenshipsit",
        "authorName": "Lauren Ostrowski",
        "authorVerified": false,
        "authorId": "1601234567890123456",
        "authorImage": "https://pbs.twimg.com/profile_images/1601234567890123456/lauren_avatar.jpg",
        "authorFollowers": 6200,
        "likeCount": 960,
        "retweetCount": 140,
        "replyCount": 52,
        "quoteCount": 6,
        "viewCount": 98400,
        "bookmarkCount": 210,
        "createdUtc": 1758153600,
        "lang": "en",
        "isReply": false,
        "conversationId": "1928912345678901235",
        "inReplyToId": null,
        "media": [
          {
            "type": "photo",
            "url": "https://pbs.twimg.com/media/GZsearchScreenshot.jpg",
            "width": 1080,
            "height": 1350
          }
        ]
      },
      {
        "id": "1928912345678901236",
        "url": "https://x.com/samthebuilder/status/1928912345678901236",
        "text": "replying to the thread below, openai's function calling still trips on nested optional fields half the time",
        "authorUsername": "samthebuilder",
        "authorName": "Sam Whitfield",
        "authorVerified": false,
        "authorId": "1489012345678901234",
        "authorImage": "https://pbs.twimg.com/profile_images/1489012345678901234/sam_avatar.jpg",
        "authorFollowers": 940,
        "likeCount": 88,
        "retweetCount": 3,
        "replyCount": 12,
        "quoteCount": 0,
        "viewCount": 5400,
        "bookmarkCount": 9,
        "createdUtc": 1758067200,
        "lang": "en",
        "isReply": true,
        "conversationId": "1928912345678901230",
        "inReplyToId": "1928912345678901229",
        "media": []
      }
    ],
    "nextCursor": "DAACCgACGZabc123DEF456"
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • querystring

    openai gpt-6

    Search query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi OR getanyapi'). When an operator follows an OR list, put the list in parentheses, e.g. '(anyapi OR getanyapi) -filter:replies': without them X applies the operator to the last alternative only, so such a query still runs as X reads it and the response's hint carries the corrected query. You can embed X advanced-search operators directly in the query to filter results: from:username and to:username (author or recipient), since:YYYY-MM-DD and until:YYYY-MM-DD (date range), min_faves:N, min_retweets:N, min_replies:N (engagement floors), "exact phrase", -term to exclude, filter:media and filter:links and -filter:replies (content filters), lang:en, near:city, and geocode:lat,long,radius. Examples: 'from:OpenAI', 'AI agents min_faves:500 -filter:replies', 'nvidia since:2026-01-01 until:2026-03-01'. A query with no matches returns an empty items array; prefer the fewest words that identify the topic.

  • cursorstring

    Cursore di paginazione opaco dal nextCursor di una risposta precedente. Omettilo per la prima pagina; passalo per ottenere la pagina successiva di risultati di ricerca.

  • limitinteger

    Page size to ask for (1-50, default 20). Some sources honor it; others always return their whole native page of about 20. A page is never trimmed after the call, so follow nextCursor to continue exactly where this response ended.

  • queryTypeenum

    Latest

    Quali post restituire: 'Latest' (dal più recente, il valore predefinito), 'Top' (i più popolari), 'Photos' (i post più recenti con immagini) o 'Videos' (i post più recenti con video). Photos e Videos cercano la tua query così com'è scritta con filter:images o filter:videos aggiunto dopo, quindi costano come una ricerca Latest.

  • requireSinglePageboolean

    Imposta su true per ottenere fino a limit risultati in una sola risposta invece delle pagine native del provider, serviti da un provider in blocco quando serve.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

each itemdata.items[]

Tweet records: text, author profile, timestamp, and engagement metrics (likes, retweets, replies, views). Populated whenever the provider has data for the entity.

  • authorFollowersinteger

    18400

    Follower count of the account that posted.

  • authorIdstring

    1758912340000000000

    Numeric X user id of the account that posted, as a string.

  • authorImagestring

    https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg

    Avatar image URL of the account that posted.

  • authorNamestring

    Dusk Ibrahim

    Populated whenever the provider has data for the entity.

  • authorUsernamestring

    duskdevlog

    Populated whenever the provider has data for the entity.

  • authorVerifiedboolean

    true

  • bookmarkCountinteger

    640

  • conversationIdstring

    1928912345678901234

  • createdUtcnumber

    1758240000

    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.

  • idstring

    1928912345678901234

    Populated whenever the provider has data for the entity.

  • inReplyToIdstring

    null

    Id of the post this post directly replies to, as a string, or null when the post is not a reply.

  • isReplyboolean

    false

  • langstring

    en

  • likeCountinteger

    2840

  • quoteCountinteger

    14

  • replyCountinteger

    88

  • retweetCountinteger

    312

  • textstring

    gpt-6 handling multi-file refactors without losing context is the first time an LLM diff actually felt safe to auto-apply

    Populated whenever the provider has data for the entity.

  • urlstring

    https://x.com/duskdevlog/status/1928912345678901234

    Populated whenever the provider has data for the entity.

  • viewCountinteger

    412000

    Number of views. Null when the source does not report it, as for posts older than X view counts.

each mediadata.items[].media[]

Photo, video, and GIF attachments on the post. Empty when the post has none.

  • heightinteger

    Pixel height of the media item, when the lane reports it.

  • typestring

    One of photo, video, or gif.

  • urlstring

    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.

  • videoUrlstring

    Playable video file URL. Present only for video and gif items.

  • widthinteger

    Pixel width of the media item, when the lane reports it.

datadata
  • nextCursorstring

    DAACCgACGZabc123DEF456

    Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.

top level
  • foundboolean

    true

  • 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.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.

FAQ

Sull'API X / Twitter Ricerca

L'API X / Twitter Ricerca di AnyAPI restituisce dati X / Twitter come JSON normalizzato da una sola chiamata POST a /v1/run/twitter.search. Cerca su X (Twitter) con la sintassi completa della ricerca avanzata (operatori come from:, since:, until:, min_faves: funzionano direttamente nella query) e ottieni tweet strutturati con testo, autore, coinvolgimento e paginazione a cursore. Limit è un massimo per pagina; le pagine native contengono circa 20 tweet, a meno che requireSinglePage selezioni una fonte in blocco. AnyAPI instrada ogni richiesta su 2 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,48 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate X / Twitter Ricerca tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,5 secondi su 3.969.964 chiamate misurate.

Costa da 0,48 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Cerca su X (Twitter) con la sintassi completa della ricerca avanzata (operatori come from:, since:, until:, min_faves: funzionano direttamente nella query) e ottieni tweet strutturati con testo, autore, coinvolgimento e paginazione a cursore. Limit è un massimo per pagina; le pagine native contengono circa 20 tweet, a meno che requireSinglePage selezioni una fonte in blocco. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 100,0% delle chiamate X / Twitter Ricerca tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,5 secondi su 3.969.964 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 208 chiamate X / Twitter Ricerca a 0,00048 USD ciascuna.

AnyAPI interroga la successiva delle sue 2 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/twitter.search con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.