import requests import json r = requests.get("URL") j=r.json() print(j)
response = requests.get("https://api.open-notify.org/this-api-doesnt-exist")