Sign Up

Log In

Nutritionix

FREE
By stefan.skliarov
Updated 2 months ago
Food
5.3/10
Popularity Score
84ms
Latency
100%
Success Rate

Nutritionix API Overview

Connect to the Nutritionx API to get nutritional data by scanning labels or searching food items. Test an API call and export the code snippet into your app.

Pricing includes a free tier and paid tiers: https://www.nutritionix.com/business/api

Nutritionix

Nutritionix Package

Nutritionix

  • Domain: Nutritionix.com
  • Credentials: applicationId, applicationSecret

How to get credentials:

  1. Go to Nutritionix website
  2. Log in or create a new account
  3. Register an application
  4. Go to Application page to get your application Id and application Keys

Nutritionix.getFoodsNutrients

Returns the nutrients for all foods in request.

Field Type Description
applicationId credentials The application id received from Nutritionix.
applicationSecret credentials The application key received from Nutritionix
foodDescription String Natural language description of the food.

Nutritionix.getCaloriesBurnedForExercises

Estimate calories burned for various exercises using natural language.

Field Type Description
applicationId credentials The application id received from Nutritionix.
applicationSecret credentials The application key received from Nutritionix
exerciseDescription String Natural language description of the exercise.
userGender String Gender of the user. Possible values: male or female.
userWeight String Weight of the user in KG
userHeight String Height of the user in CM
userAge Number Age of the user

Nutritionix.searchFoods

Populate any search interface, including autocomplete, with common foods and branded foods from Nutritionix.

Field Type Description
applicationId credentials The application id received from Nutritionix.
applicationSecret credentials The application key received from Nutritionix
foodDescription String Natural language description of the food.

Nutritionix.getBrandedFoodById

Look up the nutrition information for any branded food item.

Field Type Description
applicationId credentials The application id received from Nutritionix.
applicationSecret credentials The application key received from Nutritionix
foodId String Id of the food item.

Nutritionix.getBrandedFoodByUpc

Look up the nutrition information for any branded food item.

Field Type Description
applicationId credentials The application id received from Nutritionix.
applicationSecret credentials The application key received from Nutritionix
foodUpc Number Upc of the food item.
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.post("https://Nutritionixstefan-skliarovV1.p.rapidapi.com/getBrandedFoodById")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to 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