Chomp API

Food & Drink / API Key Intermediate HTTPS
Varies by plan (check documentation)

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

recipe name and ingredients
nutritional values
calorie count
serving size
preparation time

Example Response

JSON 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

401 Unauthorized API key is missing or placed in the wrong location.
Pass the key in the x-api-key request header, not as a query parameter.
Empty items array The product name is too specific or contains brand spelling variations.
Try a shorter, more generic search term or switch to a UPC lookup using the code parameter.
429 Too Many Requests Free-tier accounts have a low monthly request limit.
Cache nutrition results by UPC in a local database so each product is only fetched once.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Food & Drink
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →