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.
| Parameter | Type | Description |
|---|---|---|
q | string | Words in the food name (all must match), e.g. chicken breast |
category | string | Category text, see /v1/categories |
source | string | foundation (newer, analytically measured) or sr_legacy |
limit | integer | 1–100 (default 25) |
offset | integer | Skip this many results |
GET/v1/foods/{id}
Full nutrient profile and portions. Nutrients a food has no data for are omitted.
| Parameter | Type | Description |
|---|---|---|
grams | number | Optional: 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.
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
| Status | Meaning |
|---|---|
| 401 | Missing or invalid X-API-Key |
| 403 | Subscription inactive (cancelled or payment failed) |
| 404 | Food not found |
| 422 | Bad or missing parameter |
| 429 | Quota 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