import requests
# The last bit in the endpoint string points to the database it should query
endpoint = "https://api.notion.com/v1/databases/e51a1728e5494821a2ae9c625913846a"
# Replace the Authorization bearer token
headers = {"Authorization": "Bearer <REPLACE_ME>", "Notion-Version": "2021-08-16"}
# Get request that is transformed to a JSON
response = requests.get(endpoint, headers=headers).json()
print(response)
print(response['title'])