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 回まで無料1日あたり最初の 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,

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

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.

このエンドポイントが初めてですか? Twitter キーワード検索の手順に従って最初のリクエストを送り、返されたレコードを確認し、要約前にソース識別子を保持してください。

さらに探索

関連 APIs

すべての APIs
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

Twitter (X) Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/twitter/web/search-timeline に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Twitter (X) Search API の料金はいくらですか?

1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。

Twitter (X) Search API はどのパラメータを受け付けますか?

必須: keyword (string)。 任意: cursor (string) と search_type (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Twitter (X) Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Twitter の開発者アカウントまたは API key は必要ですか?

いいえ。Twitter (X) Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Twitter の API アクセスを別途申請する必要はありません。