X Get Post Comments

2.07 credits/call
ae_x_get_post_comments

Retrieve comments under an X (Twitter) post. Inputs: - tweet_id (required string): The ID of the post whose comments you want to retrieve. - cursor (optional string): A pagination cursor obtained from a previous response. Omit it for the first request; supply it to request a subsequent page when available. Returns: Response data containing comments for the specified post. The detailed comment fields and pagination field names are not specified, so do not assume one request retrieves every comment.

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

A single call may not return all comments. Each subsequent request using a pagination cursor is a separate call and is charged separately.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
cursorstringNo游标/Cursor—
tweet_idstringYes推文ID/Tweet ID—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_get_post_comments' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "tweet_id": "1899232147279417555"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "author": {
      "blue_verified": false,
      "description": null,
      "image": "https://pbs.twimg.com/profile_images/1587910258411929600/qxldnJb8_normal.jpg",
      "name": "remphey",
      "rest_id": "1269322215457206273",
      "screen_name": "remphey"
    },
    "bookmarks": 0,
    "conversation_id": "1899231249476235344",
    "created_at": "Mon Mar 10 22:53:24 +0000 2025",
    "id": "1899232147279417555",
    "status": "suspended"
  },
  "docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_post_comments_api_v1_twitter_web_fetch_post_comments_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "tweet_id": "1899232147279417555"
  }
}

This example shows part of the response. Copied content is valid JSON.