For questions regarding the Spoonacular API. This food and nutrition database includes menu items from restaurant chains, packaged foods, raw ingredients, and recipes.
Questions tagged [spoonacular]
17 questions
1
vote
1 answer
Image display React API without URL
I have watched dozens of youtube videos, but do not come across my problem.
In React, I want to show a picture from the spoonacular API of which I only get the "name.png" in the console (i.e. not the full url).
At…

Danielle van den Akker
- 283
- 1
- 3
- 11
1
vote
1 answer
How to access spoonacular API with Python?
I tried to download the Software Development Kit for python on the Web Site but I don't know to access the folders content. The documentation isn't very helpful.
I tried to clone the github repository like this: How to install spoonacular python…

Carol Vieira
- 17
- 3
1
vote
0 answers
How to make a simple API call with Spoonacular
I'm trying to render results on a webpage for a simple ingredient search with the Spoonacular API. I want to hard code the ingredients in the call, as seen in the URL below. I do have an API key and see the results when I put the below URL in the…

Chrissy
- 11
- 1
1
vote
1 answer
Spoonacular API integration with Python
def getRecipeByIngredients():
payload = {
'fillIngredients': False,
'ingredients': ingredients,
'limitLicense': False,
'number': 5,
'ranking': 1
}
api_key = os.environ['api_key']
endpoint =…

cottonblueskies
- 11
- 3
0
votes
1 answer
Jetpack Compose - Receiving response from API call, but cannot store the data
I'm building an Android recipe app, using the Spoonacular API. (I'm quite new to jetpack compose)
The issue is, the value stored inside of _randomRecipeResult in the viewModel is supposed to be the Json object I believe, or well, it's definitely not…

Bartek
- 3
- 3
0
votes
0 answers
My recycler view that is retrieving data from Spoonacular Api is not displaying the data despite there being no errors
I am using remote date access to retrieve data which I have bind with my layout and created a recipe adapter but the data being retrieved is not displayed in my recycler view.
I tried data binding ,I tried converting the data from the Api from Json…
0
votes
2 answers
How to make multiple function calls in one React component
I need to make two separate api calls in the same react component. However, I'm having trouble getting information when I try to use it in my HTML. Specifically the similar data in this code.
function Info() {
let params = useParams();
const…

Some Kid
- 3
- 2
0
votes
3 answers
Maping wont render in browser react
Im trying to make a recipe website in react you have the code below i solved one error by adding the ? where the mapping is but nothing shows on the browser and if i remove the ? i get this error:
Cannot read properties of undefined (reading…

raul atofanei
- 9
- 1
0
votes
1 answer
How to use the data from get request in a post request?
I’m kind of new to APIs and currently working on a project using the Spoonacular API. Im trying to build a meal planner website. At the moment, I’m working on the “Add To Meal Plan” feature which is a post method. To get the information for the post…

Insertusernamex
- 3
- 2
0
votes
1 answer
API Requests for Multiple Forms Returns 400 Error on Python Flask
I'm building a recipes website that collects data from Spoonacular's API.
The user can search by Recipe, by Ingredients or by Nutrients.
findByIngredients = "recipes/findByIngredients"
findByRecipe = "recipes/complexSearch"
findByNutrients =…

mdeotti
- 101
- 2
- 10
0
votes
1 answer
nothing is displaying from API
Im trying to pull recipe data down from the spoonacular API but nothing is coming down. I had it working when getting the calories query but now ive added another query to the API that a user can input but nothing is displayed. here is my javascript…

aidan
- 11
0
votes
1 answer
Difficulty understanding API structure
I'm working on a project where I'm pulling data from an API. I understood the API's structure for an earlier call, but this one is a bit different and is giving me trouble.
Here's an example of what the API call result looks like:
[1]:…

cassilly
- 29
- 4
0
votes
2 answers
Handling images with Typescript - NextJS
I have a simple site that fetches data from Spoonacular API and searches for ingredients, the response comes with a title and image. I have declared the types as:
export interface IProps {
id: number;
name: string;
image: string;
}
So…

Guillermina Martinez
- 107
- 1
- 2
- 12
0
votes
1 answer
How to install spoonacular python package
I'm trying to use the spoonacular python API found here https://github.com/ddsky/spoonacular-api-clients/tree/master/python
However, I can't seem to figure out how to install it in a virtualenv. I'm used to installing packages using pip. So when…

calgarycoder
- 3
- 2
-1
votes
1 answer
Discord Bot that generates random food recipe's using Spoonacular api
I am trying to make a discord bot in Nextcord Python that will generate a random recipe using a $randomrecipe command.
I tried making it so that it would send a title of a dish (and also the image and ingredients) but I cant get it to…

Naviamold
- 3
- 4