Zero Accounts · Zero Request Logs · No Payload Storage · support@tinplate.dev Support Trust Center GDPR DPA GitHub Issues
Data Prep All-Access Direct

Offline USDA v2 Natural-Language Nutrition, TDEE Coaching & MET Calories Burned API

Extract 11 USDA nutrients, caffeine, glycemic load, satiety, allergens, TDEE/macro targets, and MET calories burned in <1 ms offline. Sub-millisecond offline 294-food USDA v2 meal nutrition estimator returning 11 nutrients plus caffeine, alcohol, glycemic load, satiety score, allergens, dietary tags, cooking-state scaling, and recipe servings — plus Mifflin-St Jeor BMR/TDEE macro targets and Compendium MET calories-burned calculation.

Additional endpoints in this module: POST /v1/nutrition/calories-burned, POST /v1/nutrition/targets

Interactive Sandbox · No API Key Required 200 OK · Ready
POST /v1/nutrition/estimateinput
200 OK sample / live responsejson
{
  "ok": true,
  "data": {
    "estimated": true,
    "serving_size_g": 500,
    "calories": 765,
    "protein_g": 69,
    "carbohydrates_total_g": 55,
    "fat_total_g": 30,
    "fat_saturated_g": 5.4,
    "fiber_g": 10.6,
    "sugar_g": 1.2,
    "sodium_mg": 161,
    "potassium_mg": 1293,
    "cholesterol_mg": 170,
    "caffeine_mg": 0,
    "alcohol_g": 0,
    "glycemic_load": "high",
    "satiety_score": 79,
    "allergens": [],
    "dietary_tags": [
      "gluten_free",
      "dairy_free",
      "high_protein",
      "high_fiber"
    ],
    "items": [
      {
        "label": "200g Chicken breast",
        "name": "Chicken breast",
        "serving_size_g": 200,
        "calories": 330,
        "protein_g": 62,
        "carbohydrates_total_g": 0,
        "fat_total_g": 7,
        "fat_saturated_g": 2,
        "fiber_g": 0,
        "sugar_g": 0,
        "sodium_mg": 148,
        "potassium_mg": 512,
        "cholesterol_mg": 170,
        "allergens": []
      },
      {
        "label": "150g White rice",
        "name": "White rice",
        "serving_size_g": 150,
        "calories": 195,
        "protein_g": 4,
        "carbohydrates_total_g": 42,
        "fat_total_g": 0,
        "fat_saturated_g": 0.2,
        "fiber_g": 0.6,
        "sugar_g": 0.2,
        "sodium_mg": 2,
        "potassium_mg": 53,
        "cholesterol_mg": 0,
        "allergens": []
      },
      {
        "label": "Avocado",
        "name": "Avocado",
        "serving_size_g": 150,
        "calories": 240,
        "protein_g": 3,
        "carbohydrates_total_g": 13,
        "fat_total_g": 22,
        "fat_saturated_g": 3.2,
        "fiber_g": 10,
        "sugar_g": 1,
        "sodium_mg": 11,
        "potassium_mg": 728,
        "cholesterol_mg": 0,
        "allergens": []
      }
    ],
    "unmatched_segments": []
  },
  "meta": {
    "request_id": "req_nutr_01",
    "ms": 1
  }
}
OpenAPI 3.0.3 Get All-Access Key PRO — $29/mo Get All-Access Key TEAM — $79/mo No signup. No Tinplate payload storage.
Quickstart Code Examples
curl -X POST "https://api.tinplate.dev/v1/nutrition/estimate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TINPLATE_KEY" \
  -d '{"text":"200g chicken breast with 150g white rice and 1 avocado"}'
import { TinplateClient } from "@tinplate/sdk";

const tinplate = new TinplateClient({
  apiKey: process.env.TINPLATE_API_KEY!,
});

const { data, meta } = await tinplate.call("/v1/nutrition/estimate", {
  "text": "200g chicken breast with 150g white rice and 1 avocado"
});
console.log(`[${meta.ms} ms]`, data);
import requests

response = requests.post(
    "https://api.tinplate.dev/v1/nutrition/estimate",
    headers={
        "Content-Type": "application/json",
        "Authorization": "Bearer YOUR_TINPLATE_KEY",
    },
    json={
  "text": "200g chicken breast with 150g white rice and 1 avocado"
}
)
print(response.json())
const response = await fetch("https://api.tinplate.dev/v1/nutrition/estimate", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_TINPLATE_KEY",
  },
  body: JSON.stringify({
  "text": "200g chicken breast with 150g white rice and 1 avocado"
}),
});
const result = await response.json();
console.log(result);
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tinplate_nutrition_macros",
    "arguments": {
      "text": "200g chicken breast with 150g white rice and 1 avocado"
    }
  }
}
OpenAPI 3.0.3 Schema Contract

Request Parameters & Response Schema Reference

Request Body Parameters (POST /v1/nutrition/estimate)

ParameterType & ConstraintsDescription
text required string
minLen: 1, maxLen: 2048
Natural-language food or multi-item meal description with optional weights (g, kg, oz, lb, ml), cooking states (raw, cooked, grilled, fried, breaded, boiled, baked, steamed), recipe serving splits, or quantities (cups, slices, scoops, eggs).
servings optional integer
min: 1, max: 100
Optional explicit recipe serving count for computing per_serving macro splits alongside total meal values.
custom_foods optional object[] Optional per-request custom or branded foods merged ahead of the built-in 294-food USDA v2 database.

Response data Object Fields (200 OK)

FieldTypeDescription
estimated boolean Field 'estimated'
serving_size_g number Field 'serving_size_g'
calories number Field 'calories'
protein_g number Field 'protein_g'
carbohydrates_total_g number Field 'carbohydrates_total_g'
fat_total_g number Field 'fat_total_g'
fat_saturated_g number Field 'fat_saturated_g'
fiber_g number Field 'fiber_g'
sugar_g number Field 'sugar_g'
sodium_mg number Field 'sodium_mg'
potassium_mg number Field 'potassium_mg'
cholesterol_mg number Field 'cholesterol_mg'
caffeine_mg number Field 'caffeine_mg'
alcohol_g number Field 'alcohol_g'
glycemic_load "low" | "medium" | "high" Field 'glycemic_load'
satiety_score integer Field 'satiety_score'
allergens string[] Field 'allergens'
dietary_tags string[] Field 'dietary_tags'
servings integer Field 'servings'
per_serving object Field 'per_serving'
items object[] Field 'items'
unmatched_segments string[] Field 'unmatched_segments'

What Offline Natural-Language Nutrition, Macros & Calories Burned API Detects & Validates

  • Full 11-nutrient 294-food USDA v2 database (810 multilingual aliases, O(1) N-gram lookup, DL-1 typo recovery) plus caffeine_mg, alcohol_g, glycemic_load, satiety_score (0–100), allergens, dietary_tags, cooking-state scaling (raw/cooked/fried/grilled), recipe servings/per_serving, and per-request custom_foods
  • Automatic multi-item splitting ('and', 'with', ',', '+') with compound dish protection ('mac and cheese', 'fish and chips') and explicit unmatched_segments reporting
  • Companion POST /v1/nutrition/targets endpoint computing Mifflin-St Jeor BMR & TDEE, goal-preset macro splits (cut, maintain, bulk, keto, high_protein), fiber target, and bodyweight hydration target
  • Companion POST /v1/nutrition/calories-burned endpoint computing Compendium MET calories per hour, total calories, and target muscle/equipment metadata across ~80 activities & 48 exercises
Honest Engineering Boundaries

Known Limitations & Test Verification

Release: v1.0.57 · Verified: 18 November 2026 · Portfolio Median: 0.397 ms in-Worker V8 compute (add 15–65 ms HTTPS RTT) · See Full Portfolio Benchmarks →

  • Uses a curated 294-food offline USDA-aligned database (extensible per-request via custom_foods) and standard Compendium MET / Mifflin-St Jeor formulas; values are reference estimates rather than clinical laboratory assays.
  • Unrecognized branded or custom dishes are explicitly returned in unmatched_segments.

Direct All-Access & Single-API Marketplace Plans

Direct Polar All-Access Keys unlock all 34 APIs (45 endpoints), /v1/pipeline, and /mcp on api.tinplate.dev: All-Access Pro ($29/mo · 120 req/min · 100k/mo · 128 KB) or All-Access Team ($79/mo · 300 req/min · 500k/mo · 256 KB). RapidAPI per-API tiers below ($0–$79.99/mo) apply to individual standalone listings (plus the RapidAPI All-in-One Collection, $0–$199.99/mo). On Zyla API Hub, standalone APIs range $0 / $24.99–$999.99/mo and the Zyla All-in-One Suite ranges $0 / $49.99–$999.99/mo (Basic 64 KB, Pro 128 KB, ProPlus–Ultimate 256 KB):

Marketplace Tier (Per API)Monthly PriceIncluded RequestsRate LimitMax PayloadBest For
Marketplace BASIC$0.00 / mo500 / month10 req / min64 KBEvaluation & CI smoke tests
Marketplace PRO$9.99 / mo15,000 / month60 req / min128 KBSolo devs & single-API apps
Marketplace ULTRA$29.99 / mo100,000 / month300 req / min256 KBProduction single-API SaaS
Marketplace MEGA$79.99 / mo500,000 / month1,000 req / min256 KBHigh-volume single-API workloads

Frequently Asked Questions

Are calories, protein, allergens, and coaching scores included on every tier?

Yes—all 11 USDA nutrients plus caffeine_mg, alcohol_g, glycemic_load, satiety_score, allergens, and dietary_tags are returned in full on every call with zero paywalled fields.

How are TDEE macro targets and calories burned calculated?

POST /v1/nutrition/targets uses the Mifflin-St Jeor BMR/TDEE equation with goal presets (cut, maintain, bulk, keto, high_protein) and bodyweight hydration scaling; POST /v1/nutrition/calories-burned applies the Compendium MET formula (MET × weight_kg × duration_minutes / 60) offline in <1 ms.

Stateless In-Memory Processing

Data Handling, Privacy & Proxy Disclosure

Submitted meal descriptions, custom foods, body metrics, and activity inputs are evaluated in memory and discarded immediately.

Infrastructure & Proxy Notice: Tinplate does not store request payloads; Cloudflare Workers observability and invocation logging are disabled by configuration. Cloudflare and marketplace intermediaries (RapidAPI / Zyla) process traffic under their own terms; use a Direct Bearer Key to avoid marketplace proxies.

Related Tinplate APIs

POST /v1/omnibar/parse All-Access

Natural Language Command, Intent & Agent Router API

Parse natural-language user commands into 46 structured intents, grounded entity spans, and sub-0.2 ms autocomplete in <1 ms offline.

POST /v1/locale-value-parser All-Access

Text-to-Structured Date, Money & Unit Parser API

Normalize messy EU/US prices, dates, numbers, and measurements into structured JSON.