import requests

url = "https://numbersapi.p.rapidapi.com/1492/year"

querystring = {"fragment":"true","json":"true"}

headers = {
	"X-RapidAPI-Key": "eb379b3b88mshac0018f5fdc3d2dp1b766fjsn91c096d37f4e",
	"X-RapidAPI-Host": "numbersapi.p.rapidapi.com"
}

response = requests.request("GET", url, headers=headers, params=querystring)



dict= response.json()
print(dict)

for k,v in dict.items():
    print(k,v)
{'date': 'January 6', 'text': 'Ferdinand and Isabella enter into Granada', 'number': 1492, 'found': True, 'type': 'year'}
date January 6
text Ferdinand and Isabella enter into Granada
number 1492
found True
type year