What is tweets.js in your X archive?
tweets.js (tweet.js in older archives) holds every post, reply and repost you made that has not been deleted. Each entry is a full post object with its text, creation date, like and repost counts, and reply and link details.
Open your tweets.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 tweets.js
| Field | What it means |
|---|---|
| id_str | ID of your post. |
| full_text | Text of the post. |
| created_at | When you posted it, in the form "Wed Oct 10 20:19:24 +0000 2018". |
| favorite_count | Likes the post had at export time. |
| retweet_count | Reposts the post had at export time. |
| edit_info | For edited posts: the initial post ID and the IDs of each edit. |
The README points to X's API documentation for the full post object; these are the fields most people need. Each entry is wrapped as { "tweet": { ... } }.
What it is useful for
- Searching everything you ever posted, which X's own search does poorly.
- Finding your most liked posts, or exporting them for a book, newsletter or portfolio.
- Choosing old posts to delete in bulk.
What to watch out for
- Counts are a snapshot from the day you requested the archive.
- Up to five edits of one post share an initial ID; tools that ignore edit_info show duplicates.
- Posts made inside Communities are listed in a separate Community file, not here.
Related files
- tweet-headers.js : Post index
- deleted-tweets.js : Recently deleted posts
- like.js : Your likes
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.