Recipe and Ingredient Analysis

FREEMIUM
By zestfuldata
Updated 15 days ago
7.7/10
Popularity Score
994ms
Latency
92%
Success Rate

Recipe and Ingredient Analysis API Documentation

Zestful provides tools to help recipe app developers better understand their recipes and ingredients.

View API Details
POSTParse Ingredients
POSTParse Ingredients

Parse recipe ingredients into structured data

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
Parse ingredientsJSON_STRING
REQUIREDThe endpoint takes a JSON dictionary with the key "ingredients", representing a list of ingredient strings.
Code Snippet
unirest.post("https://zestful.p.rapidapi.com/parseIngredients")
.header("X-RapidAPI-Host", "zestful.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"ingredients":["2 1/2 tablespoons finely chopped parsley","3 tablespoons extra-virgin olive oil, or more to taste","1 1/2 tbsp cinnamon"]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://zestful.p.rapidapi.com/parseIngredients
Request Method: POST
Response Headers
"access-control-allow-headers": "Content-Type"
"access-control-allow-origin": "*"
"content-type": "application/json"
"date": "Wed, 19 Jun 2019 22:44:04 GMT"
"server": "RapidAPI-1.0.16"
"via": "1.1 vegur"
"x-rapidapi-region": "AWS - us-east-1"
"x-rapidapi-version": "1.0.16"
"x-ratelimit-results-limit": "30"
"x-ratelimit-results-remaining": "15"
"content-length": "717"
"connection": "Close"
Response Body

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.post("https://zestful.p.rapidapi.com/parseIngredients")
.header("X-RapidAPI-Host", "zestful.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"ingredients":["2 1/2 tablespoons finely chopped parsley","3 tablespoons extra-virgin olive oil, or more to taste","1 1/2 tbsp cinnamon"]})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication