Get an account’s posts
Twitter User Tweets API · 10 points per successful call
Product overview and demoAll Twitter (X) API endpointsError codes
Returns an account’s posts, newest first, about 20 per page: its own posts and reposts, and with replies=true its replies to others too. Each post carries its full text, counts, media, links, and the post it quotes or reposts. The pinned post is not repeated here; /user names it. A protected account returns an empty page. Returns 404 NOT_FOUND when no account answers to that name or id, or the account is suspended or deactivated. Page with meta.pagination.next_cursor, which is null on the last page.
bearerAuthAuthorizationBearer <token>Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.
username?stringThe account handle, with or without the leading @. Give this or user_id.
^@?[A-Za-z0-9_]{1,20}$user_id?stringThe numeric user id, which survives a change of username. Give this or username.
^[0-9]{1,20}$replies?stringtrue adds the account’s replies to others.
"false""true""false"cursor?stringOpaque cursor from meta.pagination.next_cursor of a previous response.
Successful response
application/json- response
meta*data*curl -X GET 'https://api.endpointry.com/v1/twitter/user/tweets?username=NASA&replies=false'{
"meta": {
"request_id": "req_7729f93d3facf68ff83e5c50",
"as_of": "2026-11-24T12:00:00.000Z",
"pagination": {
"next_cursor": "YjNiNDk1ZTI6REFBSENnQUJIWDVXUWJ2X18tc0xBQUlB",
"returned": 1
}
},
"data": {
"tweets": [
{
"id": "2124940993489162256",
"url": "https://x.com/NASA/status/2124940993489162256",
"created_at": "2026-11-23T18:59:46.000Z",
"author": {
"id": "11348282",
"username": "NASA",
"name": "NASA",
"verified": true,
"profile_image_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg"
},
"text": "Happy Thanksgiving from the @Space_Station!",
"lang": "en",
"likes": 4832,
"retweets": 606,
"replies": 171,
"quotes": 33,
"bookmarks": 228,
"views": 986529,
"conversation_id": "2124940993489162256",
"in_reply_to": null,
"hashtags": [],
"mentions": [
{
"id": "1451773004",
"username": "Space_Station"
}
],
"urls": [],
"media": [
{
"type": "video",
"url": "https://pbs.twimg.com/media/HX1OkiYWQAAGf8b.jpg",
"width": 720,
"height": 405,
"alt_text": null,
"duration_ms": 165965,
"video_url": "https://video.twimg.com/amplify_video/2124940778208215040/vid/avc1/1920x1080/ZPhFDSjcq_onYTBH.mp4?tag=16"
}
],
"sensitive": false,
"quoted_tweet": null,
"retweeted_tweet": null
}
]
}
}