Skip to content

What is direct-messages.js in your X archive?

direct-messages.js holds your one-to-one direct message conversations. Each message has its text, sender and recipient account IDs, when it was sent, any reactions, and links to attached media. Group chats are in a separate file.

How to open it

It is a text file in the archive’s data folder. Open it in any text editor; delete the first line’s window.YTD... = prefix and the rest is plain JSON any JSON tool can read. Our free viewer does not read this file yet; it covers likes, bookmarks and your own posts.

Fields in direct-messages.js

FieldWhat it means
idID of the message.
senderIdAccount ID of the sender.
recipientIdAccount ID of the recipient.
textText of the message.
createdAtWhen the message was sent.
mediaUrlsLinks to attached photos, videos or GIFs.
urlsDetails of links shared in the message.
reactionKeyType of reaction, such as a heart or laugh.
reactionSenderIDAccount that reacted.
reactionCreatedAtWhen the reaction was added.

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.