Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Twitter (X) Latest Tweet Comments

API 문서
https://api.sandbase.ai/v1/api/twitter/web/latest-post-comments

Returns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 1개

Playground

입력
Tweet ID
Cursor, default is None, used for paging, obtained from the last request
출력예시
응답outputs · 8.0 KB · 240줄
[
  {
    "data": {
      "next_cursor": "DAADDAABCgABHT8q824a0AIKAAIdPuDmWVeAgAAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdPyuoyAAnEAoABh0_K6jH_9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRQeVh2UUJvUS94MC9KWFUrbGxGRkhUOEpuTlFid1BrZFB3NTZ5eG9BdEIwL0ZGeWhWb0dkSFQ3aHZGYmJvWjBkUHZHaWY5dUFNQjAvSGRvZWxuR25IVDhtZThoYXNUZ2RQdllKOGh0UUNoMC9JazFhR25GakhUN2c3eGJXOEFJZFB4aXZZaHBoZkIwL0htc3AybEdaSFQ4cTgyNGEwQUlkUHdLeEI5dWdmaDArNE9aWlY0Q0FIVDhpbjRUYWNYSWRQeDg3YmRld29oMC9HdFIrV3JFWgAA",
      "prev_cursor": "DAADDAABCgABHT8q824a0AIKAAIdPuDmWVeAgAAIAAIAAAABCAADAAAAAAgABAAAAAAKAAUdPyuoyAAnEAoABh0_K6jH_9jwCwAHAAAA8EVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCUWRQeVh2UUJvUS94MC9KWFUrbGxGRkhUOEpuTlFid1BrZFB3NTZ5eG9BdEIwL0ZGeWhWb0dkSFQ3aHZGYmJvWjBkUHZHaWY5dUFNQjAvSGRvZWxuR25IVDhtZThoYXNUZ2RQdllKOGh0UUNoMC9JazFhR25GakhUN2c3eGJXOEFJZFB4aXZZaHBoZkIwL0htc3AybEdaSFQ4cTgyNGEwQUlkUHdLeEI5dWdmaDArNE9aWlY0Q0FIVDhpbjRUYWNYSWRQeDg3YmRld29oMC9HdFIrV3JFWgAA",
      "status": "ok",
      "timeline": [
        {
          "bookmarks": 0,
          "conversation_id": "2107237881668313108",
          "created_at": "Tue Oct 06 12:38:18 +0000 2026",
          "display_text_range": [
            29,
            144
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": [
              {
                "id_str": "11348282",
                "indices": [
                  0,
                  5
                ],
                "name": "NASA",
                "screen_name": "NASA"
              },
              {
                "id_str": "1451773004",
                "indices": [
                  6,
                  20
                ],
                "name": "International Space Station",
                "screen_name": "Space_Station"
              },
              {
                "id_str": "34743251",
                "indices": [
                  21,
                  28
                ],
                "name": "SpaceX",
                "screen_name": "SpaceX"
              }
            ]
          },
          "favorites": 0,
          "in_reply_to_screen_name": "NASA",
          "in_reply_to_status_id_str": "2107237881668313108",
          "in_reply_to_user_id_str": "11348282",
          "lang": "en",
          "media": [],
          "quotes": 0,
          "replies": 0,
          "retweets": 0,
          "screen_name": "anup_x_dev",
          "sensitive": null,
          "source": null,
          "text": "@NASA @Space_Station @SpaceX Nearly eight months in space and they're finally coming home. I leave for one week and I'm scared to open my inbox.",
          "tweet_id": "2107450375645351938",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/2104692919802486784/a2fZuM_H_normal.jpg",
            "cover_image": null,
            "created_at": "Sat Aug 24 06:45:33 +0000 2013",
            "description": null,
            "favorites_count": 1948,
            "followers_count": 157,
            "friends_count": null,
            "location": "Dubai, United Arab Emirates",
            "name": "Anup",
            "rest_id": "1695754196",
            "screen_name": "anup_x_dev",
            "url": null,
            "verified": true,
            "verified_type": null
          },
          "views": "6"
        },
        {
          "bookmarks": 0,
          "conversation_id": "2107237881668313108",
          "created_at": "Tue Oct 06 12:18:47 +0000 2026",
          "display_text_range": [
            29,
            112
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": [
              {
                "id_str": "11348282",
                "indices": [
                  0,
                  5
                ],
                "name": "NASA",
                "screen_name": "NASA"
              },
              {
                "id_str": "1451773004",
                "indices": [
                  6,
                  20
                ],
                "name": "International Space Station",
                "screen_name": "Space_Station"
              },
              {
                "id_str": "34743251",
                "indices": [
                  21,
                  28
                ],
                "name": "SpaceX",
                "screen_name": "SpaceX"
              }
            ]
          },
          "favorites": 0,
          "in_reply_to_screen_name": "NASA",
          "in_reply_to_status_id_str": "2107237881668313108",
          "in_reply_to_user_id_str": "11348282",
          "lang": "en",
          "media": [],
          "quotes": 0,
          "replies": 0,
          "retweets": 0,
          "screen_name": "JustaJarhead71",
          "sensitive": null,
          "source": null,
          "text": "@NASA @Space_Station @SpaceX Proud of the American teams helping make this possible. Bring all four home safely.",
          "tweet_id": "2107445463716901176",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/2105766619934760961/J98zD-96_normal.jpg",
            "cover_image": null,
            "created_at": "Wed Jun 25 21:35:34 +0000 2008",
            "description": null,
            "favorites_count": 96762,
            "followers_count": 4133,
            "friends_count": null,
            "location": "United States",
            "name": "Just a Jarhead",
            "rest_id": "15236949",
            "screen_name": "JustaJarhead71",
            "url": null,
            "verified": true,
            "verified_type": null
          },
          "views": "26"
        },
        {
          "bookmarks": 0,
          "conversation_id": "2107237881668313108",
          "created_at": "Tue Oct 06 12:16:23 +0000 2026",
          "display_text_range": [
            29,
            66
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": [
              {
                "id_str": "11348282",
                "indices": [
                  0,
                  5
                ],
                "name": "NASA",
                "screen_name": "NASA"
              },
              {
                "id_str": "1451773004",
                "indices": [
                  6,
                  20
                ],
                "name": "International Space Station",
                "screen_name": "Space_Station"
              },
              {
                "id_str": "34743251",
                "indices": [
                  21,
                  28
                ],
                "name": "SpaceX",
                "screen_name": "SpaceX"
              }
            ]
          },
          "favorites": 0,
          "in_reply_to_screen_name": "NASA",
          "in_reply_to_status_id_str": "2107237881668313108",
          "in_reply_to_user_id_str": "11348282",
          "lang": "en",
          "media": [],
          "quotes": 0,
          "replies": 0,
          "retweets": 0,
          "screen_name": "marixhottie",
          "sensitive": null,
          "source": null,
          "text": "@NASA @Space_Station @SpaceX Eight months in space? I need coffee.",
          "tweet_id": "2107444860135543039",
          "type": "tweet",
          "user_info": {
            "avatar": "https://pbs.twimg.com/profile_images/2031824996591337472/wdJF2bgE_normal.jpg",
            "cover_image": null,
            "created_at": "Sat Mar 08 16:34:05 +0000 2025",
            "description": null,
            "favorites_count": 6005,
            "followers_count": 164,
            "friends_count": null,
            "location": "New York, NY",
            "name": "Mari Hottie",
            "rest_id": "1898411877006225408",
            "screen_name": "marixhottie",
            "url": null,
            "verified": false,
            "verified_type": null
          },
          "views": "8"
        },
        "… 17 more items in the full response"
      ]
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Twitter (X) Latest Tweet Comments API

Returns the most recent replies to a single tweet as a timeline list. Each reply includes its text, author handle, engagement counts and basic author profile data. The only required input is tweet_id.

Use cases

  • Read the newest replies under a news or product announcement tweet.
  • Collect reply text and view counts for sentiment analysis on one post.
  • Spot which accounts reply to a tweet, with their follower counts, to find active responders.
  • Page through a long reply thread by passing back the cursor from the last call.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/latest-post-comments" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tweet_id": "2107237881668313108"}'

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

Parameters

NameTypeRequiredDescription
tweet_idstringYesTweet ID
cursorstringNoCursor, default is None, used for paging, obtained from the last request

Example response

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

{
  "next_cursor": "DAADDAABCgABHVrBFWqWkH8KAAIdPoa-fFeQ_AAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdYvRU5YAn…",
  "prev_cursor": "DAADDAABCgABHVrBFWqWkH8KAAIdPoa-fFeQ_AAIAAIAAAABCAADAAAAAAgABAAAAAAKAAUdYvRU5YAn…",
  "status": "ok",
  "timeline": [
    {
      "bookmarks": 0,
      "conversation_id": "2107237881668313108",
      "created_at": "Tue Oct 27 22:53:14 +0000 2026",
      "display_text_range": [
        29
      ],
      "entities": {
        "hashtags": [],
        "symbols": [],
        "timestamps": [],
        "urls": [],
        "user_mentions": [
          {
            "id_str": "11348282",
            "indices": [
              0
            ],
            "name": "NASA",
            "screen_name": "NASA"
          }
        ]
      },
      "favorites": 0,
      "in_reply_to_screen_name": "NASA",
      "in_reply_to_status_id_str": "2107237881668313108",
      "in_reply_to_user_id_str": "11348282",
      "lang": "ja",
      "media": [],
      "quotes": 0
    }
  ]
}

Response fields

FieldMeaning
timeline[].tweet_idID of the reply tweet.
timeline[].textFull text of the reply, including the leading @mentions.
timeline[].screen_nameHandle of the account that wrote the reply.
timeline[].created_atTime the reply was posted, in a format like Tue Oct 27 22:53:14 +0000 2026.
timeline[].conversation_id / timeline[].in_reply_to_status_id_strID of the tweet being replied to. Here both match the tweet_id you sent.
timeline[].favorites / timeline[].replies / timeline[].retweets / timeline[].quotes / timeline[].bookmarksEngagement counts for the reply itself.
timeline[].viewsView count of the reply, returned as a string.
timeline[].langLanguage code of the reply text.
timeline[].user_info.followers_count / timeline[].user_info.favorites_countFollower count and favorites count of the reply author.
next_cursor / prev_cursorCursor strings for the next and previous page of replies.

Notes

  • Pass next_cursor from the response as cursor in the next request to get more replies.
  • tweet_id is the numeric ID at the end of a tweet URL. Use the tweet_id from a Twitter (X) User Posts or Twitter (X) Search result.
  • Some fields can be null or empty, such as source, sensitive, user_info.description and user_info.friends_count.
  • For a different comment listing on the same tweet, see Twitter (X) Tweet Comments.

Pricing

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

더 살펴보기

관련 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) Latest Tweet Comments API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/twitter/web/latest-post-comments에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Twitter (X) Latest Tweet Comments API 비용은 얼마인가요?

호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Twitter (X) Latest Tweet Comments API는 어떤 매개변수를 받나요?

필수: tweet_id (string). 선택: cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Twitter (X) Latest Tweet Comments API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Twitter 개발자 계정이나 API 키가 필요한가요?

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