API Directory › 🍔 Food & Drink › Fruityvice
No authHTTPSCORS

Fruityvice API

Free, no-key API with nutrition data about many fruits.

Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open Fruityvice docs ↗

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

https://www.fruityvice.com/api/fruit

Authentication

None. /all for the whole list, /{name} for one (e.g. /banana), or /{family|genus|order}/{value} to group.

Code examples

curl
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
Python
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 / idFruit name and numeric id
family / genus / orderTaxonomy
nutritions.calorieskcal per 100 g
nutritions.sugar / carbohydrates / protein / fatGrams per 100 g

Common errors

404Unknown fruit name (it is a small list — check /all).
500 / timeoutsThe 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Food & Drink APIs

← Back

More Food & Drink APIs · All 196 APIs