Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Twitter (X) Search

Документация API
https://api.sandbase.ai/v1/api/twitter/web/search-timeline

Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views). Supports Top, Latest, Media, People and Lists results.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 2 необязательных
100 бесплатных вызовов в деньПервые 100 вызовов в день — бесплатно (общий лимит для организации) · Сброс в 00:00 UTC. Далее оплата за каждый вызов.

Песочница

Ввод
Search keyword
Cursor, default is None, used for paging, obtained from the last request
Search type, default is Top, other optional values are Latest, Media, People, Lists
ВыходПример
Ответoutputs · 13.5 KB · 318 строк
[
  {
    "data": {
      "next_cursor": "DAACCgACHPupFnOAJxAKAAMc-6kWc3_Y8AgABAAAAAILAAUAAADwRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJRYyt5VGswMWVSWUJ6N0FkUE5sNEE5SE83L3pYb1dJZVVjK1lSeVpGZFFjUno3QlR1QTFrRFpIUGdHdXJWYndhOGN0cWZicWxxd3F4ejZOcnlqbDdDcEhQczZxN3pYWVcwYyt3TjFkaGRoNXh6Qk5haDdscEZESFB0WGUvM1hZVHNjK3hXSHBwY0JCeHpnMFVBZUc2SHdIUHNvTTZ5VzhCb2MrdnVTZnRhQWpoejZwNVlnRmtIbUhQdDFnakJYZ0FnYyt4bVhOZFpSUGh6NXdwVFpWZ0VKCAAGAAAAAAgABwAAAAAMAAgKAAEctqfbqlqwqwAAAA",
      "prev_cursor": "DAACCgACHPupFnOAJxAKAAMc-6kWc3_Y8AgABAAAAAELAAUAAADwRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUJRYyt5VGswMWVSWUJ6N0FkUE5sNEE5SE83L3pYb1dJZVVjK1lSeVpGZFFjUno3QlR1QTFrRFpIUGdHdXJWYndhOGN0cWZicWxxd3F4ejZOcnlqbDdDcEhQczZxN3pYWVcwYyt3TjFkaGRoNXh6Qk5haDdscEZESFB0WGUvM1hZVHNjK3hXSHBwY0JCeHpnMFVBZUc2SHdIUHNvTTZ5VzhCb2MrdnVTZnRhQWpoejZwNVlnRmtIbUhQdDFnakJYZ0FnYyt4bVhOZFpSUGh6NXdwVFpWZ0VKCAAGAAAAAAgABwAAAAAMAAgKAAEctqfbqlqwqwAAAA",
      "status": "ok",
      "timeline": [
        {
          "bookmarks": 9,
          "conversation_id": "2088359042267701563",
          "created_at": "Fri Aug 14 20:16:10 +0000 2026",
          "display_text_range": [
            0,
            274
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": []
          },
          "favorites": 13,
          "lang": "en",
          "media": {
            "video": [
              {
                "aspect_ratio": [
                  605,
                  444
                ],
                "duration": 10000,
                "id": "2088359010785267712",
                "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2088359010785267712/img/YLGMg7axzgDRWwJb.jpg",
                "original_info": {
                  "focus_rects": [],
                  "height": 888,
                  "width": 1210
                },
                "variants": [
                  {
                    "content_type": "application/x-mpegURL",
                    "url": "https://video.twimg.com/amplify_video/2088359010785267712/pl/Wguc3tWwCnSOW_df.m3u8?tag=29"
                  },
                  {
                    "bitrate": 256000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088359010785267712/vid/avc1/366x270/IuYtPfWzB7659P0s.mp4?tag=29"
                  },
                  {
                    "bitrate": 832000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088359010785267712/vid/avc1/490x360/KkZeDVF9b4U25xAT.mp4?tag=29"
                  },
                  "… 2 more items in the full response"
                ]
              }
            ]
          },
          "quoted": {
            "author": {
              "avatar": "https://pbs.twimg.com/profile_images/1906408525556846592/Tbise2Rw_normal.jpg",
              "blue_verified": true,
              "created_at": "Thu Jun 06 18:58:34 +0000 2024",
              "name": "broke boy",
              "rest_id": "1798791551272812544",
              "screen_name": "0xfuckpoverty"
            },
            "bookmarks": 17,
            "conversation_id": "2088018606734946793",
            "created_at": "Thu Aug 13 21:43:24 +0000 2026",
            "favorites": 13,
            "lang": "zxx",
            "media": [],
            "quotes": 1,
            "replies": 2,
            "retweets": 4,
            "sensitive": false,
            "text": "https://t.co/26bultGJRL",
            "tweet_id": "2088018606734946793",
            "views": "2397"
          },
          "quotes": 0,
          "replies": 2,
          "retweets": 0,
          "screen_name": "0xfuckpoverty",
          "sensitive": false,
          "source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
          "text": "Most AI agents can answer once.\n\nProduction systems need to do much more: branch, run work in parallel, validate, recover from failures, and know when to stop.\n\nThat's why the missing layer isn't a bigger model.\n\nIt's a graph.\n\nNew request → classify → plan → fan-out → join → validate → approve/execute.\n\nThe key shift:\n\nAgents generate decisions.\nGraphs govern execution.\nA prompt chain becomes a system when every transition is explicit, bounded, and recoverable.\n\nFull breakdown below.",
          "tweet_id": "2088359042267701563",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/1906408525556846592/Tbise2Rw_normal.jpg",
            "cover_image": null,
            "created_at": "Thu Jun 06 18:58:34 +0000 2024",
            "description": null,
            "favorites_count": 957,
            "followers_count": 242,
            "friends_count": null,
            "location": "",
            "name": "broke boy",
            "rest_id": "1798791551272812544",
            "screen_name": "0xfuckpoverty",
            "url": null,
            "verified": true,
            "verified_type": null
          },
          "views": "536"
        },
        {
          "bookmarks": 13,
          "conversation_id": "2088286524576039175",
          "created_at": "Fri Aug 14 15:28:00 +0000 2026",
          "display_text_range": [
            0,
            273
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": []
          },
          "favorites": 43,
          "lang": "en",
          "media": {
            "video": [
              {
                "aspect_ratio": [
                  9,
                  16
                ],
                "duration": 65201,
                "id": "2088271480790384640",
                "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2088271480790384640/img/rLVmP4b_dwR6gEbZ.jpg",
                "original_info": {
                  "focus_rects": [],
                  "height": 1920,
                  "width": 1080
                },
                "variants": [
                  {
                    "content_type": "application/x-mpegURL",
                    "url": "https://video.twimg.com/amplify_video/2088271480790384640/pl/7DgBXSDfLVOKdAJ0.m3u8?tag=29&v=7b2"
                  },
                  {
                    "bitrate": 632000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088271480790384640/vid/avc1/320x568/DiLGdMt44N-n8eS-.mp4?tag=29"
                  },
                  {
                    "bitrate": 950000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088271480790384640/vid/avc1/480x852/1apFgmlGn4dSy5LH.mp4?tag=29"
                  },
                  "… 2 more items in the full response"
                ]
              }
            ]
          },
          "quoted": {
            "author": {
              "avatar": "https://pbs.twimg.com/profile_images/2049557081502752768/gymBLMZ8_normal.jpg",
              "blue_verified": true,
              "created_at": "Sun Feb 24 07:45:36 +0000 2013",
              "name": "kiosa",
              "rest_id": "1214810521",
              "screen_name": "thegreatest_sv"
            },
            "bookmarks": 86,
            "conversation_id": "2077035062952915243",
            "created_at": "Tue Jul 14 14:18:43 +0000 2026",
            "favorites": 49,
            "lang": "zxx",
            "media": [],
            "quotes": 14,
            "replies": 5,
            "retweets": 6,
            "sensitive": false,
            "text": "https://t.co/6okVeHBq7p",
            "tweet_id": "2077035062952915243",
            "views": "105481"
          },
          "quotes": 0,
          "replies": 4,
          "retweets": 3,
          "screen_name": "thegreatest_sv",
          "sensitive": false,
          "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
          "text": "UBER BURNED THROUGH ITS ENTIRE 2026 AI BUDGET IN LESS THAN 4 MONTHS.\n\nThe problem wasn’t that engineers weren’t using AI.\n\nIt was the opposite.\n\nAI coding tools were consuming so many tokens that Uber blew through a full-year budget before May.\n\nThe company started putting spending limits on agentic coding tools.\n\nAnd Uber isn’t some startup that forgot to watch its API bill.\n\nThis is what happens when thousands of engineers start running AI agents that constantly read files, execute commands, run tests and feed context back into the model.\n\nAI coding got cheap enough to use everywhere - but e…",
          "tweet_id": "2088286524576039175",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/2049557081502752768/gymBLMZ8_normal.jpg",
            "cover_image": null,
            "created_at": "Sun Feb 24 07:45:36 +0000 2013",
            "description": null,
            "favorites_count": 7255,
            "followers_count": 2977,
            "friends_count": null,
            "location": "",
            "name": "kiosa",
            "rest_id": "1214810521",
            "screen_name": "thegreatest_sv",
            "url": null,
            "verified": true,
            "verified_type": null
          },
          "views": "6617"
        },
        {
          "bookmarks": 12,
          "conversation_id": "2088327361498407277",
          "created_at": "Fri Aug 14 18:10:16 +0000 2026",
          "display_text_range": [
            0,
            280
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": []
          },
          "favorites": 19,
          "lang": "en",
          "media": {
            "video": [
              {
                "aspect_ratio": [
                  9,
                  16
                ],
                "duration": 50300,
                "id": "2088321900673912832",
                "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2088321900673912832/img/h99q4lQjFPuQyBL5.jpg",
                "original_info": {
                  "focus_rects": [],
                  "height": 1024,
                  "width": 576
                },
                "variants": [
                  {
                    "content_type": "application/x-mpegURL",
                    "url": "https://video.twimg.com/amplify_video/2088321900673912832/pl/GfOH199ha1C2_ott.m3u8?tag=29"
                  },
                  {
                    "bitrate": 632000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088321900673912832/vid/avc1/320x568/ZqDvoDTflWXPD7Cq.mp4?tag=29"
                  },
                  {
                    "bitrate": 950000,
                    "content_type": "video/mp4",
                    "url": "https://video.twimg.com/amplify_video/2088321900673912832/vid/avc1/480x852/smYgChHVOMhVHPgV.mp4?tag=29"
                  },
                  "… 1 more items in the full response"
                ]
              }
            ]
          },
          "quoted": {
            "author": {
              "avatar": "https://pbs.twimg.com/profile_images/2086050467717455872/JO4ZK2B6_normal.jpg",
              "blue_verified": true,
              "created_at": "Wed Dec 17 20:01:18 +0000 2025",
              "name": "Yumzlef",
              "rest_id": "2001382152387407872",
              "screen_name": "Yumzlef"
            },
            "bookmarks": 28,
            "conversation_id": "2087911408973312403",
            "created_at": "Thu Aug 13 14:37:26 +0000 2026",
            "favorites": 22,
            "lang": "zxx",
            "media": [],
            "quotes": 12,
            "replies": 6,
            "retweets": 2,
            "sensitive": false,
            "text": "https://t.co/4DiqQ5MWaK",
            "tweet_id": "2087911408973312403",
            "views": "25349"
          },
          "quotes": 1,
          "replies": 4,
          "retweets": 4,
          "screen_name": "Neuron_404",
          "sensitive": false,
          "source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
          "text": "Claude-flow spins up 60+ AI agents that build your product together - and it's #1 on GitHub\n\nfree and #1 on github, yet almost nobody has set it up.\n\nit's not one agent - it's a swarm: queens run the teams, tactical agents research, code, test, and review, sharing one memory that gets smarter every run.\n\n> reads your task and auto-routes it: cheap model for easy, powerful for hard\n> the shared memory improves after every single run\n> cuts token use up to 50% and extends your claude code by 250%\n\nin 3 months this name is everywhere - the ones who found it now are already ahead. i surface these …",
          "tweet_id": "2088327361498407277",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/2087269393004728321/v-G3uiMM_normal.jpg",
            "cover_image": null,
            "created_at": "Mon Nov 27 01:21:46 +0000 2023",
            "description": null,

Примеры

Выберите пример, чтобы загрузить его входные данные и результат в playground.

README по API

Twitter (X) Search API

Returns a page of X (Twitter) posts that match a search keyword. Each post has its text, author handle, creation time, engagement counts and any attached media. The only required input is keyword.

Use cases

  • Track posts that mention a brand, product or model name such as OpenAI.
  • Rank matching posts by views, favorites or retweets to find the ones that spread most.
  • Pull attached video links from matching posts to build a media collection on a topic.
  • Check the follower count of authors who post about a topic to spot large accounts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/search-timeline" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword
cursorstringNoCursor, default is None, used for paging, obtained from the last request
search_typestringNoSearch type, default is Top, other optional values are Latest, Media, People, Lists

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "next_cursor": "DAACCgACHWL0WF5AJxAKAAMdYvRYXj_Y8AgABAAAAAILAAUAAADwRW1QQzZ3QUFBZlEvZ0dKTjB2R3Av…",
  "prev_cursor": "DAACCgACHWL0WF5AJxAKAAMdYvRYXj_Y8AgABAAAAAELAAUAAADwRW1QQzZ3QUFBZlEvZ0dKTjB2R3Av…",
  "status": "ok",
  "timeline": [
    {
      "bookmarks": 9589,
      "conversation_id": "2116963310277202003",
      "created_at": "Sun Nov 01 18:39:19 +0000 2026",
      "display_text_range": [
        0
      ],
      "entities": {
        "hashtags": [],
        "symbols": [],
        "timestamps": [],
        "urls": [],
        "user_mentions": []
      },
      "favorites": 3743,
      "lang": "en",
      "media": {
        "video": [
          {
            "aspect_ratio": [
              4
            ],
            "duration": 21000,
            "id": "2116959813636874240",
            "media_url_https": "https://pbs.twimg.com/amplify_video_thumb/2116959813636874240/img/BpM2ygu4J6yvD6…",
            "original_info": {
              "focus_rects": [],
              "height": 1350,
              "width": 1080
            },
            "variants": [
              {
                "content_type": "application/x-mpegURL",
                "url": "https://video.twimg.com/amplify_video/2116959813636874240/pl/oQiawi_tf0JmlNvI.m3…"
              }
            ]
          }
        ]
      },
      "quoted": {
        "author": {
          "avatar": "https://pbs.twimg.com/profile_images/2068434168954978304/gFJZPH-g_normal.jpg",
          "blue_verified": true,
          "created_at": "Sat May 23 18:31:55 +0000 2026",
          "name": "mojesko",
          "rest_id": "2058253770492956672",
          "screen_name": "mojeskoqq"
        },
        "bookmarks": 2118,
        "conversation_id": "2116176596466032817",
        "created_at": "Fri Oct 30 14:33:11 +0000 2026",
        "favorites": 501,
        "lang": "zxx",
        "media": [],
        "quotes": 20
      },
      "quotes": 25,
      "replies": 111,
      "retweets": 315
    }
  ]
}

Response fields

FieldMeaning
timeline[]One matching result per item. In this response each item has type set to tweet.
timeline[].tweet_id / timeline[].conversation_idID of the post and ID of the conversation it belongs to. Both are numeric strings.
timeline[].textText of the post. Long text may be cut with an ellipsis.
timeline[].screen_nameHandle of the author, without the @ sign.
timeline[].created_atTime the post was created, as a string like Mon Oct 26 18:06:27 +0000 2026.
timeline[].favorites / timeline[].retweets / timeline[].replies / timeline[].quotes / timeline[].bookmarksCounts of likes, retweets, replies, quote posts and bookmarks for the post.
timeline[].viewsView count of the post, returned as a string.
timeline[].media.video[].variants[]Video files for the post. Each has a url and a content_type. The video/mp4 entries also have a bitrate.
timeline[].user_info.followers_count / timeline[].user_info.created_atFollower count of the author and the time the author account was created.
timeline[].quotedThe post that this post quotes. It includes its own author, text-level counts such as favorites and quotes, and created_at. It appears only on quote posts.

Notes

  • Page forward by sending next_cursor from the last response as cursor. The response also returns prev_cursor.
  • Set search_type to Top, Latest, Media, People or Lists. The default is Top.
  • To read the replies under a post, pass its tweet_id to Twitter (X) Tweet Comments.
  • To get full details for one post, use Twitter Tweet Detail.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Не знакомы с этим endpoint? Следуйте руководству по поиску ключевых слов в Twitter, чтобы отправить первый запрос, проверить возвращенные записи и сохранить исходные идентификаторы перед подведением итогов.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Twitter (X) SearchЭтот API
Twitter
$0.001 за запросJSON
Twitter$0.001 за запросJSON
Twitter$0.001 за запросJSON
Twitter$0.001 за запросJSON
Twitter$0.001 за запросJSON
Twitter$0.001 за запросJSON

Руководства:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Вопросы

FAQ

Как использовать API Twitter (X) Search?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/twitter/web/search-timeline, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Twitter (X) Search?

$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.

Какие параметры принимает API Twitter (X) Search?

Обязательные: keyword (string). Необязательные: cursor (string) и search_type (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Twitter (X) Search?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Twitter или API key?

Нет. Twitter (X) Search работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Twitter.