json.load
loads from a file-like object. You either want to use json.loads
:
json.loads(data)
Or just use json.load
on the request, which is a file-like object:
json.load(request)
Also, if you use the requests library, you can just do:
import requests
json = requests.get(url).json()