David Cary
0
Q:

python api tutorial

import requests
import json

r = requests.get("URL")
j=r.json()
print(j)
9
# Make a get request to get the latest position of the international space station from the opennotify api.
response = requests.get("http://api.open-notify.org/iss-now.json")
# Print the status code of the response.
print(response.status_code)
4

New to Communities?

Join the community