/nutrition namespace · APlicious

Nutrition API — macro splits, calorie goals, and a 13,500+ food database

The /nutrition namespace combines IIFYM-style macro calculators with an owned, ingested USDA food database — no upstream rate limits, no per-lookup billing surprises.

13,500+foods in owned database
Get free API key View docs
GET /api/v1/nutrition/macros
const res = await fetch(
  'https://aplicious.com/api/v1/nutrition/macros?weight_kg=70&height_cm=175&age=30&gender=male&activity=moderate&goal=maintain',
  { headers: { 'X-API-Key': 'lapi_live_••••' } }
);
const { data } = await res.json();
// { calories: 2450, protein_g: 165, carbs_g: 275, fat_g: 82 }

No credit card · Free tier forever · X-API-Key header auth

What's included in /nutrition

Owned food database

13,500+ foods ingested from USDA FoodData Central (public domain) directly into our own database — no live third-party calls at runtime.

Macro split calculator

IIFYM/flexible dieting macro splits based on goal, weight, and activity level.

TDEE and calorie goals

Total daily energy expenditure and calorie deficit/surplus targets using the standard energy-balance model.

Nutrition timing

Pre/post-workout nutrition timing guidance tied to training schedule.

No runtime dependency

Because the food data is owned, lookups never fail due to a third-party API outage or rate limit.

Start using the nutrition API today

Free tier — 500 calls/month, no credit card. Upgrade when you need more.

Get free API keyExplore /nutrition docs

Frequently asked questions

Is the food database licensed or scraped?

Ingested from USDA FoodData Central, a public-domain government dataset — no scraping, no licensing risk.

Does this require a live third-party API key?

No — the food data lives in our own database, so there's no upstream key or rate limit to manage.

Can I search foods by name?

Yes, via /food-search and related endpoints in the food namespace, which shares the same owned dataset.

Related API guides

Fitness API for Apps — One-Rep Max, Training Zones, Workout Plans

22 endpoints for fitness apps: one-rep max via 3 averaged formulas, Karvonen/Tan

Read guide

Health Calculator API — BMI, BMR, TDEE, Ideal Weight

Evidence-based health calculators: BMI, BMR, TDEE, calorie deficit, sleep needs,

Read guide

Health & Fitness API — BMI, Calories, Macros, Workouts

REST API for BMI, calorie burn, macro targets, one-rep max, heart rate zones, wo

Read guide

One key unlocks all 34 namespaces — weather, finance, fitness, astrology, and more.

View all plans and pricing →