X Twitter Getusersposts
1.24 credits/call
ae_x_twitter_getusersposts
Get one page of recent posts from a user by user 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 user ID. | — |
pagination_token | string | No | 上一页返回的分页标记。首次查询不填;不能自行编造。 Pagination token returned by the previous page. Omit for the first page; do not invent a token. | — |
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_getusersposts' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"id": "2052434492263178240"
}
}'Response exampleresponse.json
{
"code": 200,
"data": {
"next_cursor": "DAAHCgABHW3ALs____sLAAIAAAATMjEyMDI4MjYzMDQyMzc2NTE0NwgAAwAAAAIAAA",
"pinned": {
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2118391505811329024/lN2GzKvh_normal.jpg",
"blue_verified": true,
"followers_count": 113264,
"name": "Muse",
"rest_id": "2052434492263178240",
"screen_name": "Muse"
},
"bookmarks": 4650,
"conversation_id": "2097399178376671666",
"created_at": "Tue Sep 08 18:58:26 +0000 2026",
"favorites": 13396,
"lang": "en"
},
"prev_cursor": "DAAHCgABHW3ALtAAJxELAAIAAAATMjEyMDI4NTI5Njk5NDc1MDgxMwgAAwAAAAEAAA",
"status": "ok",
"timeline": [
{
"author": {
"avatar": "https://pbs.twimg.com/profile_images/2118391505811329024/lN2GzKvh_normal.jpg",
"blue_verified": true,
"followers_count": 113264,
"name": "Muse",
"rest_id": "2052434492263178240",
"screen_name": "Muse"
},
"bookmarks": 172,
"conversation_id": "2120285267286217021",
"created_at": "Tue Nov 10 22:39:35 +0000 2026",
"entities": [],
"favorites": 460
}
],
"user": {
"affiliates": null,
"avatar": null,
"blue_verified": null,
"created_at": null,
"id": null,
"name": null
}
},
"docs": "https://api.tikhub.io/#/Twitter-Web-API/fetch_user_post_tweet_api_v1_twitter_web_fetch_user_post_tweet_get",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {
"cursor": "",
"rest_id": "2052434492263178240"
}
}This example shows part of the response. Copied content is valid JSON.
Guides using this tool
See how this tool fits into real workflows
Competitor Social Media Benchmarking with AI AgentsLet an AI agent benchmark competitors across social platforms — pull recent account performance from X, Xiaohongshu and TikTok in one prompt, align posting cadence and engagement, and roll it up into a single comparison table.
X (Twitter) Monitoring & Analysis with AI AgentsUse one AI agent to monitor X (Twitter): track keywords, pull account timelines and profiles, and gauge topic volume — turning scattered scrolling into an automated, repeatable monitoring report.





