Read your X (Twitter) bookmarks
Automatically read your X (Twitter) bookmarks on x.com. List the posts the signed-in X (Twitter) account has bookmarked, in the order X shows them: the most recently bookmarked first. All bookmarks are read, not one bookmark folder. Returns per post: id, url, author {id, handle, name}, text, created_at, lang, likes, retweets, replies, quotes, bookmarks, views, is_retweet, is_quote, plus in_reply_to and quoted_tweet ({id, author_handle}, null when not a reply or a quote). created_at is when the post was written, not when it was bookmarked: X does not show that date. With count, the script scrolls until it has count, reaches the end, or X stops loading; complete says whether it reached the end. When the browser is signed out of X, the run fails with a signed-out error asking you to sign in to x.com.
Inputs
count optionalHow many to return. Without it, the script returns the first page X shows (often about 20). With it, the script loads more until it has count, reaches the end, or X stops loading; complete says whether it reached the end.
Output
count requiredNumber of posts returned. 0 is a valid answer: the account has no bookmarks.
tweets requiredcomplete requiredTrue when X showed the end of the bookmarks and every one it sent is returned. False when there may be more: count was reached, X stopped loading, or no count was given and the first page is not the end.
FAQ
Search X (Twitter) posts
Search X (Twitter) for tweets with every X search operator, from the Top tab (a ranked sample, the default) or the Latest tab (chronological), picked by the tab arg. Returns per tweet a canonical record: id, url, author {id, handle, name}, text, created_at, lang, likes, retweets, replies, quotes, bookmarks, views, is_retweet, is_quote, plus followers (the author's follower count, a search-only enrichment), and the top-level query and count. Top is a ranked sample, not exhaustive.
Get X (Twitter) user profile
Look up an X (Twitter) user's profile by handle. Returns handle, user_id, name, bio, location, website, joined, followers_count, following_count, is_verified, is_self, is_following, follows_you. Counts are exact integers. bio and website carry the real destination URLs, with X's shortlinks resolved. is_following is null on your own profile. Any of is_self, is_following, follows_you and is_verified is null when X does not say. Requires being signed in to X; a missing or suspended account is an error that says which.
Get X (Twitter) user posts
Get an X (Twitter) user's latest posts by handle (the Posts tab of x.com/<handle>), with their views, likes, reposts, replies, quotes and bookmarks. Returns { posts, complete }; until 16 Oct 2026 the answer was the bare posts array, so a caller written before then reads result.posts now. Posts come in the order X shows them: the pinned post, if any, first, then newest first, with each self-thread kept in thread order. complete is true only when X marked the end of the tab and every post fits in count. Replies (see get_user_replies) and reposts (see get_user_reposts) are not included. Works signed in or signed out. Signed out, X only shows visitors a short preview of recent posts, so fewer than count is expected, complete is false, and in_reply_to and quoted_tweet are not available; each post's source field says which one you got.
