Seefood_Know_Your_Receipe / FetchRecipe.py
winwithakash's picture
commit
8add151
raw
history blame contribute delete
397 Bytes
import requests
import json
url = "https://rapidapi.com/spoonacular/api/recipe-food-nutrition"
querystring = {"q":"chicken soup"}
headers = {
'x-rapidapi-host': "rapidapi.com/spoonacular/api/",
'x-rapidapi-key': "1f9b61c859214d3ab6a00a6d82ec5a85"
}
response = requests.request("GET", url, headers=headers, params=querystring)
json_data = json.loads(response.text)
print(json_data)