Recipe and Ingredient Analysis

FREEMIUM
By zestfuldata
Updated 14 days ago
7.7/10
Popularity Score
994ms
Latency
92%
Success Rate
Discussions
Hi Developer, feel free to ask your question:
rachel_mislovaty:5 months ago
1 Answer

Is this API available offline?

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