X Twitter Getpostsbyid
1.24积分/次
ae_x_twitter_getpostsbyid
根据推文ID读取帖子内容、作者和互动信息。
1.24积分/次
价格说明
1.24积分/次 按查询次数计费。查询成功但未返回结果时,也会扣除积分。
1.24积分/次
工具参数
未传入的可选参数将使用平台默认值。
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
id | string | 是 | 推文ID,填写数字字符串。 Numeric post ID. | — |
调用示例
复制请求代码,查看对应的返回示例。
POST
/agent-api/v1/tool/executeX-Api-Key请求代码request.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_x_twitter_getpostsbyid' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"id": "2116749412634599892"
}
}'返回示例response.json
{
"code": 200,
"data": {
"author": {
"blue_verified": false,
"image": "https://pbs.twimg.com/profile_images/1945446526420951040/sxWmLhiH_normal.jpg",
"name": "たろたろ",
"rest_id": "1221239049303650310",
"screen_name": "tarotaro0_game",
"sub_count": 8633
},
"bookmarks": 22,
"conversation_control": {
"policy": null
},
"conversation_id": "2116749412634599892",
"id": "2116749412634599892",
"status": "active"
},
"docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_tweet_detail_api_v1_twitter_web_fetch_tweet_detail_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"tweet_id": "2116749412634599892"
}
}返回示例仅展示部分内容,不代表完整响应;复制内容为合法 JSON。




