Twitter (X) Bookmarks API: Read, Add, Remove and Export Bookmarks, Plus What bookmarkCount Reveals

- Two different data sets. The bookmarks list (which posts one account saved) is private and needs that account's authorization; the bookmark count on a post (
bookmarkCount) is public and comes back on every tweet read. - Official X API:
GET /2/users/:id/bookmarks,POST /2/users/:id/bookmarks,DELETE /2/users/:id/bookmarks/:tweet_id, plus two folder endpoints. User token only (OAuth 2.0 PKCE withbookmark.read/bookmark.write, or OAuth 1.0a user context), up to 100 per page, 180 reads and 50 writes per 15 minutes per user. - X prices: bookmarks read by your own app for your own account are Owned Reads at $0.001 each; a bookmark add or remove is $0.005 per request; general post reads are $0.005 each.
- TwitterAPI.io:
POST /twitter/bookmarks_v2(login_cookies+ proxy,countdefault 20,cursor) is billed per tweet returned, $0.15 per 1,000;bookmark_tweet_v2andunbookmark_tweet_v2are 60 credits ($0.0006) per successful call. - What the public count shows: 12.5 bookmarks per 100 likes across 1,029 organization posts; developer accounts 49.5, sports and entertainment 4.5 (about 11x apart).
- Saves are concentrated: the top 10% of posts held 65.1% of all bookmarks, and only 14 of 1,029 posts had more bookmarks than likes.
This page is about the API endpoints themselves: which calls read, add and remove Twitter (X) bookmarks, what each needs, what each costs, and how to export the list. If you want to feed your saved posts into an AI assistant to sort and search them, the X bookmarks AI guide covers that workflow; if your question is whether other people can see what you saved, the bookmark privacy guide answers it for regular users. Both are linked below, and neither is repeated here.
The short version: "bookmarks API" means two things. One is the private list of posts a single account saved, which X only releases to that account (through an OAuth user token on the official API, or a logged-in session on ours). The other is the public bookmarkCount number on every post, which any read endpoint returns without an X account. We document both, then show what the public number looks like on real data.
For the data, we read the recent timelines of 13 organization accounts (developer brands, newsrooms, science, sports and music) and compared bookmarks with likes and views on 1,029 original posts, collected in 2026. The study cost $0.22 at list price for 74 requests.
49.5 vs 4.5 across 1,029 posts from 13 organization accounts (collected in 2026); 12.5 overall, and the top 10% of posts held 65.1% of all bookmarks.
Two different things: the bookmarks list and the bookmark count
Bookmarks on X are private. docs.x.com puts it in one line on the Bookmarks overview: bookmarks "are private and only visible to the user who created them." That sentence defines what any bookmarks API can and cannot do, and it splits the topic in two.
The list. Which posts did account A save, in what order, in which folder? Only account A can answer that. Every route to the list, official or not, runs as that account: an OAuth 2.0 user token the account owner granted, or a logged-in session for an account you control. There is no endpoint, on X or on TwitterAPI.io, that returns another person's bookmarks.
The count. How many people saved post P? That number is public. X returns it on post objects, and TwitterAPI.io returns it as bookmarkCount on every tweet from every read endpoint, next to likeCount, retweetCount, replyCount, quoteCount and viewCount. It is an aggregate. No response we have seen, and no documented endpoint, says who bookmarked a post.
Keep that table in mind when you read the rest. Questions about an audience (which of a brand's posts get saved) are answered with the public count and no X login. Questions about one person's own library need that person's authorization.
The official X API bookmarks endpoints: paths, scopes, limits
The X API v2 Bookmarks group has five endpoints, listed on docs.x.com/x-api/posts/bookmarks/introduction. All of them are keyed by the authenticated user's numeric ID.
Authentication. The API reference for Get Bookmarks lists two security schemes: an OAuth 2.0 user token with the bookmark.read, tweet.read and users.read scopes, or an OAuth 1.0a user token. Adding a bookmark lists bookmark.write in place of bookmark.read. An app-only bearer token does not work: the rate-limit table on docs.x.com/x-api/fundamentals/rate-limits shows no per-app limit for the list, add and remove endpoints, because they have no app-only mode. The folder endpoints list 50 per 15 minutes for both app and user.
The id must be yours. The id path parameter is described in the reference as "the authenticated user's numeric ID, not me", so you first call GET /2/users/me and reuse the returned id. Passing someone else's ID does not return their bookmarks.
Pagination. max_results takes 1 to 100. The next page comes from meta.next_token, passed back as pagination_token. Field selection works like the other v2 post endpoints (tweet.fields, expansions, user.fields, media.fields).
The snippet below is the whole official read loop. Getting the user token is the larger job: you register an app in the X Developer Console, run the Authorization Code with PKCE flow in a browser, request the three read scopes, and store and refresh the token.
import os
import requests
# Official X API: a user access token (OAuth 2.0 Authorization Code with PKCE)
# granted the bookmark.read, tweet.read and users.read scopes.
TOKEN = os.environ["X_USER_ACCESS_TOKEN"]
H = {"Authorization": f"Bearer {TOKEN}"}
me = requests.get("https://api.x.com/2/users/me", headers=H, timeout=30).json()["data"]["id"]
params = {"max_results": 100, "tweet.fields": "created_at,public_metrics"}
posts = []
while True:
r = requests.get(f"https://api.x.com/2/users/{me}/bookmarks", headers=H, params=params, timeout=30)
r.raise_for_status()
body = r.json()
posts.extend(body.get("data", []))
token = body.get("meta", {}).get("next_token")
if not token:
break
params["pagination_token"] = token
print(len(posts), "bookmarks")What the official bookmarks endpoints cost
X API billing is pay-per-usage: you buy credits in the Developer Console and each call draws them down. The rate card on docs.x.com/x-api/getting-started/pricing has three lines that matter for bookmarks.
Owned Reads, $0.001 per resource. X defines Owned Reads as "requests made by your own developer app for your own data" and lists GET /2/users/{id}/bookmarks among them. The condition is that the id matches the authenticated user and that user owns the developer app. So a developer exporting their own bookmarks through their own app pays $1 per 1,000 bookmarks.
Posts: Read, $0.005 per resource. That is the general post-read line. A bookmarks product that serves other users through its own app does not meet the Owned Read condition (the app owner is not the user), so plan for the general rate there and confirm it on your usage page, because the rate card does not spell out a separate bookmark-read line.
Bookmark, $0.005 per request. Adding or removing a bookmark is listed under write operations.
The same page caps pay-per-usage at 3 million post reads per monthly billing cycle (Enterprise above that) and offers $20 in free X API credits after you save an eligible payment card and complete your first credit purchase, with a match of the first auto-recharge up to $50.
TwitterAPI.io: bookmarks_v2, bookmark_tweet_v2 and unbookmark_tweet_v2
TwitterAPI.io has three bookmark endpoints. They act as an X account you log in with, so they belong to the same family as the other _v2 action endpoints. The request and response shapes below come from docs.twitterapi.io/api-reference/endpoint/bookmarks_v2 and the two action pages; we had no test X account for this guide, so we did not call them ourselves.
Getting a session. POST /twitter/user_login_v2 takes user_name, email, password, a proxy you supply and an optional totp_secret (the 2FA seed, not a 6-digit code), and returns login_cookies. It costs $0.10 per login, and the docs recommend enabling 2FA first because cookies from an account without it may be faulty. The Post & Action V2 overview also documents building login_cookies from an existing browser session (a base64-encoded JSON object with the account's auth_token and ct0 cookies). Treat that value like a password: anyone holding it can act as the account. The Twitter cookie guide linked below explains both cookies.
What the list returns. bookmarks_v2 returns tweets "in the same format as other tweet endpoints", so a parser you already have for /twitter/tweet/advanced_search reads it unchanged: id, url, text, createdAt, likeCount, bookmarkCount, viewCount, author, entities, extendedEntities.media[], quoted_tweet and so on. The endpoint page documents no folder parameter, so folder-level reads are an official-API feature.
Pricing. The bookmarks_v2 page itself has no price line. The Post & Action V2 overview at docs.twitterapi.io/api-reference/post-action-v2 lists it as "per tweet returned, like other tweet endpoints", which is 15 credits per tweet, $0.15 per 1,000, with the 15-credit minimum per request. Adding and removing are 60 credits ($0.0006) per successful call; calls that return status: error are not charged.
What acting as an account means. Every call runs as that account, and X can rate-limit, lock or suspend an account whose activity it objects to. Keep a normal human pace (reading your own list once is a light job; bulk-saving thousands of posts is not), expect that the session can need a re-login, and remember that X's terms govern what the account does. Reads of public data (timelines, search, profiles) need no X account at all.
import os
import requests
BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_KEY"], "Content-Type": "application/json"}
body = {
"login_cookies": os.environ["X_LOGIN_COOKIES"],
"proxy": os.environ["X_PROXY"],
"tweet_id": "1234567890123456789", # the post to save
}
saved = requests.post(f"{BASE}/twitter/bookmark_tweet_v2", headers=HEADERS, json=body, timeout=60).json()
print(saved.get("status"), saved.get("message")) # "success", or "error" plus the reason
# later, to remove it again:
removed = requests.post(f"{BASE}/twitter/unbookmark_tweet_v2", headers=HEADERS, json=body, timeout=60).json()
print(removed.get("status"), removed.get("message"))Export all your bookmarks to JSON and CSV
The export loop is the same on both APIs: request a page, keep the posts, follow the cursor until there is none. On TwitterAPI.io the cursor fields are has_next_page and next_cursor; on X they are meta.next_token and pagination_token. The full script further down this page writes bookmarks.json and bookmarks.csv with one row per saved post: ID, URL, date, author handle, text, likes, bookmark count, views, outbound links and media URLs.
Pace it. The script sleeps a fixed 2 seconds between pages. At 20 posts per page, 1,000 bookmarks is 50 requests and under two minutes. On the official API, 100 per page and 180 requests per 15 minutes cover 18,000 posts per window for one user.
Dedupe by ID. Pages can overlap if you save something new while the export runs; a seen set keeps one row per post.
What 1,000 bookmarks cost. On TwitterAPI.io, 1,000 tweets returned is $0.15, plus $0.10 if you log in through user_login_v2 for the session. On the official API, the same 1,000 are $1 as Owned Reads (your app, your account) or $5 at the general post-read rate.
After the export. Store the post IDs. Later refreshes of likes, views and bookmark counts do not need the session at all: pass the IDs to GET /twitter/tweets with tweet_ids, which is a public read at 15 credits per tweet returned. That keeps the logged-in part of your pipeline to one short job.
What the public bookmark count shows: 13 organization accounts
The private list answers questions about one person. The public bookmarkCount answers questions about an audience: which posts people keep for later. We read the recent timelines of 13 organization accounts through /twitter/user/last_tweets, dropped reposts (they carry the original post's counts), and compared bookmarks with likes and views on 1,029 original posts.
Overall: 12.5 bookmarks per 100 likes and 8.2 per 10,000 views. The median post had 49 bookmarks, and only 1.6% had none. Bookmarks track likes closely in rank (Spearman 0.76) and views much less (Spearman 0.39): a post that collects likes usually collects saves, but a post that is merely seen often does not.
The account type matters far more than any post feature. Developer accounts collected 49.5 bookmarks per 100 likes; news 8.9; science and media 8.3; sports and entertainment 4.5. @freeCodeCamp led at 83.6 bookmarks per 100 likes and 167.7 per 10,000 views, against 3.6 per 100 likes on @NBA. People like a highlight and save a tutorial.
@huggingface is left out of the table and chart: 118 of its 120 recent timeline items were reposts, leaving 2 original posts. Its numbers are still in the totals.

Which posts get saved rather than liked, and how concentrated saves are
Pooling all accounts together exaggerates every feature, because the developer accounts post more links and longer text and also save more of everything. So the fairer test is inside each account: among accounts with at least five posts on each side, does the feature raise bookmarks per 100 likes?
Longer text is the steadiest signal. Posts of 200 or more characters drew more bookmarks per like in 9 of 10 accounts (pooled: 24.3 against 7.6). Video came next, higher in 8 of 10.
Links and photos are a wash once you hold the account fixed. Links looked strong pooled (28.2 against 8.2) but raised the rate in only 5 of 9 accounts. Photos were higher in 4 of 10. Quote posts were higher in 1 of 5.
Saves pile up on a few posts. The top 10% of posts held 65.1% of all bookmarks in the sample, and inside single accounts the share ran from 26.1% (@OpenAIDevs) to 70.8% (@Spotify). Only 14 of 1,029 posts (1.4%) had more bookmarks than likes, and 6 of those were @freeCodeCamp and 6 @vercel.
Young posts: read the count late. Posts under 24 hours old pooled at 5.8 bookmarks per 100 likes against 13.7 for older posts, but that gap is mostly the account mix (fast-posting news and sports accounts fill the under-24-hour bucket). Inside the 5 accounts with enough posts in both buckets, the older posts saved more per like in 3. If you track bookmark counts as a metric, compare posts of similar age, and store a second reading a few days later rather than trusting the first one.
import os
import requests
BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_KEY"]}
def saves_per_100_likes(user_name, pages=3):
bookmarks = likes = posts = 0
cursor = ""
for _ in range(pages):
params = {"userName": user_name}
if cursor:
params["cursor"] = cursor
r = requests.get(f"{BASE}/twitter/user/last_tweets", headers=HEADERS, params=params, timeout=60)
payload = r.json().get("data") or {}
for t in payload.get("tweets") or []:
if t.get("retweeted_tweet"):
continue # a repost carries the original post's counts
bookmarks += t.get("bookmarkCount") or 0
likes += t.get("likeCount") or 0
posts += 1
if not r.json().get("has_next_page"):
break
cursor = r.json().get("next_cursor") or ""
return posts, round(100 * bookmarks / likes, 1) if likes else None
print(saves_per_100_likes("freeCodeCamp"))
Which route to use
You want your own bookmarks, once. Either route works. With your own X developer app, an Owned Read export is $1 per 1,000 and needs the OAuth 2.0 PKCE setup. With TwitterAPI.io, it is $0.15 per 1,000 tweets returned plus the session, no developer app.
You are building a bookmark manager for other users. The official API is the route designed for that: each user grants your app bookmark.read (and bookmark.write if you organize their library), and only that user's list comes back. Folders are only on the official API. Budget at the general post-read rate, not the Owned Read rate.
You want to know what an audience saves. No login on either side: read the public bookmarkCount from timelines, search or tweet IDs. On TwitterAPI.io that is $0.15 per 1,000 tweets returned against $5 per 1,000 post reads at X's general rate, about 33x apart.
You want to save posts automatically. bookmark_tweet_v2 at $0.0006 per successful call or X's $0.005 per request. Either way, the account does the saving; keep the volume to what a person would plausibly do.
How we collected this
Question. What does the public bookmark count reveal: how many bookmarks a post collects relative to its likes and views, which kinds of posts get saved, and how concentrated saves are.
Accounts. 13 public organization accounts: @github, @vercel, @OpenAIDevs, @huggingface, @freeCodeCamp, @googledevs and @stripe (developer); @nytimes and @Reuters (news); @NASA and @NatGeo (science and media); @NBA and @Spotify (sports and entertainment). Three of them (@googledevs, @stripe, @NatGeo) were added after the first pass showed that @huggingface and @OpenAIDevs timelines were almost all reposts.
Method and window. GET /twitter/user/last_tweets with default settings (replies excluded), newest first, up to six pages per account; 74 requests returned 1,439 timeline items, of which 1,029 were original posts. Each account's window is its latest posts at collection, so fast posters like @Reuters cover about a day and slower ones several months. Collected in 2026; $0.22 at list price.
What the sample cannot show. Who bookmarked anything (no endpoint exposes that), bookmarks on replies or threads (replies were excluded), how counts grow over weeks (one snapshot per post), or anything about private accounts. Thirteen hand-picked brands are not a random sample of X; read the group gaps as directional.
Privacy. Organization accounts only, aggregates only, no analysis of the people who reposted, quoted or replied. The de-identified sample keeps counts and post features, with no IDs, URLs, text or handles of individuals.
"""Export the bookmarks of an X account you control to JSON and CSV.
Reads POST /twitter/bookmarks_v2 page by page (cursor pagination) and writes
bookmarks.json + bookmarks.csv. The session value and proxy come from
environment variables; this script never prints them.
export TWITTERAPI_KEY=... # dashboard API key
export X_LOGIN_COOKIES=... # login_cookies from /twitter/user_login_v2
export X_PROXY=http://user:pass@host:port
python3 export_bookmarks.py
"""
import csv
import json
import os
import time
import requests
BASE = "https://api.twitterapi.io"
HEADERS = {"X-API-Key": os.environ["TWITTERAPI_KEY"], "Content-Type": "application/json"}
SESSION = os.environ["X_LOGIN_COOKIES"]
PROXY = os.environ["X_PROXY"]
PAUSE_SECONDS = 2 # fixed pacing between pages
def fetch_page(cursor):
body = {"login_cookies": SESSION, "proxy": PROXY, "count": 20}
if cursor:
body["cursor"] = cursor
resp = requests.post(f"{BASE}/twitter/bookmarks_v2", headers=HEADERS, json=body, timeout=60)
data = resp.json()
if resp.status_code != 200 or data.get("status") == "error":
raise SystemExit(f"bookmarks_v2 failed: HTTP {resp.status_code} {data.get('msg') or data.get('message') or data.get('detail')}")
return data
def flatten(t):
author = t.get("author") or {}
return {
"id": t.get("id"),
"url": t.get("url"),
"created_at": t.get("createdAt"),
"author": author.get("userName"),
"text": t.get("text"),
"likes": t.get("likeCount"),
"bookmarks": t.get("bookmarkCount"),
"views": t.get("viewCount"),
"links": " ".join(u.get("expanded_url", "") for u in (t.get("entities") or {}).get("urls", [])),
"media": " ".join(m.get("media_url_https", "") for m in (t.get("extendedEntities") or {}).get("media", [])),
}
def main():
rows, seen, cursor = [], set(), None
while True:
data = fetch_page(cursor)
for t in data.get("tweets") or []:
if t.get("id") not in seen:
seen.add(t.get("id"))
rows.append(flatten(t))
print(f"{len(rows)} bookmarks so far")
if not data.get("has_next_page") or not data.get("next_cursor"):
break
cursor = data.get("next_cursor")
time.sleep(PAUSE_SECONDS)
with open("bookmarks.json", "w", encoding="utf-8") as f:
json.dump(rows, f, ensure_ascii=False, indent=2)
with open("bookmarks.csv", "w", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=list(rows[0].keys()) if rows else ["id"])
writer.writeheader()
writer.writerows(rows)
print(f"saved {len(rows)} bookmarks to bookmarks.json and bookmarks.csv")
if __name__ == "__main__":
main()
Researching this?Free starter credits cover end-to-end testing — Google sign-in, no card. Get a key.
Questions readers ask
Does the Twitter (X) API have a bookmarks endpoint?
Yes. The X API v2 has GET /2/users/:id/bookmarks to list bookmarks, POST /2/users/:id/bookmarks to add one, DELETE /2/users/:id/bookmarks/:tweet_id to remove one, and two folder endpoints. They need a user token (OAuth 2.0 with the bookmark scopes, or OAuth 1.0a user context). TwitterAPI.io offers POST /twitter/bookmarks_v2, bookmark_tweet_v2 and unbookmark_tweet_v2 for an account you log in with.
Can I get another user's bookmarks through the API?
No. Bookmarks are private to the account that saved them, and every bookmarks endpoint runs as that account. The official endpoint requires the id to be the authenticated user's own ID. What you can read about any public post is its bookmarkCount, the number of saves, which never says who saved it.
What scopes does the X bookmarks API need?
Reading needs bookmark.read, tweet.read and users.read on an OAuth 2.0 user token (Authorization Code with PKCE); the reference also accepts an OAuth 1.0a user token. Adding a bookmark needs bookmark.write. App-only bearer tokens are not accepted for the list, add and remove endpoints.
How much does the X API charge for bookmarks?
Per the docs.x.com rate card, reading your own bookmarks through your own developer app is an Owned Read at $0.001 per bookmark, general post reads are $0.005 each, and adding or removing a bookmark is $0.005 per request. On TwitterAPI.io, bookmarks_v2 is 15 credits per tweet returned ($0.15 per 1,000), and adding or removing is 60 credits ($0.0006) per successful call.
How many bookmarks can I read per request and per 15 minutes?
On the official API, max_results goes up to 100 per page and the list endpoint allows 180 requests per 15 minutes per user; adding and removing allow 50 per 15 minutes. On TwitterAPI.io, bookmarks_v2 returns 20 per page by default (count) and follows next_cursor; account rate limits on our side are 20 requests per second once you have paid, and X still applies its own limits to the logged-in account.
Can I read bookmark folders through the API?
On the official X API, yes: GET /2/users/:id/bookmarks/folders lists folders and GET /2/users/:id/bookmarks/folders/:folder_id returns the posts in one. The TwitterAPI.io bookmarks_v2 endpoint documents no folder parameter; it returns the account's bookmarks list.
Is the bookmark count on a tweet public?
Yes. Read endpoints return it as bookmarkCount next to likes and views, with no X login needed. In our sample of 1,029 organization posts it averaged 12.5 bookmarks per 100 likes, and only 1.6% of posts had zero. It is a count only; no endpoint lists the people behind it.
Is using bookmarks_v2 safe for my X account?
It acts as that account, so X's terms apply and X can rate-limit, lock or suspend the account if it objects to the activity. Reading your own list once at a normal pace is a light job. Keep login_cookies secret, since anyone holding it can act as the account, and expect to log in again when the session ends.
Continue
- X API docs: Bookmarks overview (five endpoints, bookmarks are private)
- X API reference: Get Bookmarks (scopes, max_results 1-100, pagination_token)
- X API docs: rate limits (bookmarks 180 / 15 min, manage 50 / 15 min)
- X API pricing: Owned Reads, Posts: Read, Bookmark write
- TwitterAPI.io reference: Get Bookmarks (bookmarks_v2)
- TwitterAPI.io: Post & Action V2 overview (login, cookies, prices)
- X (Twitter) API overview: endpoints, pricing and access
- X bookmarks + AI: export your saved posts and let a model sort them
- Can people see your Twitter bookmarks? What others see
- How to clear bookmarks on X: one post, all, or a folder
- Twitter (X) likes API: read, like and unlike
- Twitter (X) cookies: what auth_token and ct0 do
- Twitter (X) mute API: mute and unmute accounts
- TwitterAPI.io vs the official X API, side by side
- TwitterAPI.io pricing and free starter credits
- TwitterAPI.io API reference
- 01Gnip and Twitter (X) Data: PowerTrack, Decahose and What Replaced Them
- 02Twitter (X) and Puppeteer in 2026: What a Node.js Scraper Runs Into, and the API Route
- 03Twitter (X) with Playwright in 2026: What a Browser Script Gets, and the JSON Route in Python and Node
- 04TweeterPy for Twitter (X): which calls need a login, what breaks, and how to port it to REST
- 05Scweet: the Python Twitter (X) Scraper, and Its Searches as API Calls
- 06Can People See Your Twitter (X) Bookmarks? What Others See, and the One Public Number
- 07How to Clear Bookmarks on X (Twitter): One Post, All of Them, or a Folder
- 08X (Twitter) Bookmarks + AI: Export Them, Then Let a Model Sort and Search Them
Writing about something you built with TwitterAPI.io? Our community rewards program pays API credits for honest tutorials, build logs and videos.
Stop reading. Start building.
Starter credits cover real testing on real data. Google sign-in, no card, no application queue.
Get an API keyAlready building with TwitterAPI.io? Publish an honest tutorial or build log about it and earn up to $200 a month in API credits.