Engagement
Twitter bookmark folders API & saved tweet export
List Twitter bookmark folders by ID and name. Export each folder’s saved tweets with authors, replies, likes, reposts, views, media & cursor checkpoints.
- 200
- 401
- 402
- 424
- 429
- 502
GET
Twitter bookmark folders API & saved tweet export
List Twitter bookmark folders for one connected account. Each row contains a
folder ID and name for a saved tweet export. X documents bookmark folders as
private, authenticated-user content.
1 credit per call · All plans from $0.00012/credit
Requires a connected X account. Use folder IDs from this response with
GET /x/bookmarks?folderId=... to read tweets saved inside a folder.folderRows or folder_rows.
Then pass folder_id into GET /x/bookmarks?folderId=....
Direct bookmark folder handoff
UseGET /x/bookmarks/folders for an authenticated X account. It serves a
saved-tweet workflow, CRM enrichment job, research queue, or agent.
Store folder_id and folder_name with the connected account ID.
The route returns one folder page. has_next_page stays false, and
next_cursor stays empty. Use each folder ID with
Bookmarks to fetch its saved tweets.
Twitter bookmark folder workflow
1. Discover existing folders
Call the route with the connected account’s Xquik API key. It lists that account’s private folders. It cannot create, rename, move, or delete folders. An emptyfolders array means the account returned no folders.
2. Build a folder index
Usefolder_id as the stable join key. Folder names can change or repeat.
Protect folder names like saved tweets. Exclude them from public logs, URLs,
and shared filenames.
3. Export saved tweets by folder
Pass each folder ID toGET /x/bookmarks?folderId=.... Saved tweet rows can
include text, authors, likes, replies, reposts, views, media, and cursors. Write
the folder ID beside every row to preserve folder membership.
4. Resume and audit the export
The folder list has no next page. The bookmarked-tweet route paginates per folder. Store itsnext_cursor, collection time, and connected account ID.
Export Twitter bookmark folders
Treat every folder list as an account-specific snapshot. Compare folder IDs with the preceding snapshot. Match renamed folders by ID. A missing ID only means the current snapshot omitted it. Keep prior exports until verification.Store one checkpoint per folder
Store the folder ID, bookmark cursor, completion state, and collection time. Retry only the incomplete folder after424, 429, or 502 responses.
Upsert rows by account, folder, and tweet IDs. Save every row before advancing
the cursor.
Define folder export records
Storeaccount_id, folder_id, and folder_name beside each saved tweet.
Preserve tweet, author, engagement, media, and timestamp fields. Store
source_cursor beside each page. Validate IDs before exporting to a
spreadsheet, CRM, research queue, or storage system.
Twitter bookmark folder questions
Do Twitter bookmarks have folders?
Yes. This endpoint lists the named folders visible to the connected account.Can this API create or rename bookmark folders?
No. This route only reads folder IDs and names.Can I access folders from mobile and desktop?
Yes. The endpoint works independently of the device. It returns folders available to the connected account.How do I back up Twitter bookmark folders?
Save the folder index as JSON Lines or CSV. Export each folder’s saved tweets. Join both files byfolder_id. Include the account ID and collection time.
What errors can stop a folder export?
A401 response means the key cannot access the connected account. A 402
response requires more credits. Respect retry guidance in a 429 response.
Retry temporary 424 or 502 read failures later.
Headers
string
required
Your API key. Session cookie authentication is also supported.
Response
200 OK
object[]
boolean
Always
false for the current bookmark folder route.string
Always an empty string for the current bookmark folder route.
- 200
- 401
- 402
- 424
- 429
- 502
Twitter bookmark folders API & saved tweet export