X Twitter Getpostsbyids
9 credits/call
ae_x_twitter_getpostsbyids
Get post details for multiple comma-separated post IDs.
9 credits/call
Pricing
9 credits/call
| Condition | Charge |
|---|---|
| Each call | 9 credits/call |
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
ids | string | Yes | 推文ID列表,多个ID用逗号分隔。 Comma-separated numeric post IDs. | — |
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_getpostsbyids' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"ids": "1585841080431321088,2109759113941152026"
}
}'Response exampleresponse.json
{
"code": 0,
"msg": "success",
"status": "success",
"tweets": [
{
"author": {
"affiliatesHighlightedLabel": {
"label": {
"badge": {},
"description": "X",
"url": {},
"user_label_display_type": "Badge",
"user_label_type": "BusinessLabel"
}
},
"id": "44196397",
"name": "Elon Musk",
"status": "",
"type": "user",
"url": "https://x.com/elonmusk"
},
"bookmarkCount": 8278,
"card": null,
"id": "1585841080431321088",
"type": "tweet",
"url": "https://x.com/elonmusk/status/1585841080431321088"
}
]
}This example shows part of the response. Copied content is valid JSON.





