Sign Up

Log In

Recipe - Food - Nutrition

FREEMIUM
By spoonacular
Updated 4 months ago
Food
9.8/10
Popularity Score
573ms
Latency
99%
Success Rate

Recipe - Food - Nutrition API Documentation

The spoonacular Nutrition, Recipe, and Food API allows you to access over 365,000 recipes and 86,000 food products. 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, low sodium, low carb, Paleo, Primal, ketogenic, FODMAP, and Whole 30. We will soon be adding Weight Watcher points, too.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub

Compute
GETQuick Answer
POSTClassify Cuisine
GETMatch Recipes to Daily Calories
POSTCreate Recipe Card
POSTVisualize Ingredients
POSTVisualize Recipe Nutrition
POSTVisualize Price Breakdown
GETSummarize Recipe
POSTClassify a Grocery Product
POSTClassify Grocery Products (Batch)
POSTMap Ingredients to Grocery Products
POSTVisualize Equipment
GETConvert Amounts
GETGenerate Meal Plan
GETVisualize Product Nutrition
GETVisualize Menu Item Nutrition
GETVisualize Recipe Nutrition by id
GETGuess Nutrition by Dish Name
Extract
GETExtract Recipe from Website
POSTParse Ingredients
GETAnalyze a Recipe Search Query
POSTAnalyze Recipe Instructions
POSTDetect Food in Text
Search
GETSearch Recipes
GETSearch Recipes by Ingredients
GETSearch Recipes by Nutrients
GETGet Similar Recipes
GETSearch Grocery Products
GETAutocomplete Ingredient Search
GETSearch Recipes Complex
GETAutocomplete Recipe Search
GETGet Random Recipes
GETSearch Site Content
GETSearch Grocery Products by UPC
GETGet Ingredient Substitutes by Id
GETGet Ingredient Substitutes
GETSearch Food Videos
GETSearch Menu Items
GETGet Comparable Products
GETGet Wine Pairing
GETGet Dish Pairing for Wine
GETGet Wine Description
GETGet Wine Recommendation
GETAutocomplete Menu Item Search
GETAutocomplete Product Search
Data
GETGet Recipe Information
GETGet Product Information
GETGet Analyzed Recipe Instructions
GETGet a Random Food Joke
GETGet Random Food Trivia
GETGet Food Information
GETGet Recipe Information Bulk
GETGet Menu Item Information
Chat
GETTalk to a chatbot
GETGet Conversation Suggests
GETQuick Answer

Answer a nutrition related natural language question.

FreemiumThis API has a free, limited plan and paid plans. You can subscribe directly to it from RapidAPI.
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
qSTRING
REQUIREDThe nutrition-related question.
Request Snippet
unirest.get("https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/quickAnswer?q=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://spoonacular-recipe-food-nutrition-v1.p.rapidapi.com/recipes/quickAnswer?q=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard