X / Twitter Tweet dell'utente API
Timeline paginata dei tweet di un utente con testo, media e dati di coinvolgimento. Pagina con il campo cursor.
0,44 USD/1k richieste, paghi a richiesta, nessun abbonamento.
@nasa
@nasa
@NASA· Jun 9, 2024
Liftoff! 🚀
{"id": "1800000000000000000","url": "https://x.com/NASA/status/1800000000000000000","text": "Liftoff! 🚀","likes": 142000,"retweets": 21400,"replies": 3900,"createdAt": "2024-06-09T13:45:00Z","authorHandle": string,... 13 campi in più}
Prezzi e provider
Prezzi dell'API X / Twitter Tweet dell'utente: una sola API, 3 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
con tetto di 0,0101 USD a richiesta1 risultato0,0002 USD50 risultati0,0051 USD100 risultatitetto di 0,0101 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.
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.
Provalo
Ottieni X / Twitter Tweet dell'utente in una sola richiesta
Questo esempio mostra 10 campi su 30. Vedi tutti i campi
{
"found": true,
"data": {
"nextCursor": "DAABCgABF__cursor",
"tweets": [
{
"id": "1800000000000000000",
"url": "https://x.com/NASA/status/1800000000000000000",
"text": "Liftoff! 🚀",
"likes": 142000,
"retweets": 21400,
"replies": 3900,
"createdAt": "2024-06-09T13:45:00Z"
}
]
}
}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.
- handlestring
nasa
Handle Twitter/X senza @ iniziale.
- cursorstring
0
Cursore di paginazione opaco dal nextCursor di una risposta precedente. Omettilo per la prima pagina.
- limitinteger
Page size to ask for (1-100, default 20). Some sources honor it; others always return their whole native page of about 20 authored tweets and replies. A page is never trimmed after the call, so follow nextCursor and pass it back as cursor to continue exactly where this response ended.
- 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 `isPinned`, 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
Richiedi una fonte che possa restituire il limite richiesto in una sola risposta.
Risposta
JSON, un valore di esempio per campo.
- nextCursorstring
DAABCgABF__cursor
Opaque cursor for the next page when the selected lane supports pagination, otherwise null.
Populated whenever the provider has data for the entity.
- authorHandlestring
Handle of the account that posted.
- authorIdstring
Numeric X user id of the account that posted, as a string.
- authorImagestring
Avatar image URL of the account that posted.
- authorNamestring
Display name of the account that posted.
- bookmarksinteger
- conversationIdstring
Id of the conversation the post belongs to, as a string.
- createdUtcnumber
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
1800000000000000000
Populated whenever the provider has data for the entity.
- isPinnedbooleanpuò richiedere
Whether X marks the post as pinned on the profile, or null when the serving source does not publish it.
- isReplyboolean
- langstring
- likesinteger
142000
- quotesinteger
- repliesinteger
3900
- retweetsinteger
21400
- sourcestring
Client the post was sent from, e.g. "Twitter Web App".
- textstring
Liftoff! 🚀
Populated whenever the provider has data for the entity.
- urlstring
https://x.com/NASA/status/1800000000000000000
Populated whenever the provider has data for the entity.
- viewsinteger
Photo, video, and GIF attachments on the post. Empty when the post has none.
- heightinteger
- 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
- foundboolean
true
- reason"not_found" | "suspended"
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. `suspended`: the platform has suspended the account. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.
FAQ
Sull'API X / Twitter Tweet dell'utente
L'API X / Twitter Tweet dell'utente di AnyAPI restituisce dati X / Twitter come JSON normalizzato da una sola chiamata POST a /v1/run/twitter.user_tweets. Timeline paginata dei tweet di un utente con testo, media e dati di coinvolgimento. Pagina con il campo cursor. AnyAPI instrada ogni richiesta su 3 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,44 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 99,9% delle chiamate X / Twitter Tweet dell'utente tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,4 secondi su 568.528 chiamate misurate.