Spaces:
Runtime error
Runtime error
File size: 397 Bytes
8add151 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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) |