Twitch Video Data Fetcher Bookmarklet
To install, drag this link to your bookmarks bar or folder: Twitch Video Data Fetcher
Synopsis
Bookmarklet that presents a UI on top of the Twitch Video Producer page to retrieve data for videos en masse.Walkthrough
- Go to the Twitch Video Producer
- Click the bookmarklet to open the UI
- Optionally specify a minimum date to limit video data retrieval:
- If you've already run this and have data stored, find the
publishedAt
value for the most recent video and paste its value into the text box - Otherwise type a date in YYYY-MM-DD format into the text box
- If you've already run this and have data stored, find the
- Specify which types of videos you're interested in
- Click on "Get data"
- Clicking the button should disable it while it runs; if nothing happens, check your date format
- After "Get Data" completes, the "Copy data" button will become enabled for
retrieving data
- "Copy data" will copy the JSON data twitch returned (with a few fields pruned) to the clipboard so you can paste and save it
A few notes on the data returned:
game
may be absent if no game was set on the stream, or if the game is no longer listed on TwitchdeletedAt
will contain a future date for past broadcasts, indicating when they expire- If you have any videos processing at the time you run the bookmarklet, those
videos will have a
lengthSeconds
of0
and astatus
of"UNPROCESSED"
- The bookmarklet excludes
muteInfo
(related to muted segments of the video) andthumbnailURLs
(which contains both the autogenerated and any custom thumbnail URL;previewThumbnailURL
already reflects the selected one, with placeholders for width and height)
How does this work?
- Uses the same GraphQL operation used by the video producer list for retrieving its data
- Changes the page filter in order to pick up headers needed to make the requests
- Does not send data anywhere other than Twitch's GraphQL endpoint
Changelog
Version 1.0 (May 1, 2022)
- First release