# 推文评论

取一条 X 推文下的最新评论，按游标翻页。

ID: native-http:social.twitter.post.comments · Region: cn · Status: available

catalog_version: 5c920c774a55e44d7e8c709143b88a18b8b2afcef91a5d19a8c9ae5d565d9077
updated_at: 2026-10-21T12:06:16.523771+00:00

取一条 X 推文下的最新评论，按游标翻页。

历史数据以数据集发布版本定义覆盖周期；实时读取反映请求时资料，不保证覆盖全部记录。

Docs: https://docs.asklear.cn/capabilities/native-http%3Asocial.twitter.post.comments

## POST /v1/native/social/twitter/posts/comments

native · available · api_key

REST 需要客户 API Key；MCP 需要已开放的服务及现有授权；CLI 需要已发布且包含该命令的客户端。

取一条 X 推文下的最新评论，按游标翻页。

按成功请求计费，每次请求计一次；max_credits 限制本次费用上限。

恢复同一次原生请求时复用原 Idempotency-Key。

等待态响应提供结果/状态引用。先读取原结果；超时或结果不明时禁止自动重新提交付费执行。401/403/422 应先修正鉴权、权限或输入。

### Input schema / 输入契约

```json
{
  "$defs": {
    "Schema1": {}
  },
  "additionalProperties": false,
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "default": "",
          "description": "游标/Cursor",
          "maxLength": 4096,
          "type": "string"
        },
        "tweet_id": {
          "description": "推文ID/Tweet ID",
          "maxLength": 20,
          "pattern": "^[0-9]{1,20}$",
          "type": "string"
        }
      },
      "required": [
        "tweet_id"
      ],
      "type": "object"
    },
    "max_credits": {
      "anyOf": [
        {
          "maximum": 1000000000,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "task_query": {
      "anyOf": [
        {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Optional task attribution: when provided, write one concise, self-contained task_query in the user's language and reuse that exact value in every call for the task, including discovery, search, approval retry, results, export, and status checks. For MCP calls, when omitted, Asklear records a generic non-user-specific attribution so compatible clients can still call the tool. REST calls may omit it and remain unattributed. It is a task description, not a task identifier. Do not include hidden reasoning, credentials, or direct personal identifiers such as phone numbers, email addresses, identity numbers, or street addresses.",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}
```

### Synthetic request / 合成请求

```json
{
  "input": {
    "tweet_id": "1"
  }
}
```

### Response schema / 响应契约

```json
{
  "$defs": {
    "Schema1": {},
    "Schema2": {
      "properties": {
        "api_name": {
          "type": "string"
        },
        "credits_charged": {
          "minimum": 0,
          "type": "integer"
        },
        "latency_ms": {
          "minimum": 0,
          "type": "integer"
        },
        "next_input": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "cursor": {
                  "default": "",
                  "maxLength": 4096,
                  "type": "string"
                },
                "tweet_id": {
                  "maxLength": 20,
                  "pattern": "^[0-9]{1,20}$",
                  "type": "string"
                }
              },
              "required": [
                "tweet_id"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "api_name",
        "request_id",
        "latency_ms",
        "credits_charged",
        "next_input"
      ],
      "type": "object"
    }
  },
  "properties": {
    "data": {
      "additionalProperties": true,
      "description": "Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.",
      "properties": {
        "code": {
          "type": [
            "integer",
            "null"
          ]
        },
        "data": {
          "additionalProperties": true,
          "properties": {
            "next_cursor": {
              "type": [
                "string",
                "null"
              ]
            },
            "prev_cursor": {
              "type": [
                "string",
                "null"
              ]
            },
            "timeline": {
              "items": {
                "additionalProperties": true,
                "properties": {
                  "bookmarks": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "conversation_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "created_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "display_text_range": {
                    "items": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "entities": {
                    "additionalProperties": true,
                    "properties": {
                      "hashtags": {
                        "items": {
                          "description": "Observed as null; the non-null type is not established."
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "symbols": {
                        "items": {
                          "description": "Observed as null; the non-null type is not established."
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "timestamps": {
                        "items": {
                          "description": "Observed as null; the non-null type is not established."
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "urls": {
                        "items": {
                          "description": "Observed as null; the non-null type is not established."
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      },
                      "user_mentions": {
                        "items": {
                          "additionalProperties": true,
                          "properties": {
                            "id_str": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "indices": {
                              "items": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "type": [
                                "array",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "screen_name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "type": [
                          "array",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "favorites": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "in_reply_to_screen_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "in_reply_to_status_id_str": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "in_reply_to_user_id_str": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lang": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "media": {
                    "description": "Source containers may be JSON arrays or objects, including empty containers; their original shape is retained. This optional field may also be null or absent.",
                    "items": {
                      "description": "Observed as null; the non-null type is not established."
                    },
                    "type": [
                      "array",
                      "object",
                      "null"
                    ]
                  },
                  "quotes": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "replies": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "retweets": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "screen_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sensitive": {
                    "description": "Observed as null; the non-null type is not established."
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "tweet_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "type": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "user_info": {
                    "additionalProperties": true,
                    "properties": {
                      "avatar": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "cover_image": {
                        "description": "Observed as null; the non-null type is not established."
                      },
                      "created_at": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "description": {
                        "description": "Observed as null; the non-null type is not established."
                      },
                      "favorites_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "followers_count": {
                        "type": [
                          "integer",
                          "null"
                        ]
                      },
                      "friends_count": {
                        "description": "Observed as null; the non-null type is not established."
                      },
                      "location": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "rest_id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "screen_name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "url": {
                        "description": "Observed as null; the non-null type is not established."
                      },
                      "verified": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "verified_type": {
                        "description": "Observed as null; the non-null type is not established."
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "views": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": [
                "array",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "meta": {
      "$ref": "#/$defs/Schema2"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "type": "object"
}
```

### Synthetic response / 合成响应

```json
{
  "data": {
    "code": 200,
    "data": {
      "next_cursor": "FIXTURE_CURSOR_TOKEN_0123456789abcdef",
      "prev_cursor": "FIXTURE_CURSOR_TOKEN_0123456789abcdef",
      "timeline": [
        {
          "bookmarks": 0,
          "conversation_id": "1962043663313252721",
          "created_at": "Wed Mar 04 05:06:07 +0000 2026",
          "display_text_range": [
            32
          ],
          "entities": {
            "hashtags": [],
            "symbols": [],
            "timestamps": [],
            "urls": [],
            "user_mentions": [
              {
                "id_str": "1153060207267856384",
                "indices": [
                  0
                ],
                "name": "fixture_𓋼𓍊𝐸𝓂𝓅𝓇𝑒𝓈𝓈𝐸𝓁𝒻𝒾𝒾𝑒𓍊",
                "screen_name": "fixture_empresselfiie"
              }
            ]
          },
          "favorites": 1,
          "in_reply_to_screen_name": "fixture_empresselfiie",
          "in_reply_to_status_id_str": "1962704965891227957",
          "in_reply_to_user_id_str": "1153060207267856384",
          "lang": "en",
          "media": [],
          "quotes": 0,
          "replies": 1,
          "retweets": 0,
          "screen_name": "fixture_christi47921460",
          "sensitive": null,
          "source": "合成正文 <em>highlight</em> fixture body 用于覆盖 _strip_markup",
          "text": "合成正文 <em>highlight</em> fixture body 用于覆盖 _strip_markup",
          "tweet_id": "1962705599608574183",
          "type": "fixture_tweet",
          "user_info": {
            "avatar": "https://fixture.invalid/media/1",
            "cover_image": null,
            "created_at": "Wed Mar 04 05:06:07 +0000 2026",
            "description": null,
            "favorites_count": 330778,
            "followers_count": 6814,
            "friends_count": null,
            "location": "fixture_new hampshire, u",
            "name": "fixture_christian",
            "rest_id": "1155849763193053184",
            "screen_name": "fixture_christi47921460",
            "url": null,
            "verified": false,
            "verified_type": null
          },
          "views": "27"
        }
      ]
    }
  },
  "meta": {
    "api_name": "social.twitter.post.comments",
    "credits_charged": 2,
    "latency_ms": 12,
    "next_input": {
      "cursor": "{\"after\":\"FIXTURE_CURSOR_TOKEN_0123456789abcdef\",\"k\":\"2099543350521090257\",\"r\":\"\",\"s\":\"\",\"t\":\"comments\"}",
      "tweet_id": "2099543350521090257"
    },
    "request_id": "asklear-example"
  }
}
```

- data (object): Known optional fields from sanitized offline fixtures; conditional fields may be null. Additional business fields are retained.
- data.code (integer|null): 暂无字段说明
- data.data (object|null): 暂无字段说明
- data.data.next_cursor (string|null): 暂无字段说明
- data.data.prev_cursor (string|null): 暂无字段说明
- data.data.timeline (array|null): 暂无字段说明
- meta (object): 暂无字段说明
- meta.api_name (string): 暂无字段说明
- meta.request_id (string): 暂无字段说明
- meta.latency_ms (integer): 暂无字段说明
- meta.credits_charged (integer): 暂无字段说明
- meta.next_input (scalar): 暂无字段说明
- data.data.timeline[].bookmarks (integer|null): 收藏数（如有）。
- data.data.timeline[].conversation_id (string|null): 会话ID（如有）。
- data.data.timeline[].created_at (string|null): 发布时间（如有）。
- data.data.timeline[].display_text_range (array|null): 暂无字段说明
- data.data.timeline[].entities (object|null): 暂无字段说明
- data.data.timeline[].entities.hashtags (array|null): 暂无字段说明
- data.data.timeline[].entities.symbols (array|null): 暂无字段说明
- data.data.timeline[].entities.timestamps (array|null): 暂无字段说明
- data.data.timeline[].entities.urls (array|null): 暂无字段说明
- data.data.timeline[].entities.user_mentions (array|null): 暂无字段说明
- data.data.timeline[].entities.user_mentions[].id_str (string|null): 暂无字段说明
- data.data.timeline[].entities.user_mentions[].indices (array|null): 暂无字段说明
- data.data.timeline[].entities.user_mentions[].name (string|null): 暂无字段说明
- data.data.timeline[].entities.user_mentions[].screen_name (string|null): 暂无字段说明
- data.data.timeline[].favorites (integer|null): 点赞数（如有）。
- data.data.timeline[].in_reply_to_screen_name (string|null): 暂无字段说明
- data.data.timeline[].in_reply_to_status_id_str (string|null): 在回复到推文ID（如有）。
- data.data.timeline[].in_reply_to_user_id_str (string|null): 暂无字段说明
- data.data.timeline[].lang (string|null): 语言（如有）。
- data.data.timeline[].media (array|object|null): Source containers may be JSON arrays or objects, including empty containers; their original shape is retained. This optional field may also be null or absent.
- data.data.timeline[].quotes (integer|null): 引用数（如有）。
- data.data.timeline[].replies (integer|null): 回复数（如有）。
- data.data.timeline[].retweets (integer|null): 转发数（如有）。
- data.data.timeline[].screen_name (string|null): 作者账号（如有）。
- data.data.timeline[].sensitive (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].source (string|null): 暂无字段说明
- data.data.timeline[].text (string|null): 正文内容（如有）。
- data.data.timeline[].tweet_id (string|null): 推文 ID（如有）。
- data.data.timeline[].type (string|null): 暂无字段说明
- data.data.timeline[].user_info (object|null): 暂无字段说明
- data.data.timeline[].user_info.avatar (string|null): 暂无字段说明
- data.data.timeline[].user_info.cover_image (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].user_info.created_at (string|null): 暂无字段说明
- data.data.timeline[].user_info.description (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].user_info.favorites_count (integer|null): 暂无字段说明
- data.data.timeline[].user_info.followers_count (integer|null): 暂无字段说明
- data.data.timeline[].user_info.friends_count (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].user_info.location (string|null): 暂无字段说明
- data.data.timeline[].user_info.name (string|null): 作者名称（如有）。
- data.data.timeline[].user_info.rest_id (string|null): 作者 ID（如有）。
- data.data.timeline[].user_info.screen_name (string|null): 作者账号（如有）。
- data.data.timeline[].user_info.url (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].user_info.verified (boolean|null): 暂无字段说明
- data.data.timeline[].user_info.verified_type (scalar): Observed as null; the non-null type is not established.
- data.data.timeline[].views (string|null): 浏览数（如有）。
- meta.next_input.cursor (string): 暂无字段说明
- meta.next_input.tweet_id (string): 暂无字段说明

Follow up: GET /v1/native/results/{query_id}
读取已保存结果，不重复查询数据或收费。

