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,60 USD/1k richieste, paghi a richiesta, nessun abbonamento.
openai gpt-6
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
{"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,"likeCount": 2840,"retweetCount": 312,+10 campi in più}
Prezzi e provider
Prezzi dell'API X / Twitter Ricerca: una sola API, 4 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
con tetto di 0,0051 USD a richiesta1 risultato0,0002 USD25 risultati0,0026 USD50 risultatitetto di 0,0051 USDPaghi per ciò che torna indietro. Abbassa il limite per pagare meno - e nessuna singola richiesta può costare più del tetto, per quanto torni indietro.4OctopusRiserva 3100,00% di disponibilità21389ms p500,0% delle chiamate0,0%22 chiamate0,308 USD/1k risultatifino a 0,0154 USD / richiestaCalcolato per risultato restituito0,0044 USD base + 0,00022 USD per risultato
con tetto di 0,0154 USD a richiesta1 risultato0,00462 USD25 risultati0,0099 USD50 risultatitetto di 0,0154 USDPaghi per ciò che torna indietro. Abbassa il limite per pagare meno - e nessuna singola richiesta può costare più del tetto, per quanto torni indietro.
Provalo
Ottieni X / Twitter Ricerca in una sola richiesta
{
"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,
"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,
"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,
"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",
"authorId": "1758912340000000000",
"authorImage": "https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg",
"authorFollowers": 18400
}
}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-10-07 · 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
Numero massimo per pagina di risultati da restituire (1-50, predefinito 20). Un provider può restituire una pagina nativa più piccola; segui nextCursor per averne altri.
- 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.
- requireFieldsarray
Facoltativo; se lo ometti l'instradamento resta invariato, e serve la fonte più economica. Indica i campi di output che questa richiesta deve poter restituire, per esempio `nextCursor`, e verrà servita solo da una fonte che li restituisce tutti. I campi che non indichi vengono comunque restituiti ogni volta che la fonte che serve li ha. Può far salire il prezzo: quando la fonte più economica non può restituire un campo indicato, serve una fonte più cara, e ti viene quotato e addebitato il suo prezzo. Un campo indicato può comunque mancare su un post che davvero non lo ha. Indicare una combinazione che nessuna singola fonte restituisce insieme viene rifiutato come input non valido, senza addebito. In una scansione paginata vale solo per la prima pagina; le pagine successive restano con la fonte scelta da quella pagina, al prezzo che era stato quotato.
- 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.
Risposta
JSON, un valore di esempio per campo.
- foundboolean
true
- idstring
1928912345678901234
- urlstring
https://x.com/duskdevlog/status/1928912345678901234
- textstring
gpt-6 handling multi-file refactors without losing context is the first time an LLM diff actually felt safe to auto-apply
- authorUsernamestring
duskdevlog
- authorNamestring
Dusk Ibrahim
- authorVerifiedboolean
true
- likeCountnumber
2840
- retweetCountnumber
312
- replyCountnumber
88
- quoteCountnumber
14
- viewCountnumber
412000
- bookmarkCountnumber
640
- createdUtcnumber
1758240000
- langstring
en
- isReplyboolean
false
- conversationIdstring
1928912345678901234
- inReplyToIdnull
null
- mediaarray
- nextCursorstringpuò richiedere
DAACCgACGZabc123DEF456
- authorIdstring
1758912340000000000
- authorImagestring
https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg
- authorFollowersnumber
18400
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 4 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,60 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,4 secondi su 427.436 chiamate misurate.