X / Twitter Поиск API
Ищет в X (Twitter) с полным синтаксисом расширенного поиска (операторы вроде from:, since:, until:, min_faves: работают прямо в запросе) и возвращает структурированные твиты с текстом, автором, вовлечённостью и постраничной выдачей по курсору. Limit это максимум на страницу; родные страницы содержат около 20 твитов, если requireSinglePage не выбирает массовый источник.
0,48 USD/1 тыс. запросов, оплата за запрос, без подписки.
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}
Цены и поставщики
Цена API X / Twitter Поиск: один API, поставщиков 2, и любой может заменить другого
Первым обслуживает самый дешёвый поставщик. Если он не отвечает, его заменяет следующий в том же вызове.
не больше 0,0051 USD за запрос1 результат0,0002 USDРезультатов: 250,0026 USDРезультатов: 50Лимит 0,0051 USDВы платите за то, что вернулось. Снизьте лимит, чтобы платить меньше: ни один запрос не обойдётся дороже лимита, сколько бы ни вернулось.
Поставщик с пометкой Не обслуживает перестал отвечать стабильно и выведен из ротации, поэтому ваши вызовы идут к остальным. Он вернётся сам, как только снова начнёт отвечать стабильно.
Попробовать
Получите X / Twitter Поиск одним запросом
В этом примере показано полей: 29 из 31. Все поля
{
"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"
}
}Полный справочник по параметрам и ответу: каждое поле, тип и пример для этого эндпоинта.
Справочник
Один запрос, один формат ответа.
Каждое поле, которое вы отправляете, и каждое поле, которое получаете, с реальным примером.
Проверено 2026-11-21 · доступность и задержка измерены за 30d
Тело запроса
JSON, отправляется на этот эндпоинт.
- 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
Непрозрачный курсор постраничной выдачи из nextCursor предыдущего ответа. Не указывайте для первой страницы; передайте его, чтобы получить следующую страницу результатов поиска.
- 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
Какие публикации вернуть: 'Latest' (сначала новые, по умолчанию), 'Top' (самые популярные), 'Photos' (новые публикации с изображениями) или 'Videos' (новые публикации с видео). Для Photos и Videos ищется ваш запрос как написан, с добавленным после него filter:images или filter:videos, поэтому они стоят столько же, сколько поиск Latest.
- requireSinglePageboolean
Передайте true, чтобы получить до limit результатов одним ответом вместо родных страниц источника; при необходимости обслуживает массовый источник.
Ответ
JSON, по одному примеру значения на поле.
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.
- nextCursorstring
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.
Продаёте этот API? Полная схема, которую должен возвращать ваш эндпоинт.
Вопросы и ответы
Об API X / Twitter Поиск
AnyAPI X / Twitter Поиск API возвращает данные X / Twitter в виде нормализованного JSON одним вызовом POST к /v1/run/twitter.search. Ищет в X (Twitter) с полным синтаксисом расширенного поиска (операторы вроде from:, since:, until:, min_faves: работают прямо в запросе) и возвращает структурированные твиты с текстом, автором, вовлечённостью и постраничной выдачей по курсору. Limit это максимум на страницу; родные страницы содержат около 20 твитов, если requireSinglePage не выбирает массовый источник. AnyAPI направляет каждый запрос по источникам (их 2) и автоматически переключается, если один из них отказывает. Это стоит от 0,48 USD за 1000 запросов, в долларах США, без подписки и без ежемесячного минимума. За последние 30 дней 100,0% вызовов X / Twitter Поиск через AnyAPI завершились успешно, медианное время ответа 1,5 с, измерено вызовов: 3 969 964.