spoonacular API
The spoonacular Nutrition, Recipe, and Food API allows you to access over thousands of recipes, thousands of ingredients, 800,000 food products, over 100,000 menu items, and restaurants. Our food ontology and semantic recipe search engine makes it possible to search for recipes using natural language queries, such as "gluten free brownies without sugar" or "low fat vegan cupcakes." You can automatically calculate the nutritional information for any recipe, analyze recipe costs, visualize ingredient lists, find recipes for what's in your fridge, find recipes based on special diets, nutritional requirements, or favorite ingredients, classify recipes into types and cuisines, convert ingredient amounts, or even compute an entire meal plan. With our powerful API, you can create many kinds of food and especially nutrition apps.
Special diets/dietary requirements currently available include: vegan, vegetarian, pescetarian, gluten free, grain free, dairy free, high protein, whole 30, low sodium, low carb, Paleo, ketogenic, FODMAP, and Primal.
| Endpoint | Description |
|---|---|
| Get Meal Plan Template Get information about a meal plan template. | |
| Add Meal Plan Template Add a meal plan template for a user. | |
| Clear Meal Plan Day Delete all planned items from the user's meal plan for a specific day. | |
| Delete from Meal Plan Delete an item from the user's meal plan. | |
| Delete from Shopping List Delete an item from the current shopping list of the user. | |
| Delete Meal Plan Template Delete a meal plan template for a user. | |
| Talk to Chatbot This endpoint can be used to have a conversation about food with the spoonacular chatbot. Use the "Get Conversation Suggests" endpoint to show your user what he or she can… | |
| Conversation Suggests This endpoint returns suggestions for things the user can say or ask the chatbot. | |
| Search Custom Foods Search custom foods in a user's account. | |
| Image Analysis by URL Analyze a food image. The API tries to classify the image, guess the nutrition, and find a matching recipes. | |
| Image Classification by URL Classify a food image. | |
| Compute Ingredient Amount Compute the amount you need of a certain ingredient for a certain nutritional goal. For example, how much pineapple do you have to eat to get 10 grams of protein? | |
| Get Ingredient Information Use an ingredient id to get all available information about an ingredient, such as its image and supermarket aisle. | |
| Get Ingredient Substitutes by ID Search for substitutes for a given ingredient. | |
| Autocomplete Ingredient Search Autocomplete the entry of an ingredient. | |
| Ingredient Search Search for simple whole foods (e.g. fruits, vegetables, nuts, grains, meat, fish, dairy etc.). | |
| Get Ingredient Substitutes Search for substitutes for a given ingredient. | |
| Random Food Joke Get a random joke that is related to food. Caution: this is an endpoint for adults! | |
| Get Menu Item Information Use a menu item id to get all available information about a menu item, such as nutrition. | |
| Menu Item Nutrition Label Widget Visualize a menu item's nutritional label information as HTML including CSS. | |
| Menu Item Nutrition Label Image Visualize a menu item's nutritional label information as an image. | |
| Menu Item Nutrition by ID Widget Visualize a menu item's nutritional information as HTML including CSS. | |
| Menu Item Nutrition by ID Image Visualize a menu item's nutritional information as HTML including CSS. | |
| Search Menu Items Search over 115,000 menu items from over 800 fast food and chain restaurants. For example, McDonald's Big Mac or Starbucks Mocha. | |
| Autocomplete Menu Item Search Generate suggestions for menu items based on a (partial) query. The matches will be found by looking in the title only. | |
| Get Product Information Use a product id to get full information about a product, such as ingredients, nutrition, etc. The nutritional information is per serving. | |
| Product Nutrition Label Widget Get a product's nutrition label as an HTML widget. | |
| Product Nutrition Label Image Get a product's nutrition label as an image. | |
| Product Nutrition by ID Widget Visualize a product's nutritional information as HTML including CSS. | |
| Product Nutrition by ID Image Visualize a product's nutritional information as an image. | |
| Search Grocery Products Search packaged food products, such as frozen pizza or Greek yogurt. | |
| Autocomplete Product Search Generate suggestions for grocery products based on a (partial) query. The matches will be found by looking in the title only. | |
| Search Grocery Products by UPC Get information about a packaged food using its UPC. | |
| Get Comparable Products Find comparable products to the given one. | |
| Search Restaurants Search through thousands of restaurants (in North America) by location, cuisine, budget, and more. | |
| Search All Food Search all food content with one call. That includes recipes, grocery products, menu items, simple foods (ingredients), and food videos. | |
| Search Site Content Search spoonacular's site content. You'll be able to find everything that you could also find using the search suggestions on spoonacular.com. This is a suggest API so you can… | |
| Random Food Trivia Returns random food trivia. | |
| Search Food Videos Find recipe and other food related videos. | |
| Wine Description Get a simple description of a certain wine, e.g. "malbec", "riesling", or "merlot". | |
| Dish Pairing for Wine Find a dish that goes well with a given wine. | |
| Wine Pairing Find a wine that goes well with a food. Food can be a dish name ("steak"), an ingredient name ("salmon"), or a cuisine ("italian"). | |
| Wine Recommendation Get a specific wine recommendation (concrete product) for a given wine type, e.g. "merlot". | |
| Get Shopping List Get the current shopping list for the given user. | |
| Get Meal Plan Templates Get meal plan templates from user or public ones. | |
| Get Meal Plan Week Retrieve a meal planned week for the given user. The username must be a spoonacular user and the hash must the the user's hash that can be found in his/her account. | |
| Generate Meal Plan Generate a meal plan with three meals per day (breakfast, lunch, and dinner). | |
| Get Analyzed Recipe Instructions Get an analyzed breakdown of a recipe's instructions. Each step is enriched with the ingredients and equipment required. | |
| Create Recipe Card Generate a recipe card for a recipe. | |
| Equipment by ID Widget Visualize a recipe's equipment list. | |
| Equipment by ID Get a recipe's equipment list. | |
| Equipment by ID Image Visualize a recipe's equipment list as an image. | |
| Get Recipe Information Use a recipe id to get full information about a recipe, such as ingredients, nutrition, diet and allergen information, etc. | |
| Ingredients by ID Widget Visualize a recipe's ingredient list. | |
| Ingredients by ID Get a recipe's ingredient list. | |
| Ingredients by ID Image Visualize a recipe's ingredient list. | |
| Recipe Nutrition Label Widget Get a recipe's nutrition label as an HTML widget. | |
| Recipe Nutrition Label Image Get a recipe's nutrition label as an image. | |
| Recipe Nutrition by ID Widget Visualize a recipe's nutritional information as HTML including CSS. | |
| Nutrition by ID Get a recipe's nutrition data. | |
| Recipe Nutrition by ID Image Visualize a recipe's nutritional information as an image. | |
| Price Breakdown by ID Widget Visualize a recipe's price breakdown. | |
| Price Breakdown by ID Get a recipe's price breakdown data. | |
| Price Breakdown by ID Image Visualize a recipe's price breakdown. | |
| Get Similar Recipes Find recipes which are similar to the given one. | |
| Summarize Recipe Automatically generate a short description that summarizes key information about the recipe. | |
| Recipe Taste by ID Widget Get a recipe's taste. The tastes supported are sweet, salty, sour, bitter, savory, and fatty. | |
| Taste by ID Get a recipe's taste. The tastes supported are sweet, salty, sour, bitter, savory, and fatty. | |
| Recipe Taste by ID Image Get a recipe's taste as an image. The tastes supported are sweet, salty, sour, bitter, savory, and fatty. | |
| Autocomplete Recipe Search Autocomplete a partial input to suggest possible recipe names. | |
| Search Recipes Search through hundreds of thousands of recipes using advanced filtering and ranking. NOTE: This method combines searching by query, by ingredients, and by nutrients into one endpoint. | |
| Convert Amounts Convert amounts like "2 cups of flour to grams". | |
| Extract Recipe from Website This endpoint lets you extract recipe data such as title, ingredients, and instructions from any properly formatted Website. | |
| Search Recipes by Ingredients Ever wondered what recipes you can cook with the ingredients you have in your fridge or pantry? This endpoint lets you find recipes that either maximize the usage of… | |
| Search Recipes by Nutrients Find a set of recipes that adhere to the given nutritional limits. You may set limits for macronutrients (calories, protein, fat, and carbohydrate) and/or many… | |
| Guess Nutrition by Dish Name Estimate the macronutrients of a dish based on its title. | |
| Get Recipe Information Bulk Get information about multiple recipes at once. This is equivalent to calling the Get Recipe Information endpoint multiple times, but faster. | |
| Analyze a Recipe Search Query Parse a recipe search query to find out its intention. | |
| Quick Answer Answer a nutrition related natural language question. | |
| Get Random Recipes Find random (popular) recipes. If you need to filter recipes by diet, nutrition etc. you might want to consider using the complex recipe search endpoint and set the sort request… | |
| Detect Food in Text Take any text and find all mentions of food contained within it. This task is also called Named Entity Recognition (NER). In this case, the entities are foods. Either dishes, such… | |
| Compute Glycemic Load Retrieve the glycemic index for a list of ingredients and compute the individual and total glycemic load. | |
| Map Ingredients to Grocery Products Map a set of ingredients to products you can buy in the grocery store. | |
| Classify Grocery Product This endpoint allows you to match a packaged food to a basic category, e.g. a specific brand of milk to the category milk. | |
| Classify Grocery Product Bulk Provide a set of product jsons, get back classified products. | |
| Add to Meal Plan Add an item to the user's meal plan. | |
| Generate Shopping List Generate the shopping list for a user from the meal planner in a given time frame. | |
| Add to Shopping List Add an item to the current shopping list of a user. | |
| Analyze Recipe This endpoint allows you to send raw recipe information, such as title, servings, and ingredients, to then see what we compute (badges, diets, nutrition, and more). This is useful if… | |
| Analyze Recipe Instructions This endpoint allows you to break down instructions into atomic steps. Furthermore, each step will contain the ingredients and equipment required. Additionally, all… | |
| Classify Cuisine Classify the recipe's cuisine. | |
| Parse Ingredients Extract an ingredient from plain text. | |
| Equipment Widget Visualize the equipment used to make a recipe. | |
| Ingredients Widget Visualize ingredients of a recipe. You can play around with that endpoint! | |
| Recipe Nutrition Widget Visualize a recipe's nutritional information as HTML including CSS. | |
| Price Breakdown Widget Visualize the price breakdown of a recipe. | |
| Create Recipe Card Generate a recipe card for a recipe. | |
| Recipe Taste Widget Visualize a recipe's taste information as HTML including CSS. You can play around with that endpoint! | |
| Connect User In order to call user-specific endpoints, you need to connect your app's users to spoonacular users. |
