X Get Latest Post Comments

2.07 credits/call
ae_x_get_latest_post_comments

Retrieve the latest comments on 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 from the previous response. Omit it for the initial request, and supply a returned cursor to continue. Returns: Comment data for the specified post. The response does not define a fixed structure for individual comments or a fixed location for pagination cursors.

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.

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_latest_post_comments' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "cursor": "DAADDAABCgABGlx0luDWoaYKAAIaW2zCQ1owUAAIAAIAAAABCAADAAAAAQgABAAAAAAKAAUdbYZC6YBOIAoABh1thkLpf9jwCwAHAAABEEVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCY2FXMjAzWUJkZ2VCcGNPdzF0MXhIc0dsdHRHNzlhQU5JYVcyM08rUnB3WnhwYmJaTk1sNURUR2x0M3RxeVdvZWthVzI1cmlGZlJmaHBiZCtSTkZ3RlBHbHduMktzWFFjTWFXMitCWE5heGJScGNjVkJ5R3RCSEdsd3BSak9YVVZjYVhGaUJDeGJ3elJwYmJSK0oxdERxR2x4MGx1RFdvYVlhVzIreUpWckIwQnBiYnk2bVY3Q0RHbHR1amlHV0lka2FXMnpDUTFvd1VCcGJiVGhObGhHaUdsd3RUb2xYa09nYVc1dm1QNXZRWXhwYml2c3NsekFUAAA",
    "tweet_id": "1899231249476235344"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "next_cursor": null,
    "prev_cursor": null,
    "status": "ok",
    "timeline": []
  },
  "docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_latest_post_comments_api_v1_twitter_web_fetch_latest_post_comments_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "cursor": "DAADDAABCgABGlx0luDWoaYKAAIaW2zCQ1owUAAIAAIAAAABCAADAAAAAQgABAAAAAAKAAUdbYZC6YBOIAoABh1thkLpf9jwCwAHAAABEEVtUEM2d0FBQWZRL2dHSk4wdkdwL0FBQUFCY2FXMjAzWUJkZ2VCcGNPdzF0MXhIc0dsdHRHNzlhQU5JYVcyM08rUnB3WnhwYmJaTk1sNURUR2x0M3RxeVdvZWthVzI1cmlGZlJmaHBiZCtSTkZ3RlBH",
    "tweet_id": "1899231249476235344"
  }
}

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