How to find if a stream is live using Python?

Changed data to headers. As you can see above I just misspelled Client-ID like a true Pepega. Posting my code below to help anyone else who wants to see how to do this in python. Again thank you so much to everyone who helped!!!

import requests

API_ENDPOINT = ‘https://api.twitch.tv/helix/streams?user_login=Channel_Name_Here

#example Client_ID put yours here
Client_ID = ‘z3n1vw72139876szfjjd5xqs527n0u’

#data to be sent to api
head = {
‘Client-ID’ : Client_ID
}
#api call here
r = requests.get(url = API_ENDPOINT, headers = head)

#data output
print(r.text)