List the account's own posts
Early access. Tell us what you're building and we'll set you up. Contact us
api.lempile.com/users/me/postsThe account's own posts, replies or reposts, newest first, from its profile's tabs: what a rebrand deletes (DELETE /posts/{post_id}) or undoes (POST /posts/repost with undo: true and the item's reposted_id). X's own data first; when it can't be had, the tab itself, read while it's scrolled like a person. Nothing is clicked. On a LinkedIn account this is /users/{identifier}/posts.
Scope: accounts.read.
Authentication
X-API-KEY header·A Lempile API key, made in the dashboard under Access tokens.Query parameters
account_idstringrequiredThe connected X account: its Lempile id, its X user id, or its handle.
kindstringposts(the Posts tab: the account's posts, the pinned one markedpinned),replies(the Replies tab: its replies, each within_reply_to) orreposts(each withreposted_id).One ofpostsrepliesrepostsDefaultpostslimitinteger1–100, default 20.
Default20≥ 1 · ≤ 100cursorstringThe previous page's
cursor. It still works once you deleted the post it names: the page goes on from the older ones.Pattern^[0-9]{1,25}$
Responses
200The items, and the next page's cursor (null at the end).
›
null at the end).application/json
objectanyAlwaysOwnPostListprovideranyAlwaysXaccount_idstringkindstringOne ofpostsrepliesrepostsitemsarray of OwnPost›Show fieldsHide fields
objectanyAlwaysOwnPostidstringThe post, reply or repost itself (a repost's own id).
kindstringOne ofpostreplyreposttextstringIts words; a repost's are the reposted post's.
created_atstring · date-time | nullreposted_idstringA repost: the post it reposted, which
POST /posts/repostwithundo: truetakes.in_reply_tostringA reply: the post it answers.
pinnedanyThe profile's pinned post (first page only).
Alwaystrue
cursorstring | nullPass it back as
cursorfor the next page;nullat the end.
400errors/missing_parameters or errors/invalid_parameters: a kind, limit or cursor it doesn't take.
›
errors/missing_parameters or errors/invalid_parameters: a kind, limit or cursor it doesn't take.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
401Missing or invalid API key ({error, message}), errors/disconnected_account, or errors/reauth_required when X is signed out in the account's browser.
›
{error, message}), errors/disconnected_account, or errors/reauth_required when X is signed out in the account's browser.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
402subscription_required: the workspace has no active trial or subscription.
›
subscription_required: the workspace has no active trial or subscription.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
404errors/resource_not_found: no such account in this workspace, or it isn't an X account.
›
errors/resource_not_found: no such account in this workspace, or it isn't an X account.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
422errors/timeline_not_loaded: the profile showed neither posts nor its empty notice (never an empty list), or errors/x_app_not_loaded.
›
errors/timeline_not_loaded: the profile showed neither posts nor its empty notice (never an empty list), or errors/x_app_not_loaded.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
423errors/x_account_locked: X shows the account its lock page (x.com/account/access). Nothing was done; someone has to pass X's check.
›
errors/x_account_locked: X shows the account its lock page (x.com/account/access). Nothing was done; someone has to pass X's check.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
503errors/service_unavailable (the account isn't ready, or the browser runner can't be reached), errors/no_client_session, or errors/maintenance with retry_at.
›
errors/service_unavailable (the account isn't ready, or the browser runner can't be reached), errors/no_client_session, or errors/maintenance with retry_at.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
504errors/timeout: nothing was changed; try again.
›
errors/timeout: nothing was changed; try again.application/problem+json
typestringrequiredtitlestringstatusintegerrequireddetailstringretry_atstring · date-timecodestringThe browser's own reason, when it refused before the click:
replies_limited,post_not_accepted,gif_not_found,browser_busy…
Was this page helpful?