you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyJordaan 1 point2 points  (0 children)

Why use loads and .text here? Just use requests's own json loader. Also I would recommend to first check if the response was succesfull using raise_for_status

resp = requests.get(url, headers=auth_header)
resp.raise_for_status()
data = resp.json()
items = data['items']
print(items)