How to find if a stream is live using Python?

Just a clarification, user_id is just twitch username correct?

edit: What is the difference between user_login and user_id

edit pt.2: Frustrated again getting error 404 not found with following code:

import requests

API_ENDPOINT = ‘https://api.twitch.tv/helix/streams?user_id=scarra

Client_ID = ‘my id removed here’

#data to be sent ot api
data = {
‘Cleint-ID’ : Client_ID
}
r = requests.post(url = API_ENDPOINT, data = data)

print(r.text)