Google Takeout writes your YouTube watch history as one record per event: a JSON array in watch-history.json if you switch the format, an HTML page if you keep the default. Both carry the same fields. The field names below are Google's own, from its published schema for My Activity records. What each field holds comes from a real export we counted in November 2026: 22,812 entries from an account set to Portuguese, read field by field. Where that export had no example of something, this page says so instead of guessing.
The fields of an entry
Each entry is a flat object. Google's schema says the fields vary by service and action, so not every entry has every field. These are the ones a YouTube history entry carries, with what we found in each.
- header — the product: 'YouTube', or 'YouTube Music' for what you played there (2,733 of the 22,812 entries).
- title — a verb, then the title. 'Watched' and the video title for a view (22,422 entries), 'Viewed' for a community post you opened (389), and one 'Used Shorts creation tools'. The verb was in English although the account was set to Portuguese. The HTML export follows it with a no-break space, so a parser that strips 'Watched ' with an ordinary space misses it.
- titleUrl — the link in the title: https://www.youtube.com/watch?v=VIDEO_ID, music.youtube.com for YouTube Music, or a /post/ link for a community post. There is no separate video ID field.
- subtitles — the channel, as a name and a URL. It is not always there: 328 views of videos that are still online had no channel, and neither did any ad.
- time — when it happened. In JSON this is an ISO 8601 timestamp; the example in Google's schema is 2023-08-23T03:49:28.734Z, in UTC. In HTML it is a date in the account's language with a time-zone abbreviation, such as '16 de nov. de 2026, 20:55:06 BRT'.
- products — 'YouTube' on every entry we counted, the YouTube Music ones included.
- details — only on ads, reading 'From Google Ads': 103 entries. That is the marker to drop ads by, and Google's schema gives the same text as its YouTube example.
- activityControls — the account setting that saved the entry. It read 'YouTube watch history' on all 22,812, community posts included, with 'Web & App Activity' added on the ads. It tells you which setting recorded something, not that a video was watched.
Sources: Google for Developers, Data Portability API: My Activity schema reference
Entries without a channel, and removed videos
A missing channel is more common than removed videos would explain. In the export we counted, 328 views kept a working video link and a title but had no channel attached, and every ad lacked one too.
A video taken down after you watched it can lose its link as well. The export we counted had no such entry, so we cannot show what one looks like. Our analyzer counts any entry that begins 'Watched', link or not, and files every view without a channel under 'Unknown channel'. The totals stay whole, and the top-channels list ranks only what is attributed.
What the export does not contain
The history is a log of events, not of engagement. Each entry is a verb, a title, a link, a channel, a time and the setting that saved it, and nothing more.
There is no watch duration and no video length, so how long you watched cannot be derived either. Any tool that shows 'total hours watched' from a Takeout export is multiplying your view count by an assumed average length. That is an estimate wearing the costume of a measurement, and it can be wrong by an order of magnitude if you watch a lot of Shorts or a lot of long-form video.
There is no device and no location on these entries. Comments, subscriptions and playlists come as separate CSV files in other folders of the same YouTube export, not in the history.
Reading timestamps correctly
The JSON time field carries its own zone, so there is one way to read it. The HTML date carries only an abbreviation such as BRT, in the account's language, so a parser has to know that language's month names and decide which zone the abbreviation means.
Our analyzer reads English and Portuguese HTML dates as your browser's local time. That is right when the abbreviation is your browser's zone, as it was in the export we counted: BRT dates, read in a browser set to São Paulo time. Dates in other languages may not be read at all, and an entry whose date cannot be read is left out. JSON avoids both problems.
The analyzer places every view in your browser's time zone as it is today, whichever format you load. Viewing done during a month abroad therefore lands at shifted hours.
Where the file sits in the archive
Inside the Takeout archive, the history is in the 'YouTube and YouTube Music' folder, in a 'history' subfolder, as watch-history.json if you chose JSON. The names follow the account's language: the Portuguese export we counted had 'YouTube e YouTube Music/histórico/histórico-de-visualização.html'.
You do not have to go looking for it. Our analyzer accepts the .zip or .tgz straight from Takeout and finds the history inside by its name and its contents. It found that Portuguese file inside a 41 MB archive, next to uploaded videos and CSV files. The archive is opened in your browser, so nothing is uploaded.
Getting a video ID out of titleUrl
There is no id field, so the video ID comes out of titleUrl. In the export we counted, all 22,422 watch links carried a single parameter, v, so splitting on 'v=' would have worked there.
Parse it as a URL anyway: new URL(entry.titleUrl).searchParams.get('v'). It costs nothing and keeps working if a link ever arrives with a second parameter, as links copied out of a playlist or the mobile app do. A distinct count on that ID is the number of different videos you saw, lower than the view count by every rewatch.
Sanity checks before you trust any analysis
Before reading conclusions off a chart, spend thirty seconds confirming the file is what you think it is.
Check the size. Watch history is text only: the HTML history we counted took 24 MB for 22,812 entries, about 1 KB each. A file of a few kilobytes means the export did not include your history. An archive of hundreds of megabytes means you exported far more than history, such as your uploaded videos.
Check the date range against your memory. If the earliest entry is far more recent than when you started using the account, something trimmed the start, often an auto-delete setting on your watch history.
Check the share without a channel. Some is normal: about 1.5% of views in the export we counted. If nearly everything lands under 'Unknown channel', suspect the parsing before the data.
How a history file is recognised inside an archive
You can hand our analyzer the whole Takeout archive rather than hunting for the right file, because it scores every candidate it finds and takes the best one rather than trusting a fixed path. An account set to another language gets translated folder and file names, as the Portuguese export we counted did.
The scoring is weighted toward filename first: watch-history.json scores highest, watch-history.html slightly lower, and a combined MyActivity.json lower again but still eligible. Path hints add to the score when the route contains 'youtube', 'history', or 'takeout'.
Content is then checked as a tiebreak. A file whose opening bytes mention 'youtube watch history' gains a large bonus, and one containing 'watched ' or the content-cell class used by the HTML export gains a smaller one. The result is that a correctly named file in an unexpected folder still wins, and a plausible-looking file with the wrong contents loses.