Overview
The Chomp API provides detailed nutritional data for millions of grocery products and restaurant menu items, including macros, ingredients, and allergen flags. You authenticate with an API key passed in the request header, and responses come back as clean JSON. It is a great fit for food-tracking apps, recipe tools, or any project that needs reliable packaged-food nutrition data.
Beginner Tip
Search by UPC barcode (e.g., 016000275287) for the most accurate match — product name searches can return multiple results for similar items.
Available Data
Example Response
{
"recipe": "Chicken Stir Fry",
"calories": 380,
"protein_g": 32,
"carbs_g": 28,
"fat_g": 14,
"ingredients": [
"chicken breast",
"bell pepper",
"soy sauce",
"garlic"
],
"prep_time_minutes": 20
} Field Reference
name Full product name as it appears on the packaging. brand Brand or manufacturer of the product. calories Calories per serving. protein Grams of protein per serving. carbohydrates Grams of total carbohydrates per serving. components List of nutritional components with name, value, unit, and daily value percentage. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://chompthis.com/api/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Edamam nutrition
The Edamam Nutrition Analysis API parses natural-language food descriptions such as "1 cup of oatmeal" or "200g chicken breast" and returns detailed nutritional breakdowns including calories, macros, vitamins, and minerals.
Edamam recipes
⭐ Beginner's PickThe Edamam Recipe Search API lets you search a database of over 2 million recipes filtered by ingredients, diet labels such as vegan or keto, meal type, and cuisine.
Kroger
The Kroger API gives developers access to product catalog data, pricing, store locations, and promotions from one of the largest US grocery chains.
LCBO
The LCBO API provides access to the Liquor Control Board of Ontario product catalog, including wines, spirits, and beers sold in Ontario, Canada.
Spoonacular
Spoonacular is a comprehensive food and recipe API that provides recipe search, ingredient data, nutritional analysis, and meal planning features.