USDA-verifiable nutrition data in clean, structured JSON. Designed for developers.
Avocavo Nutrition API gives you USDA-verifiable nutrition data in clean, structured JSON.
# Authenticate with OAuth avocavo login # Analyze single ingredient avocavo ingredient "1 cup brown rice"
✅ Or use our REST API with cURL:
curl -X POST https://app.avocavo.app/api/v2/nutrition/ingredient \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"ingredient": "1 cup rice"}'
# Or search UPC/barcode
curl -X POST https://app.avocavo.app/api/v2/upc/ingredient \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"upc": "041196912395"}'✅ See Authentication to get your token.
All API calls require an API key via X-API-Key header or OAuth login through our SDKs.
avocavo login
-H "X-API-Key: YOUR_API_KEY"
Analyze a single ingredient with portion-aware parsing.
{
"ingredient": "1 cup brown rice, cooked"
}curl -X POST https://app.avocavo.app/api/v2/nutrition/ingredient \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"ingredient": "1 cup rice"}'
# Or search UPC/barcode
curl -X POST https://app.avocavo.app/api/v2/upc/ingredient \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"upc": "041196912395"}'{
"success": true,
"ingredient": "1 cup rice",
"nutrition": {
"calories_total": 205,
"protein_total": 4.3,
"total_fat_total": 0.4,
"carbohydrates_total": 44.5,
"fiber_total": 0.6,
"sodium_total": 1.6
},
"usda_match": {
"fdc_id": 169756,
"description": "Rice, white, medium-grain, enriched, cooked",
"data_type": "sr_legacy_food"
},
"verification_url": "https://fdc.nal.usda.gov/fdc-app.html#/food-details/169756"
}Analyze multiple ingredients in a single request. Batch limits vary by plan: Free (3), Starter (8), Professional (25), Enterprise (50).
{
"ingredients": [
{"ingredient": "1 cup rice", "id": "rice1"},
{"ingredient": "100g chicken breast", "id": "chicken1"}
]
}{
"success": true,
"results": [
{
"id": "rice1",
"ingredient": "1 cup rice",
"nutrition": {
"calories_total": 205,
"protein_total": 4.3,
"fdc_id": 169756
}
},
{
"id": "chicken1",
"ingredient": "100g chicken breast",
"nutrition": {
"calories_total": 165,
"protein_total": 31.0,
"fdc_id": 171477
}
}
]
}Analyze a complete recipe with serving-based nutrition.
{
"recipe_name": "Classic Pancakes",
"servings": 4,
"ingredients": [
"1 cup flour",
"1 cup milk",
"1 egg"
]
}{
"success": true,
"recipe_name": "Classic Pancakes",
"servings": 4,
"ingredients": [
{
"ingredient": "1 cup flour",
"nutrition": {
"calories": 455,
"protein": 12.9,
"fdc_id": 169761
}
},
{
"ingredient": "1 cup milk",
"nutrition": {
"calories": 122,
"protein": 8.1,
"fdc_id": 173441
}
},
{
"ingredient": "1 egg",
"nutrition": {
"calories": 72,
"protein": 6.3,
"fdc_id": 171287
}
}
],
"totals_per_serving": {
"calories": 162.3,
"protein": 6.8,
"carbs": 26.5,
"fat": 3.7
}
}Search for product information by UPC/barcode. Access 4.4M+ products from USDA Branded Foods and Open Food Facts databases.
{
"upc": "041196912395"
}curl -X POST https://app.avocavo.app/api/v2/upc/ingredient \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"upc": "041196912395"}'{
"success": true,
"upc": "041196912395",
"product": {
"product_name": "Peanut Butter Crunch",
"brand": "LEWIS BAKE SHOP",
"sources": ["usda_branded", "open_food_facts"],
"categories": ["en:breads", "en:sausages"],
"serving_size": "66g",
"nutrition": {
"energy_kcal": 52.9,
"proteins": 10.6,
"carbohydrates": 2.9,
"fat": 0
},
"ingredients_text": "Unbleached enriched wheat flour..."
},
"response_time_ms": 184
}Search multiple UPCs/barcodes in a single request for efficient batch processing.
{
"upcs": ["041196912395", "123456789012", "012000161155"]
}{
"success": true,
"summary": {
"total": 3,
"found": 2,
"errors": 0
},
"results": [
{
"upc": "041196912395",
"success": true,
"product": {
"product_name": "Peanut Butter Crunch",
"brand": "LEWIS BAKE SHOP"
}
},
{
"upc": "123456789012",
"success": false,
"error": "Product not found"
}
],
"processing_time_ms": 1146
}{
"ingredient": "1 cup rice",
"calories_total": 205,
"protein_total": 4.3,
"fdc_id": 169756,
"verification_url": "https://fdc.nal.usda.gov/fdc-app.html#/food-details/169756"
}[
{ "ingredient": "1 cup rice", "calories_total": 205, "fdc_id": 169756 },
{ "ingredient": "100g chicken breast", "calories_total": 165, "fdc_id": 171477 }
]{
"recipe_name": "Classic Pancakes",
"servings": 4,
"totals_per_serving": {
"calories": 162.3,
"protein": 6.8,
"carbs": 26.5,
"fat": 3.7
}
}{
"success": true,
"upc": "041196912395",
"product": {
"product_name": "Peanut Butter Crunch",
"brand": "LEWIS BAKE SHOP",
"sources": ["usda_branded", "open_food_facts"],
"nutrition": {
"energy_kcal": 52.9,
"proteins": 10.6
}
}
}# Install npm install -g avocavo # Login with OAuth avocavo login # Analyze ingredient avocavo ingredient "1 cup rice" # Search UPC/barcode avocavo upc "041196912395" # Batch UPC search avocavo upc-batch -u "041196912395" "123456789012"
pip install avocavo
import avocavo as av
av.login()
# Analyze ingredient
result = av.analyze_ingredient("2 tbsp olive oil")
# Search UPC/barcode
upc_result = av.search_upc("041196912395")
if upc_result.found:
print(f"Product: {upc_result.product.product_name}")avocavo login avocavo ingredient "100g chicken breast" avocavo upc "041196912395"
{
"success": false,
"error": "ingredient_not_usda_verified",
"message": "Could not find USDA match for: 'computer'"
}| Plan | Hourly Limit | Per-Minute Limit | Burst Rate |
|---|---|---|---|
| Free | 1,000 / hour | 100 / minute | Up to 50 requests / 10 seconds |
| Starter | 2,500 / hour | 500 / minute | Up to 100 requests / 10 seconds |
| Professional | 10,000 / hour | 1,000 / minute | Up to 200 requests / 10 seconds |
| Business | 50,000 / hour | 5,000 / minute | Custom limits with SLAs |
| Plan | Max Ingredients per Batch | Notes |
|---|---|---|
| Free | 3 ingredients | Single ingredients recommended |
| Starter | 8 ingredients | Small batch processing |
| Professional | 25 ingredients | Production batch processing |
| Enterprise | 50+ ingredients | Custom limits available on request |
✅ Enterprise solutions with custom limits are available for high-volume usage.
Multiple pricing tiers are available to support different usage patterns and requirements. Each plan includes various API call limits and features to accommodate different use cases.
✅ For detailed pricing information, refer to the pricing documentation
For developers who need USDA-verifiable nutrition data in clean JSON for meal planning, recipes, diet apps, and more.
USDA FoodData Central with real FDC IDs and verification URLs.
Yes! Analyze single ingredients, batch lists, or full recipes with serving calculations.
Secure OAuth 2.0 login. No API keys to manage.
Typically 300-400ms per request with intelligent caching.
Multiple pricing tiers are available to accommodate different usage levels and requirements.
Yes! Once you request nutrition data, it's yours to use, store, cache, and serve in your app however you want. No usage restrictions.
Batch limits vary by plan:
For larger batches, split them into multiple requests.
We're here to help you integrate our API successfully into your application.