import requests response = requests.get('<api-endpoint>') response.raise_for_status() data = response.json() print(data)