Skip to content

Instantly share code, notes, and snippets.

@FloPinguin
Created January 27, 2020 16:57
Show Gist options
  • Select an option

  • Save FloPinguin/3d75f4c22834df793a9a8c12e0b341e0 to your computer and use it in GitHub Desktop.

Select an option

Save FloPinguin/3d75f4c22834df793a9a8c12e0b341e0 to your computer and use it in GitHub Desktop.
This python script will output the past broadcasts vod ids of a specific user (Using the new Twitch API v5). You need to replace USERID with an actual user id. To obtain the user id of a streamer, an api call to a specific vod will help: https://api.twitch.tv/helix/videos?id=VODID. The response will include a user_id. CLIENTID also needs to be r…
import requests
import json
r = requests.get("https://api.twitch.tv/helix/videos?user_id=USERID&type=archive", headers={"Client-ID":"CLIENTID"})
j = json.loads(r.text)
for vod in j['data']:
print(vod['id'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment