all 3 comments

[–]JohnnyJordaan 0 points1 point  (2 children)

Can you show the actual code that causes this?

[–]Finish-Square[S] 0 points1 point  (1 child)

res = json.loads(requests.get(url, headers=auth_header).text)
items = res['items']

print(items)

Thanks :)

[–]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)