ChatGPT Basics: Download Your ChatGPT Data Archive
In this shortcut, we’ll download a JSON and HTML archive from OpenAI that contains all of our chat history. Once we have the file, we can query it with jq or load it into our own applications.
The first step is requesting an archive link to be emailed to you. Start by navigating to the settings in your OpenAI account, and then select “Data controls.” Click “Export data” and “Confirm export”—in a few minutes, the download will arrive in your inbox.
Figure 1. Export data from OpenAI Settings Data controls
When your download arrives, unzip it, and you’ll see something like this:
Figure 2. Downloaded OpenAI ChatGPT data export
Now you can query your complete chat history, write apps that use it, or share it with your colleagues. The first file is chat.html, which contains a readable history of all your chats as a single large file.
Figure 3. Downloaded ChatGPT HTML chat archive
The format is bare-bones, but a great start if you are using ChatGPT output in a writing project.
Use jq to Query your ChatGPT Archive
The next file is conversations.json, which contains ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access