Get user posts — X API
Returns public posts from a user's profile as visible to not logged in users. This feed is not guaranteed to be chronological and is often a ranked public selection. Pages may overlap: a pinned post is repeated on every page, so deduplicate by id when paging.
GET
/v1/x/users/{username}/posts1 credit per requestExample response200OK
Make the request.
One authenticated GET to /v1/x/users/{username}/posts. Authentication and error conventions stay consistent across endpoints. This page shows the path, parameters, response shape, limits, and credit rule for this operation.
Built for
- Content analysis and posting frequency tracking
- Brand mention monitoring across accounts
- Competitor content strategy research
const response = await fetch("https://api.konbiniapi.com/v1/x/users/KhabyLame/posts", {
headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await response.json();
Parameters2
- usernamerequiredIn · PathType · stringX username (with or without @ symbol)
- cursorIn · QueryType · stringPagination cursor
What you will probably call next.
The X endpoints around this one — the same object at a different depth, or the same kind of read.
Try it on your own data.
Get a free API key and make this request in minutes. Failed and timed-out requests are automatically refunded.