Python API
Practice with API
import requests
url = "https://nfl-schedule.p.rapidapi.com/v1/schedules"
headers = {
"X-RapidAPI-Key": "7d3a48cfe5msh3e8d80273f9e62ap1ac0b4jsn5db7034eaa7e",
"X-RapidAPI-Host": "nfl-schedule.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers)
print("NFL Scheduled games")
x = 0
while x <= 15:
print(response.json().get("data")[x].get("name"))
x += 1