Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Twitter Post Comments

Documentación de la API
https://api.sandbase.ai/v1/api/twitter/post-comments

Get the latest comments for an X (Twitter) post identified by tweet ID, with cursor pagination. Use it to review recent discussion on a known post and continue through additional comment pages.

Precio
$0.014286USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
The unique identifier of the X (Twitter) post.
Pagination cursor returned by the previous response.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Twitter Post Comments API

Returns the latest comments (replies) on an X (Twitter) post. It needs the post's tweetId, and it returns a timeline list of comments plus cursors for paging.

Use cases

  • Read recent replies under a known post to review how people respond.
  • Collect reply text and commenter profiles to analyze sentiment on a post.
  • Find commenters with large follower counts who replied to a post.
  • Page through a long reply thread by passing the returned cursor back into the next call.

Request

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

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

Parameters

NameTypeRequiredDescription
tweetIdstringYesThe unique identifier of the X (Twitter) post.
cursorstringNoPagination cursor returned by the previous response.

Example response

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

{
  "next_cursor": "DAADDAABCgABHWLH-s7WQHYKAAIdWkn2RRqgiQAIAAIAAAACCAADAAAAAAgABAAAAAAKAAUdYvRGxAAn…",
  "prev_cursor": "DAADDAABCgABHWLH-s7WQHYKAAIdWkn2RRqgiQAIAAIAAAABCAADAAAAAAgABAAAAAAKAAUdYvRGxAAn…",
  "status": "ok",
  "timeline": [
    {
      "bookmarks": 0,
      "conversation_id": "1585341984679469056",
      "created_at": "Tue Nov 03 04:31:13 +0000 2026",
      "display_text_range": [
        10
      ],
      "entities": {
        "hashtags": [],
        "symbols": [],
        "timestamps": [],
        "urls": [],
        "user_mentions": [
          {
            "id_str": "44196397",
            "indices": [
              0
            ],
            "name": "Elon Musk",
            "screen_name": "elonmusk"
          }
        ]
      },
      "favorites": 0,
      "in_reply_to_screen_name": "elonmusk",
      "in_reply_to_status_id_str": "1585341984679469056",
      "in_reply_to_user_id_str": "44196397",
      "lang": "en",
      "media": [],
      "quotes": 0
    }
  ]
}

Response fields

FieldMeaning
timeline[]List of comments on the post. Each item is one reply.
timeline[].tweet_idID of the comment itself.
timeline[].textFull text of the comment, including the leading @mention.
timeline[].created_atTime the comment was posted, in a format like Tue Nov 03 04:31:13 +0000 2026.
timeline[].screen_nameHandle of the user who wrote the comment.
timeline[].conversation_idID of the post the comment belongs to. It matches the tweetId you sent.
timeline[].in_reply_to_status_id_str / timeline[].in_reply_to_screen_nameThe tweet and user this comment replies to. It can be another comment instead of the main post.
timeline[].favorites / timeline[].retweets / timeline[].replies / timeline[].quotes / timeline[].bookmarksEngagement counts for the comment.
timeline[].viewsView count for the comment, returned as a string.
timeline[].user_info.followers_countFollower count of the commenter. Other fields in user_info include avatar, location and the account created_at.
next_cursor / prev_cursorCursors for the next and previous pages of comments.

Notes

  • Pass next_cursor from the response as cursor in the next request to get more comments.
  • The tweetId is the numeric ID at the end of a post URL.
  • Dates use the format Tue Nov 03 04:31:13 +0000 2026.
  • Some fields such as description, friends_count and source can be null. To fetch the post itself, call Twitter Tweet Detail.

Pricing

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Twitter$0.014286 por llamadaJSON
X (Twitter)Desde $0.00054 por llamadaJSON
TwitterDesde $0.0006 por llamadaJSON asíncrono
X (Twitter)Desde $0.0001 por llamadaJSON
X (Twitter)Desde $0.0036 por llamadaJSON
X (Twitter)Desde $0.00045 por llamadaJSON

Guías:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Twitter Post Comments?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/twitter/post-comments con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Twitter Post Comments?

$0.014286 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Twitter Post Comments?

Requeridos: tweetId (string). Opcionales: cursor (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Twitter Post Comments?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Twitter?

No. Twitter Post Comments funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Twitter por separado.