Nutritionix - Nutrition Database

FREE
By msilverman
Updated 23 days ago
Food
8.6/10
Popularity Score
550ms
Latency
98%
Success Rate
WiseHollow2 years ago
Limited queries?Hi, I am developing an Android application that uses Nutritionix for its core functionality. I can request data about specific foods from a search query in my application. However, after I have requested information twice, I am no longer able to get more data from the server. The only way to fix this is to reboot my application. Is there something you know of that could cause this sort of problem? I'm using the language, Java.
Hi Developer, feel free to post your answer:

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://nutritionix-api.p.rapidapi.com/v1_1/search/cheddar%20cheese?fields=item_name%2Citem_id%2Cbrand_name%2Cnf_calories%2Cnf_total_fat")
.header("X-RapidAPI-Host", "nutritionix-api.p.rapidapi.com")
.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