X user posts API
Get a page of the posts on an X user's profile by handle, newest first; tab chooses the posts, replies or media tab. The posts tab holds the account's retweets: ext.is_retweet marks them, with the original post's ID and its author's ID. About 20 items a call, 60 at most; $0.0020 per call. Errors and timeouts are not charged.
Try it
Change a value and the request on the right follows.Sign in to run it; it runs on your own balance. New accounts can try this endpoint free, up to 50 calls.
Used to call POST /v1/x/users/media / POST /v1/x/users/posts / POST /v1/x/users/replies? It is this address now. What changed for old endpoints
curl -G "https://onefeedapi.com/v1/x/users/posts/list" \ --data-urlencode "username=NASA" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
{
"code": "ok",
"request_id": "a04f192f-476c-4376-b194-b77f59b07e3a",
"data": {
"items": [
{
"id": "1863359530073373268",
"url": "https://x.com/i/status/1863359530073373268",
"type": "text",
"text": "My honest take on weekend hiking, a month in.",
"lang": "en",
"published_at": "2025-11-19T11:31:56.000Z",
"author": {
"id": "134609257081928407",
"username": "leopark_films",
"name": "Trail & Lens",
"avatar_url": "https://pbs.twimg.com/profile_images/1812803203713899675/2Yj2JsV2_normal.jpg",
"verified": true,
"followers": 1854251
},
"metrics": {
"likes": 0,
"comments": 0,
"favorites": 0,
"views": 4,
"reposts": 32
},
"images": [],
"hashtags": [],
"mentions": [
{
"id": "194532970447034445",
"username": "fieldnotes_studio",
"name": "Field Notes Studio"
}
],
"post_id": null,
"parent_id": null
},
// … 18 more
]
},
"page": {
"next_cursor": "c1.DGFUsXZx17T5FTlAHUbl0dig8dJpg0e9HXM6L0ao",
"cursor_expires_at": "2026-10-12T20:16:20.000Z",
"has_more": true,
"returned": 19
},
"warnings": [],
"meta": {
"capability": "x.users.posts.list",
"result_status": "complete",
"fetched_at": "2026-10-12T19:16:20.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"title": "platform",
"metrics.shares": "platform",
"is_pinned": "capability",
"root_id": "platform"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a response recorded 2026-10-12 19:16 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.
Size as sent: 16.7 KB in the standard view (11.6 KB compact, 18.4 KB full).
{
"code": "ok",
"request_id": "45e60267-749f-4751-a7c8-4b82ac719703",
"data": { "items": [] },
"page": {
"next_cursor": null,
"cursor_expires_at": null,
"has_more": false,
"returned": 0
},
"warnings": [],
"meta": {
"capability": "x.users.posts.list",
"result_status": "empty",
"fetched_at": "2026-10-12T19:16:20.000Z",
"cached": false,
"replayed": false,
"unavailable": {
"title": "platform",
"metrics.shares": "platform",
"is_pinned": "capability",
"root_id": "platform"
},
"billing": {
"amount": "0.002",
"currency": "USD",
"balance_after": "9.998"
}
}
}From a recording of 2026-10-12 19:16 UTC, edited by hand to show this case. The request ID and balance are made up.
Size as sent: 493 B in the standard view (493 B compact, 493 B full).
This recorded response is 11k tokens as the platform's own JSON, 5,149 as OneFeedAPI's JSON, and 3,545 as an AI reads it through OneFeedAPI's MCP server: 68% fewer (counted 2026-11-06).
curl -G "https://onefeedapi.com/v1/x/users/posts/list" \ --data-urlencode "username=NASA" \ -H "Authorization: Bearer $ONEFEED_API_KEY"
# pip install onefeedapi from onefeedapi import OneFeedAPI dx = OneFeedAPI() # reads ONEFEED_API_KEY result = dx.x.users.posts.list(username="NASA") print(result["data"]["items"])
// npm i @onefeedapi/sdk import { OneFeedAPI } from "@onefeedapi/sdk"; const dx = new OneFeedAPI(); // reads ONEFEED_API_KEY const result = await dx.x.users.posts.list({ username: "NASA" }); console.log(result.data.items);
onefeedapi call x.users.posts.list username=NASA
{
"mcpServers": {
"onefeedapi": {
"type": "http",
"url": "https://onefeedapi.com/mcp",
"headers": {
"Authorization": "Bearer ${ONEFEED_API_KEY}"
}
}
}
}Add this to your MCP client, then ask your agent to call x.users.posts.list.
Parameters
X handle, without the @. Example: NASA.
Which tab of the profile: posts (retweets among them), replies (the account's own only: the posts of others it replies to are left out, and parent_id names them), or media. Values: posts (default), replies, media. Example: posts.
Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own.
How much of each item to return. All three cost the same. Values: compact, standard (default), full.
Return only these fields. Each by its path, such as author.name.
Known limits
- About 20 items a page, 60 at most. The page size is the platform's;
limitis not accepted. - For the next page pass
page.next_cursorascursor; a cursor is valid for 1 hour.page.has_moreis false on the last page. - 4 fields of the object are not available from this endpoint
Returned fields
data.items is a list of post objects. Stable: fields are only ever added.
ID; pass it unchanged to the get endpoint
Link that opens the post
Content formatvideoimagetextarticle
Title
Body text
Long text: the compact view keeps the first 500 characters and says so in warnings.
Language of the text
Show all 38 fields →
When it was published
Author
Author's account ID
Author's handle
Author's display name
Author's avatar
Whether the author is verified
On this platform: Whether it carries a badge of any colour: the blue one of a paid subscription, the gold one of a business and the grey one of a government or official body are all true, so it does not mean a paid subscription
Author's follower count
Engagement counts
Likes
Comments
On this platform: Replies
Shares
Saves
On this platform: Bookmarks
Views
Reposts
On this platform: Retweets; quotes are counted apart, in ext.quotes
Image addresses
Hashtags, without the #
Accounts mentioned in the text
Account ID
Handle
Display name
Whether the author pinned it
ID of the thread's root post when this is a reply; otherwise null
ID of the item it replies to directly; otherwise null
ID of the first-level reply its thread hangs under
Times it was quoted
Whether it is a retweet of someone else's post. A retweet's likes, replies and bookmarks are 0; its views are its own (hundreds of thousands, on a large account); its retweet count is the original's; its text is the original's cut short after "RT @…". Leave retweets out when working out the account's own engagement
ID of the original post it retweets; null when it is not a retweet
Account ID (digits) of the original post's author; null when it is not a retweet
Which numbers of this item are approximate or lower bounds; absent when all are exact
Path of the field, such as metrics.views
Approximate, or a lower boundapproximatelower_bound
With username, tab=media: hashtags, mentions not returned.
Typical size of one item: compact 598 B, standard 875 B, full 965 B (measured on the response recorded 2026-10-12 19:16 UTC).
What this endpoint cannot give
titleThe platform has nonemetrics.sharesThe platform has noneis_pinnedNot provided hereroot_idThe platform has noneWhen you are charged
X-Max-Price to refuse anything above your own limit)Prices as read 2026-11-22 09:40 UTC, under price book 21, in effect since 2026-11-21 15:05 UTC; the Playground reads the price in force before a run.
If the object does not exist
An account that does not exist is not answered with a 404: it is reported as an error that may be retried once and is not charged.
Errors
What this endpoint can answer with; codes all endpoints share are on the full list.
invalid_paramsA parameter is invalidRetry: After a fixNocursor_mismatchThe cursor was issued for another endpoint or other parametersRetry: After a fixNoinsufficient_balanceThe balance is too lowRetry: After a fixNocursor_expiredThe cursor expired; start again from the first pageRetry: NoNoupstream_failedNo result came back this time and nothing was charged; retry shortlyRetry: YesNotimeoutThe data did not arrive in time; retry with the same idempotency keyRetry: YesNoQuestions
How much does the X user posts API cost?
$0.0020 per call. The most one call can cost is $0.0020.
When am I not charged?
Errors and timeouts are not charged.
How many items does one call return, and how do I get the next page?
About 20 items a page, 60 at most. The page size is the platform's; limit is not accepted. For the next page pass page.next_cursor as cursor; a cursor is valid for 1 hour. page.has_more is false on the last page.
What happens if the object does not exist?
An account that does not exist is not answered with a 404: it is reported as an error that may be retried once and is not charged.
30-day availability
100% of the time over the last 30 days, this endpoint was serving calls: at least one of its routes was taking them, so it was neither paused nor down.
A failed call is not charged.
Every endpoint's state now, and each incident with whether anyone was charged: the status page →
The same thing on other platforms
All 21 X (Twitter) endpoints
Use it in your AI
Copy this prompt
Your API key is built in, so there is nothing to configure.
No account yet? Sign-up takes an email and no card, and a failed call is never charged.
Paste it into your agent
It reads the page the prompt points to and connects itself.
Now ask something
Use one of these, or your own words.
Prefer to set it up by hand?
onefeedapi setupgives the agents on your machine (Claude Code, Codex, Cursor) the OneFeedAPI MCP server and the base skill. The key is read from ONEFEED_API_KEY; none is written into a file.MCP server: https://onefeedapi.com/mcp. The entry for your client is under MCP in the request examples of this page; then ask your agent to call x.users.posts.list.Other clients →Show the text
Use the OneFeedAPI endpoint x.users.posts.list (X user posts). Get a page of the posts on an X user's profile by handle, newest first; tab chooses the posts, replies or media tab. The posts tab holds the account's retweets: ext.is_retweet marks them, with the original post's ID and its author's ID. Call GET https://onefeedapi.com/v1/x/users/posts/list with the header "Authorization: Bearer $ONEFEED_API_KEY". Read the key from the environment variable ONEFEED_API_KEY; never write it into code. Parameters: - username (required): X handle, without the @. Example: NASA. - tab: Which tab of the profile: posts (retweets among them), replies (the account's own only: the posts of others it replies to are left out, and parent_id names them), or media. Values: posts (default), replies, media. Example: posts. - cursor: Cursor returned by the previous page. Pass page.next_cursor of the page before, unchanged. Each page is charged as a call of its own. - view: How much of each item to return. All three cost the same. Values: compact, standard (default), full. - fields: Return only these fields. Each by its path, such as author.name. Price: $0.0020 per call. Errors and timeouts are not charged. The answer is JSON: data.items holds post; meta.billing.amount is what this call was charged. Example: curl -G "https://onefeedapi.com/v1/x/users/posts/list" \ --data-urlencode "username=NASA" \ -H "Authorization: Bearer $ONEFEED_API_KEY" Full reference in Markdown: https://onefeedapi.com/apis/x/users/posts/list.md
Names and identifiers
- In Chinese
- X 用户帖子列表 API
- Endpoint ID
x.users.posts.list- Endpoint
GET /v1/x/users/posts/list
Start with one key.
253 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.