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회 호출은 무료입니다(조직별 공유) · UTC 00:00에 초기화됩니다. 이후에는 호출당 요금이 부과됩니다.

Playground

입력
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 키워드 검색 안내를 따라 첫 요청을 보내고, 반환된 레코드를 확인한 뒤, 요약하기 전에 원본 식별자를 보존하세요.

더 살펴보기

관련 API

모든 API
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 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/twitter/web/search-timeline에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Twitter (X) Search API 비용은 얼마인가요?

호출당 $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 키가 필요한가요?

아니요. Twitter (X) Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Twitter API 액세스를 별도로 신청할 필요는 없습니다.