Skip to content

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 viewer

Fields in like.js

FieldWhat it means
tweetIdID of the liked post. Also encodes the date it was published.
fullTextText of the post, when it was still accessible at export time.
expandedUrlLink to the post on X, when accessible.

What the file looks like

The start of a real like.js, with made-up IDs and text. It is JSON with one line of JavaScript in front.

window.YTD.like.part0 = [
  {
    "like": {
      "tweetId": "1799412345678901234",
      "fullText": "The whole text of the post you liked...",
      "expandedUrl": "https://twitter.com/i/web/status/1799412345678901234"
    }
  }
]

Measured in a real archive

A real 19,244-like archive exported in April 2026, measured on 2026-10-18.

File size7.3 MB in a single like.js, about 378 bytes per like
First linewindow.YTD.like.part0 = [ ... ]
Fields per entrytweetId, fullText and expandedUrl only; tweetId and expandedUrl on every entry
No fullText at all33 likes (0.17%)
Text is only a t.co link453 likes (2.4%), mostly photo or video posts
Text cut off with an ellipsis1,095 likes (5.7%), median length 278 characters
Median text length218 characters; 26% are longer than 280
Publish date recoverable from the IDAll 19,244 (none older than November 2010)
expandedUrl ends in the post ID100%

What it is useful for

What to watch out for

Related files

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.