Fruityvice API
Free, no-key API with nutrition data about many fruits.
What it does
Fruityvice is a tiny free API returning nutritional and taxonomic information for common fruits: calories, sugar, carbohydrates, protein and fat per 100 g, plus family, genus and order. The dataset is small (a few dozen fruits).
Base URL
Authentication
None. /all for the whole list, /{name} for one (e.g. /banana), or /{family|genus|order}/{value} to group.
Code examples
curl -s https://www.fruityvice.com/api/fruit/all curl -s https://www.fruityvice.com/api/fruit/banana curl -s https://www.fruityvice.com/api/fruit/family/Rosaceae
import requests
f = requests.get("https://www.fruityvice.com/api/fruit/mango", timeout=10).json()
n = f["nutritions"]
print(f["name"], n["calories"], "kcal,", n["sugar"], "g sugar per 100g")Rate limits & quotas
No documented rate limit; the dataset is static so cache /all once. The public host has been intermittently unreliable in the past — add a timeout and a fallback, and note there is a paid/self-host option.
Key response fields
| name / id | Fruit name and numeric id |
| family / genus / order | Taxonomy |
| nutritions.calories | kcal per 100 g |
| nutritions.sugar / carbohydrates / protein / fat | Grams per 100 g |
Common errors
| 404 | Unknown fruit name (it is a small list — check /all). |
| 500 / timeouts | The free host occasionally falls over — retry, cache, or self-host. |
| (name casing) | Names are capitalised (/Banana and /banana both work, but be consistent). |
When to use it (and alternatives)
Fine for a nutrition demo, a fruit quiz, or teaching REST with a friendly small dataset. For real, comprehensive nutrition data use USDA FoodData Central or Nutritionix.
FAQ
How many fruits are in the database?
Only around 40. It is a curated teaching/demo dataset, not a comprehensive food table.
Is it reliable enough for production?
The hosted free endpoint has had downtime. For anything real, cache /all at build time or run the open-source version yourself.
Are the nutrition values per fruit or per 100g?
Per 100 grams of edible portion.
New to APIs?
Short guides for working with this API — and any other.