API
API
"""
Requests is a HTTP library for the Python programming language.
The goal of the project is to make HTTP requests simpler and more human-friendly.
"""
"""
RapidAPI is the world's largest API Marketplace.
Developers use Rapid API to discover and connect to thousands of APIs.
"""
import requests
url = "https://nfl-schedule.p.rapidapi.com/v1/schedules"
headers = {
"X-RapidAPI-Key": "71d411b83cmshb7b1cee17c5afa3p1c914ejsnde8d0527c7ad",
"X-RapidAPI-Host": "nfl-schedule.p.rapidapi.com"
}
response = requests.request("GET", url, headers=headers)
print(response.json())
for schedule in response.json().get('data'):
print(schedule['name'])
print()