Skip to content

Spoonacular API

by spoonacular.com

API keyHTTPSFood & Drink
Open documentation ↗

Overview

Recipes, Food Products, and Meal Planning

Spoonacular is a food & drink API from spoonacular.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 99 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Category
Food & Drink
Base URL
https://api.spoonacular.com
Version
1.1
Endpoints
99
Spec updated
2023-03-06

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.spoonacular.com/food/converse" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("https://api.spoonacular.com/food/converse", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.spoonacular.com/food/converse",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/food/converseTalk to Chatbot
GET/food/converse/suggestConversation Suggests
GET/food/customFoods/searchSearch Custom Foods
POST/food/detectDetect Food in Text
GET/food/images/analyzeImage Analysis by URL
GET/food/images/classifyImage Classification by URL
GET/food/ingredients/autocompleteAutocomplete Ingredient Search
POST/food/ingredients/glycemicLoadCompute Glycemic Load
POST/food/ingredients/mapMap Ingredients to Grocery Products
GET/food/ingredients/searchIngredient Search
GET/food/ingredients/substitutesGet Ingredient Substitutes
GET/food/ingredients/{id}/amountCompute Ingredient Amount
GET/food/ingredients/{id}/informationGet Ingredient Information
GET/food/ingredients/{id}/substitutesGet Ingredient Substitutes by ID
GET/food/jokes/randomRandom Food Joke
GET/food/menuItems/searchSearch Menu Items
GET/food/menuItems/suggestAutocomplete Menu Item Search
GET/food/menuItems/{id}Get Menu Item Information
GET/food/menuItems/{id}/nutritionLabelMenu Item Nutrition Label Widget
GET/food/menuItems/{id}/nutritionLabel.pngMenu Item Nutrition Label Image
GET/food/menuItems/{id}/nutritionWidgetMenu Item Nutrition by ID Widget
GET/food/menuItems/{id}/nutritionWidget.pngMenu Item Nutrition by ID Image
POST/food/products/classifyClassify Grocery Product
POST/food/products/classifyBatchClassify Grocery Product Bulk
GET/food/products/searchSearch Grocery Products
GET/food/products/suggestAutocomplete Product Search
GET/food/products/upc/{upc}Search Grocery Products by UPC
GET/food/products/upc/{upc}/comparableGet Comparable Products
GET/food/products/{id}Get Product Information
GET/food/products/{id}/nutritionLabelProduct Nutrition Label Widget
GET/food/products/{id}/nutritionLabel.pngProduct Nutrition Label Image
GET/food/products/{id}/nutritionWidgetProduct Nutrition by ID Widget
GET/food/products/{id}/nutritionWidget.pngProduct Nutrition by ID Image
GET/food/restaurants/searchSearch Restaurants
GET/food/searchSearch All Food
GET/food/site/searchSearch Site Content
GET/food/trivia/randomRandom Food Trivia
GET/food/videos/searchSearch Food Videos
GET/food/wine/descriptionWine Description
GET/food/wine/dishesDish Pairing for Wine
GET/food/wine/pairingWine Pairing
GET/food/wine/recommendationWine Recommendation
GET/mealplanner/generateGenerate Meal Plan
DELETE/mealplanner/{username}/day/{date}Clear Meal Plan Day
POST/mealplanner/{username}/itemsAdd to Meal Plan
DELETE/mealplanner/{username}/items/{id}Delete from Meal Plan
GET/mealplanner/{username}/shopping-listGet Shopping List
POST/mealplanner/{username}/shopping-list/itemsAdd to Shopping List
DELETE/mealplanner/{username}/shopping-list/items/{id}Delete from Shopping List
POST/mealplanner/{username}/shopping-list/{start-date}/{end-date}Generate Shopping List
GET/mealplanner/{username}/templatesGet Meal Plan Templates
POST/mealplanner/{username}/templatesAdd Meal Plan Template
GET/mealplanner/{username}/templates/{id}Get Meal Plan Template
DELETE/mealplanner/{username}/templates/{id}Delete Meal Plan Template
GET/mealplanner/{username}/week/{start-date}Get Meal Plan Week
POST/recipes/analyzeAnalyze Recipe
POST/recipes/analyzeInstructionsAnalyze Recipe Instructions
GET/recipes/autocompleteAutocomplete Recipe Search
GET/recipes/complexSearchSearch Recipes
GET/recipes/convertConvert Amounts
POST/recipes/cuisineClassify Cuisine
GET/recipes/extractExtract Recipe from Website
GET/recipes/findByIngredientsSearch Recipes by Ingredients
GET/recipes/findByNutrientsSearch Recipes by Nutrients
GET/recipes/guessNutritionGuess Nutrition by Dish Name
GET/recipes/informationBulkGet Recipe Information Bulk
POST/recipes/parseIngredientsParse Ingredients
GET/recipes/queries/analyzeAnalyze a Recipe Search Query
GET/recipes/quickAnswerQuick Answer
GET/recipes/randomGet Random Recipes
POST/recipes/visualizeEquipmentEquipment Widget
POST/recipes/visualizeIngredientsIngredients Widget
POST/recipes/visualizeNutritionRecipe Nutrition Widget
POST/recipes/visualizePriceEstimatorPrice Breakdown Widget
POST/recipes/visualizeRecipeCreate Recipe Card
POST/recipes/visualizeTasteRecipe Taste Widget
GET/recipes/{id}/analyzedInstructionsGet Analyzed Recipe Instructions
GET/recipes/{id}/cardCreate Recipe Card
GET/recipes/{id}/equipmentWidgetEquipment by ID Widget
GET/recipes/{id}/equipmentWidget.jsonEquipment by ID
GET/recipes/{id}/equipmentWidget.pngEquipment by ID Image
GET/recipes/{id}/informationGet Recipe Information
GET/recipes/{id}/ingredientWidgetIngredients by ID Widget
GET/recipes/{id}/ingredientWidget.jsonIngredients by ID
GET/recipes/{id}/ingredientWidget.pngIngredients by ID Image
GET/recipes/{id}/nutritionLabelRecipe Nutrition Label Widget
GET/recipes/{id}/nutritionLabel.pngRecipe Nutrition Label Image
GET/recipes/{id}/nutritionWidgetRecipe Nutrition by ID Widget
GET/recipes/{id}/nutritionWidget.jsonNutrition by ID
GET/recipes/{id}/nutritionWidget.pngRecipe Nutrition by ID Image
GET/recipes/{id}/priceBreakdownWidgetPrice Breakdown by ID Widget
GET/recipes/{id}/priceBreakdownWidget.jsonPrice Breakdown by ID
GET/recipes/{id}/priceBreakdownWidget.pngPrice Breakdown by ID Image
GET/recipes/{id}/similarGet Similar Recipes
GET/recipes/{id}/summarySummarize Recipe
GET/recipes/{id}/tasteWidgetRecipe Taste by ID Widget
GET/recipes/{id}/tasteWidget.jsonTaste by ID
GET/recipes/{id}/tasteWidget.pngRecipe Taste by ID Image
POST/users/connectConnect User

Questions

Does the Spoonacular API need an API key?

Yes. The Spoonacular API uses API key authentication; the documentation explains how to get credentials.

Does the Spoonacular API support HTTPS?

Yes, the Spoonacular API is served over HTTPS.

How many endpoints does the Spoonacular API have?

Its OpenAPI description lists 99 endpoints in version 1.1. All of them are shown on this page.

What are alternatives to the Spoonacular API?

Other Food & Drink APIs include Open Food Facts, Chomp, 1,000,000+ Recipe and Grocery List API (v2), Edamam nutrition, CalorieNinjas.

Compare alternatives →

Open Food Facts

Food & Drink

Food Products Database

No auth

Chomp

Food & Drink

Data about various grocery products and foods

API key4 endpoints

1,000,000+ Recipe and Grocery List API (v2)

Food & Drink

#Documentation This is the documentation for the partner endpoint of the BigOven Recipe and Grocery List API. The update brings with it Swagger-based documentation. [Swagger](http://swagger.io) is an emerging standard for describing REST-based APIs, and with this Swagger-compliant endpoint (above), you can make ready-to-go interface libraries for your code via [swagger-codegen](https://github.com/swagger-api/swagger-codegen). For instance, it's easy to generate libraries for Node.js, Java, Ruby, ASP.NET MVC, jQuery, php and more! You can also try out the endpoint calls with your own api_key right here on this page. Be sure to enter your api_key above to use the "Try it out!" buttons on this page. ##Start Here Developers new to the BigOven API should start with this version, not with the legacy API. We'll be making improvements to this API over time, and doing only bug fixes on the v1 API. To pretend you're a BigOven user (for instance, to get your recently viewed recipes or your grocery list), you need to pass in Basic Authentication information in the header, just as with the v1 API. We do now require that you make all calls via https. You need to pass your api_key in with every call, though this can now be done on the header (send a request header "X-BigOven-API-Key" set to your api_key value, e.g., Request["X-BigOven-API-Key"]="your-key-here".) ##Migration Notes For existing partners, we encourage you to [migrate](https://api2.bigoven.com), and while at this writing we have no hard-and-fast termination date for the v1 API, we strongly prefer that you migrate by January 1, 2017. While the changes aren't overly complex, there are several breaking changes, including refactoring of recipe search and results and removal of support for XML. This is not a simply plug-and-play replacement to the v1 API. With respect to an exclusive focus on JSON, the world has spoken, and it prefers JSON for REST-based API's. We've taken numerous steps to refactor the API to make it more REST-compliant. Note that this v2 API will be the preferred API from this point onward, so we encourage developers to migrate to this new format. We have put together some [migration notes](/web/documentation/migration-to-v2) that we encourage you to read carefully. ##Photos See our [photos documentation](https://api2.bigoven.com/web/documentation/recipe-images). For more information on usage of this API, including features, pricing, rate limits, terms and conditions, please visit the [BigOven API website](https://api2.bigoven.com).

API key66 endpoints

Edamam nutrition

Food & Drink

API developer portal for Nutrition Analysis, Food Database Lookup, Recipe Search API and others. Choose the API license you need.

API key

CalorieNinjas

Food & Drink

Nutrition and calorie data for foods and recipes

API keyCORS1 endpoints

Jelly Belly Wiki

Food & Drink

Data about Jelly Belly beans- flavores, facts, history and more endpoints

No authCORS

Listed from public-apis (MIT), public-apis database (MIT), APIs.guru (CC0).