Nutritionix
Worlds largest verified nutrition database
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Health
- Documentation / URL
- https://developer.nutritionix.com/
Overview
Nutritionix provides food nutrition data — search foods, get calories/macros, and track meals. Auth needs two keys (App ID + App Key) — an invalid key returns 401 (verified).
Quick Start
Instant search (replace APP_ID, APP_KEY):
curl "https://trackapi.nutritionix.com/v2/search/instant?query=apple" \
-H "x-app-id: APP_ID" \
-H "x-app-key: APP_KEY"
{
"common": [
{ "food_name": "apple", "serving_unit": "medium", "full_nutrition_xref": "513fceb375b8dbbc21000021" }
]
}
Natural-language nutrition:
curl "https://trackapi.nutritionix.com/v2/natural/nutrients" \
-H "x-app-id: APP_ID" \
-H "x-app-key: APP_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "2 eggs and 1 toast"}'
Authentication
- Register at developer.nutritionix.com → App ID + App Key (emailed).
- Send both as
x-app-idandx-app-keyheaders (missing → 401, verified).
Rate Limits & Notes
- Free tier: ~1,000 requests/month (check the docs); paid plans scale.
- Endpoints:
/v2/search/instant,/v2/search/item,/v2/natural/nutrients,/v2/natural/exercise. - The natural-language parser (“2 eggs and 1 toast”) is the standout feature.
FAQ
Is Nutritionix free? Free tier with a monthly allowance; more is paid.
How do I get keys? Register at developer.nutritionix.com — App ID + Key are emailed.
What’s the auth style?
Two headers: x-app-id + x-app-key (verified).
More in Health
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Clinical Trials Directory Every clinical trial registered with ClinicalTrials.gov, indexed by condition and sponsor | No auth | Yes | Yes | ↗ |
| CMS.gov Access to the data from the CMS - medicare.gov | API Key | Yes | Unknown | ↗ |
| Coronavirus HTTP API for Latest Covid-19 Data | No auth | Yes | Unknown | ↗ |
| Coronavirus in the UK UK Government coronavirus data, including deaths and cases by region | No auth | Yes | Unknown | ↗ |
| Covid Tracking Project Covid-19 data for the US | No auth | Yes | No | ↗ |