Hello,
I’m trying to use the streams endpoint to get multiple stream information using only one request. According to documentation I can specify up to 100 ids in my request.
I’m using python with requests lib:
url = ‘https://api.twitch.tv/helix/streams’
headers = {‘Client-ID’: client_id’, ‘Authorization’:'Bearer '+access_token}
payload = {‘user_id’:‘user1’,‘user_id’:‘user2’…}
r = requests.get(url,params=payload, headers=headers)
Using the above code the endpoint returns only one result, corresponding to the last user_id specified in payload param, During my testing I made sure to request user ids of live streams
What’s the correct syntax to get mutliple results ?
Thank You