X / Twitter Tweet API
Dettaglio completo di un singolo tweet tramite URL: testo, id dell'autore e dati di coinvolgimento (mi piace, retweet, risposte, citazioni, segnalibri, visualizzazioni).
0,21 USD/1k richieste, paghi a richiesta, nessun abbonamento.
Post
NASA
@NASA
Liftoff! 🚀
1:45 PM · Jun 9, 2024 · 9.4M Views
{"id": "1800000000000000000","text": "Liftoff! 🚀","authorId": "11348282","likes": 142000,"retweets": 21400,"replies": 3900,"quotes": 1200,"bookmarks": 8600,... 10 campi in più}
Prezzi e provider
Prezzi dell'API X / Twitter Tweet: una sola API, 5 provider intercambiabili
Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.
Provalo
Ottieni X / Twitter Tweet in una sola richiesta
Questo esempio mostra 12 campi su 26. Vedi tutti i campi
{
"found": true,
"data": {
"id": "1800000000000000000",
"text": "Liftoff! 🚀",
"authorId": "11348282",
"likes": 142000,
"retweets": 21400,
"replies": 3900,
"quotes": 1200,
"bookmarks": 8600,
"views": 9400000,
"createdUtc": 1717940700
}
}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.
- urlstring
https://x.com/NASA/status/1800000000000000000
URL canonico x.com o twitter.com dello stato con un ID tweet numerico, incluse le varianti /i/web/status e di condivisione media.
- requireFieldsarray
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `videoUrl` or `width`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a tweet that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
Risposta
JSON, un valore di esempio per campo.
- authorHandlestring
Handle of the account that posted.
- authorIdstring
11348282
Populated whenever the provider has data for the entity.
- authorImagestring
Avatar image URL of the account that posted.
- authorNamestring
Display name of the account that posted.
- authorVerifiedboolean
Whether the posting account carries an X blue verification badge.
- bookmarksinteger
8600
- conversationIdstring
Id of the conversation the post belongs to, as a string.
- createdUtcnumber
1717940700
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.
- inReplyToIdstring
Id of the post this post directly replies to, as a string, or null when the post is not a reply.
- langstring
Two-letter language code X detected for the post.
- likesinteger
142000
- quotesinteger
1200
- repliesinteger
3900
- retweetsinteger
21400
- textstring
Liftoff! 🚀
Populated whenever the provider has data for the entity.
- viewsinteger
9400000
View count, or null when X does not report one for this tweet. Distinct from 0, which means the tweet has no views.
Photo, video, and GIF attachments on the post. Empty when the post has none.
- heightintegerpuò richiedere
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.
- videoUrlstringpuò richiedere
Playable video file URL. Present only for video and gif items.
- widthintegerpuò richiedere
Pixel width of the media item, when the lane reports it.
- 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.
Vendi questa API? Consulta lo schema completo che il tuo endpoint deve restituire.
FAQ
Sull'API X / Twitter Tweet
L'API X / Twitter Tweet di AnyAPI restituisce dati X / Twitter come JSON normalizzato da una sola chiamata POST a /v1/run/twitter.tweet. Dettaglio completo di un singolo tweet tramite URL: testo, id dell'autore e dati di coinvolgimento (mi piace, retweet, risposte, citazioni, segnalibri, visualizzazioni). AnyAPI instrada ogni richiesta su 5 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 0,21 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 Tweet tramite AnyAPI è riuscito, con un tempo di risposta mediano di 1,3 secondi su 585.407 chiamate misurate.