RapidAPI logo

Sign Up

Log In

Chomp - Food Nutrition Database

PAID
By chomp
Updated 3 months ago
Food
5.4/10
Popularity Score
324ms
Latency
100%
Success Rate

Chomp - Food Nutrition Database API Documentation

Quickly and efficiently retrieve high-quality data on over 535,000 food products. We provide nutrition labels, ingredients, diet compatibility, barcodes, and more. Use a barcode or product name to retrieve detailed data. Check out our website for more information.

View API Details
Advanced
GETAdvanced Product Search
Product
GETIndividual Product by ID
GETProduct Search by Name
GETIndividual Product by Barcode
List
GETGet Countries
GETGet Nutrition Label Titles
GETGet Palm Oil Ingredients
GETGet Allergens
GETGet Categories
GETGet Lifestyle/Health Diets
GETGet Minerals
GETGet Vitamins
GETGet Trace Ingredients
GETGet Brands
GETGet Keywords
GETGet Ingredients
GETAdvanced Product Search

Get a list of products using any combination of our search query parameters. Retrieve barcodes, nutrition labels, ingredients, allergen warnings, trace ingredients, compatible health diets, brands, countries, categories, keywords, minerals, and vitamins for a bulk list of products.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
countrySTRING
OPTIONALCountry of origin. Try "United States"
brandSTRING
OPTIONALThe brand that makes the product. Try "Nestle"
categorySTRING
OPTIONALCategory that the product falls under. Try "Pasta Dishes"
nutritionSTRING
OPTIONALItem from the nutrition label. Try "Zinc"
lifestyleSTRING
OPTIONALGet products that are compatible with a specific lifestyle (vegan, vegetarian, gluten free). Try "Gluten Free"
keywordSTRING
OPTIONALKeyword used to describe the product. Try "Organic"
ingredientSTRING
OPTIONALIngredient found in a product. Try "Milk"
traceSTRING
OPTIONALTrace ingredient that may be found in a product. Try "Peanuts"
palm_oilSTRING
OPTIONALIngredient made from palm oil. Try "E160a Beta Carotene"
allergenSTRING
OPTIONALIngredient that may cause an allergic reaction. Try "Peanuts"
mineralSTRING
OPTIONALMineral found in a product. Try "Iron"
vitaminSTRING
OPTIONALVitamin found in a product. Try "Vitamin B12"
Request Snippet
unirest.get("https://chomp.p.rapidapi.com/request.php?ingredient=milk")
.header("X-RapidAPI-Host", "chomp.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
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.get("https://chomp.p.rapidapi.com/request.php?ingredient=milk")
.header("X-RapidAPI-Host", "chomp.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