freeapis

Nutritionix

Worlds largest verified nutrition database

Authentication
API Key
HTTPS
Yes
CORS
Unknown
Category
Health

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-id and x-app-key headers (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

APIAuthHTTPSCORS
Clinical Trials Directory

Every clinical trial registered with ClinicalTrials.gov, indexed by condition and sponsor

No authYesYes
CMS.gov

Access to the data from the CMS - medicare.gov

API KeyYesUnknown
Coronavirus

HTTP API for Latest Covid-19 Data

No authYesUnknown
Coronavirus in the UK

UK Government coronavirus data, including deaths and cases by region

No authYesUnknown
Covid Tracking Project

Covid-19 data for the US

No authYesNo