What is like.js in your X archive?
like.js lists every post you have liked on X, going back to your first like. Each entry has the post's ID, its text and a link to it. It does not record who wrote the post or when you liked it.
Open your like.js without writing code
The free X Archive Viewer reads it straight from the ZIP in your browser and exports CSV or Markdown. Nothing is uploaded.
Open the viewerFields in like.js
| Field | What it means |
|---|---|
| tweetId | ID of the liked post. Also encodes the date it was published. |
| fullText | Text of the post, when it was still accessible at export time. |
| expandedUrl | Link to the post on X, when accessible. |
What it is useful for
- Finding a post you liked years ago that the Likes page no longer scrolls back to.
- A backup of what you liked that survives the author deleting their account.
- Exporting your likes to a spreadsheet, Notion or Obsidian.
What to watch out for
- No author handle and no liked-on date. The publish date can be decoded from the ID.
- Large archives split it into like-part0.js, like-part1.js and so on. Read them in order.
- A like on a photo-only post has empty text.
Related files
- bookmark.js : Your bookmarks
- tweets.js : Your own posts
- deleted-tweets.js : Recently deleted posts
Field names come from the README.txt X includes in every archive. X changes the archive from time to time, so check the README in your own download if something differs. See every file in the archive.