Nutritionix - Nutrition Database

By msilverman
Updated 20 days ago
Popularity Score
Success Rate
khaled_jawhar3 years ago
how can I get the name of all types of food available in this databaseHi, I would like to get the name of all the types of food available in order to store them in a combo box or list so as when the user chooses the type of food I can then go a get request to the api and get all nutrition facts for this type of food?
msilverman3 years ago
Hi, can you please email us at [email protected]? It looks like your request can be handled well by our 2.0 API, documentation here:
Hi Developer, feel free to post your answer:

Install SDK for NodeJS


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

.header("X-RapidAPI-Host", "")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication