API de X / Twitter: Buscar
Busca en X (Twitter) con toda la sintaxis de búsqueda avanzada (operadores como from:, since:, until: y min_faves: funcionan dentro de la consulta) y obtén tweets estructurados con texto, autor, interacción y paginación por cursor. El límite es un máximo por página; las páginas nativas contienen unos 20 tweets, salvo que requireSinglePage seleccione una fuente masiva.
US$0.54/1k solic., pagas por solicitud, sin suscripción.
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,"authorId": "1758912340000000000","authorImage": "https://pbs.twimg.com/profile_images/1758912340000000000/dusk_avatar.jpg",... 13 campos más}
Precios y proveedores
Precios del endpoint Buscar de la API de X / Twitter: una API, 4 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.0051 por solicitud1 resultadoUS$0.000225 resultadosUS$0.002650 resultadostope de US$0.0051Se 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.4OctopusRespaldo 390.41% de disponibilidad11514ms p500.0% de las llamadas0.0%66 llamadasUS$0.308/1k resultadoshasta US$0.0154 / solicitudCobro por resultado devueltoUS$0.0044 fijo + US$0.00022 por resultado
con un tope de US$0.0154 por solicitud1 resultadoUS$0.0046225 resultadosUS$0.009950 resultadostope de US$0.0154Se 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 Buscar de X / Twitter en una sola solicitud
Este ejemplo muestra 29 de 31 campos. Ver todos los campos
{
"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"
}
}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.
- querystring
openai gpt-6
Consulta de búsqueda con la sintaxis de búsqueda avanzada de X (Twitter). IMPORTANTE: los términos sueltos se combinan con AND, es decir, un tweet debe contener TODAS las palabras, así que una lista de palabras clave poco relacionadas no encuentra nada; usa una frase corta u OR entre alternativas (p. ej., 'anyapi OR getanyapi'). Cuando un operador sigue a una lista con OR, pon la lista entre paréntesis, p. ej., '(anyapi OR getanyapi) -filter:replies': sin ellos, X aplica el operador solo a la última alternativa, así que esa consulta se ejecuta tal como X la interpreta y el hint de la respuesta trae la consulta corregida. Puedes incluir operadores de búsqueda avanzada de X directamente en la consulta para filtrar resultados: from:username y to:username (autor o destinatario), since:YYYY-MM-DD y until:YYYY-MM-DD (rango de fechas), min_faves:N, min_retweets:N, min_replies:N (mínimos de interacción), "exact phrase", -term para excluir, filter:media, filter:links y -filter:replies (filtros de contenido), lang:en, near:city y geocode:lat,long,radius. Ejemplos: 'from:OpenAI', 'AI agents min_faves:500 -filter:replies', 'nvidia since:2026-01-01 until:2026-03-01'. Una consulta sin coincidencias devuelve un arreglo items vacío; prefiere la menor cantidad de palabras que identifique el tema.
- cursorstring
Cursor de paginación opaco tomado de nextCursor en una respuesta anterior. Omítelo para la primera página; pásalo para obtener la siguiente página de resultados de búsqueda.
- 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
Qué publicaciones devolver: 'Latest' (las más recientes primero, el valor por defecto), 'Top' (las más populares), 'Photos' (publicaciones recientes con imágenes) o 'Videos' (publicaciones recientes con video). Photos y Videos buscan tu consulta tal como la escribiste, con filter:images o filter:videos agregado al final, así que cuestan lo mismo que una búsqueda Latest.
- 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 `nextCursor`, 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
Usa true para obtener hasta limit resultados en una sola respuesta en lugar de páginas nativas del proveedor, atendida por un proveedor masivo cuando haga falta.
Respuesta
JSON, un valor de ejemplo por campo.
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.
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.
- nextCursorstringse puede exigir
DAACCgACGZabc123DEF456
Opaque cursor for the next page of search results, or null when there are no more. Pass it back as cursor to continue.
- 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 Buscar de la API de X / Twitter
El endpoint Buscar de AnyAPI para X / Twitter devuelve datos de X / Twitter como JSON normalizado con una sola llamada POST a /v1/run/twitter.search. Busca en X (Twitter) con toda la sintaxis de búsqueda avanzada (operadores como from:, since:, until: y min_faves: funcionan dentro de la consulta) y obtén tweets estructurados con texto, autor, interacción y paginación por cursor. El límite es un máximo por página; las páginas nativas contienen unos 20 tweets, salvo que requireSinglePage seleccione una fuente masiva. AnyAPI enruta cada solicitud entre 4 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$0.54 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 Buscar de la API de X / Twitter a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 1.5 segundos en 3.210.459 llamadas medidas.