X Twitter Getpostsbyid
1.24 credits/call
ae_x_twitter_getpostsbyid
Get a post, its author and engagement information by post ID.
1.24 credits/call
Pricing
1.24 credits/call
| Condition | Charge |
|---|---|
| Each call | 1.24 credits/call |
1.24 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.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
id | string | Yes | 推文ID,填写数字字符串。 Numeric post ID. | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.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 exampleresponse.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"
}
}This example shows part of the response. Copied content is valid JSON.





