TempoLife › Food nutrition API
Free food nutrition API
A free, read-only REST API for per-100 g reference nutrition across 5038 canonical foods — calories, protein, carbohydrate, fat, fibre, sugar, saturated fat and salt. No key, no signup, CORS-open, JSON. The dataset has mixed provenance and licensing; inspect each row's source and values_license.
OpenAPI 3.1 specification · grounded answer endpoint
One food
GET /food-api.php?food=banana
| Try it | /food-api.php?food=banana |
|---|---|
| Request a local name | /food-api.php?food=banana&lang=et (et / fi / ru; returned only where a distinct translation exists) |
{
"dataset_license": "mixed",
"food": {
"slug": "banana",
"name": "Banana",
"source": "usda_sr_legacy",
"source_ref": null,
"values_license": "us_public_domain",
"per_100g": { "kcal": 89, "protein_g": 1.1, "carbs_g": 22.8, "fat_g": 0.3, "fiber_g": 2.6, "sugar_g": 12.2, ... },
"url": "https://tempolife.app/calories/banana"
}
}
Search for a slug
GET /food-api.php?search=chicken → up to 20 canonical matches with row-level provenance. Try it.
Provenance and reuse
Usage rules
Building something with food data?
The whole table is also a single downloadable file, and the human-readable pages are at /calories.php. If you use a row, retain its provenance fields and apply the corresponding rights note.
