API de X / Twitter: Tweets del usuario
Línea de tiempo paginada de los tweets de un usuario con texto, contenido multimedia y métricas de interacción. Pagina con el campo cursor.
US$0.45/1k solic., pagas por solicitud, sin suscripción.
@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 campos más}
Precios y proveedores
Precios del endpoint Tweets del usuario de la API de X / Twitter: una API, 3 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
con un tope de US$0.0101 por solicitud1 resultadoUS$0.000250 resultadosUS$0.0051100 resultadostope de US$0.0101Se te cobra por lo que se devuelve. Baja el límite para pagar menos, y ninguna solicitud puede costar más que el tope, sin importar cuánto se devuelva.
Pruébalo
Obtén Tweets del usuario de X / Twitter en una sola solicitud
Este ejemplo muestra 10 de 30 campos. Ver todos los campos
{
"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"
}
]
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- handlestring
nasa
Nombre de usuario de Twitter/X sin la @ inicial.
- cursorstring
0
Cursor de paginación opaco del nextCursor de una respuesta anterior. Omítelo para la primera página.
- 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
Opcional; si lo omites, el enrutamiento no cambia y atiende la fuente más barata. Indica los campos de salida que esta solicitud debe poder devolver, por ejemplo `isPinned`, y solo la atenderá una fuente que los devuelva todos. Los campos que no indiques se siguen devolviendo siempre que la fuente que atiende los tenga. Esto puede subir tu precio: cuando la fuente más barata no puede devolver un campo indicado, atiende una fuente más cara, y se te cotiza y cobra su precio. Un campo indicado puede faltar igualmente en una publicación que realmente no lo tenga. Indicar una combinación que ninguna fuente devuelve junta se rechaza como entrada no válida, sin cargo. Al recorrer varias páginas, solo se aplica a la primera; las páginas siguientes se quedan con la fuente elegida para esa página, al precio que se cotizó.
- requireSinglePageboolean
Exige una fuente que pueda devolver el límite solicitado en una sola respuesta.
Respuesta
JSON, un valor de ejemplo por 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.
- isPinnedbooleanse puede exigir
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"
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.
¿Vendes esta API? Consulta el esquema completo que debe devolver tu endpoint.
Preguntas frecuentes
Acerca del endpoint Tweets del usuario de la API de X / Twitter
El endpoint Tweets del usuario de AnyAPI para X / Twitter devuelve datos de X / Twitter como JSON normalizado con una sola llamada POST a /v1/run/twitter.user_tweets. Línea de tiempo paginada de los tweets de un usuario con texto, contenido multimedia y métricas de interacción. Pagina con el campo cursor. AnyAPI enruta cada solicitud entre 3 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$0.45 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Tweets del usuario de la API de X / Twitter a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.5 segundos en 411.130 llamadas medidas.