Usually so dos API give back
json
,so should not use text
.response = requests.request("GET", url, headers=headers, params=querystring) json_data = response.json() print(json_data)So what you should get back here is Python dictionary,as Requests has build in encoding and decoding for
json
.