Food Nutrition API

Calories, protein, fat, carbohydrate, fibre, sugars, 36 vitamins, minerals and other nutrients for about 8,300 generic foods (fruit, vegetables, meat, dairy, grains, baked goods, restaurant and baby foods and more), plus common portion sizes. Branded products are not included.

Quick start

curl "https://nutrition.quiply.net/v1/foods?q=banana&limit=3" \
  -H "X-API-Key: YOUR_KEY"

Authentication

Every request must include your key in the X-API-Key header. You get your key instantly on the pricing section. Keep it secret — don't put it in public front-end code.

Base URL: https://nutrition.quiply.net

GET/v1/foods

Search foods. Results include calories, protein, fat and carbohydrate per 100 g.

ParameterTypeDescription
qstringWords in the food name (all must match), e.g. chicken breast
categorystringCategory text, see /v1/categories
sourcestringfoundation (newer, analytically measured) or sr_legacy
limitinteger1–100 (default 25)
offsetintegerSkip this many results

GET/v1/foods/{id}

Full nutrient profile and portions. Nutrients a food has no data for are omitted.

ParameterTypeDescription
gramsnumberOptional: scale all nutrients to this weight (default: per 100 g)
{ "id": 173944, "name": "Bananas, raw", "category": "Fruits and Fruit Juices", "source": "sr_legacy",
  "basis": "per 150 g",
  "nutrients": { "calories": 133.5, "protein": 1.635, "…": "…" },
  "units": { "calories": "kcal", "protein": "g", "…": "…" },
  "portions": [ { "description": "1 medium (7\" to 7-7/8\" long)", "grams": 118 } ] }

GET/v1/categories

Food categories with the number of foods in each.

GET/v1/nutrients

The nutrients provided, with their units (g, mg or µg per 100 g).

GET/v1/health

Service status and dataset size. No key needed.

Values are per 100 g of edible portion unless grams is used. Data comes from public government food composition datasets and is not updated automatically. For general information only; not medical or dietary advice.

Errors

StatusMeaning
401Missing or invalid X-API-Key
403Subscription inactive (cancelled or payment failed)
404Food not found
422Bad or missing parameter
429Quota reached for your plan

Pricing

Free trial: 5 requests/day. All APIs plan: $9.95/month gives you every Quiply API, 250,000 requests a month.

Get your API key