Fruityvice API
Free fruit API with no key: nutritional data, family, genus and order for dozens of fruits. Simple flat JSON, ideal for beginners. Tested curl example.
Endpoint tested and returned HTTP 200 on 19 Aug 2026
What is the Fruityvice API?
Fruityvice is a free API returning nutritional information and botanical classification for fruits — calories, carbohydrates, protein, fat and sugar, plus family, genus and order — with no API key required.
Fruityvice returns a small, flat JSON object per fruit with both nutrition and taxonomy. The simplicity is the point: it is one of the cleanest possible examples of a REST resource, which is why it shows up so often in teaching material.
Because the dataset is small and the shape is completely predictable, it is a good choice for demonstrating filtering, sorting and charting without spending the lesson on parsing complexity.
Quick facts
- Base URL
https://www.fruityvice.com/api/fruit- Authentication
- No key required.
- Rate limit
- No published limit.
- Pricing
- Free.
- CORS
- Not enabled — call it from your server
- Official docs
- Read the docs
How to use the Fruityvice API
Every request below was executed against the live API on 19 Aug 2026, and the response shown is the real body it returned — not an illustration.
1. Look up nutrition data for a fruit
GET https://www.fruityvice.com/api/fruit/banana
curl 'https://www.fruityvice.com/api/fruit/banana'const res = await fetch("https://www.fruityvice.com/api/fruit/banana");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://www.fruityvice.com/api/fruit/banana", timeout=20)
res.raise_for_status()
print(res.json()){
"name": "Banana",
"id": 1,
"family": "Musaceae",
"order": "Zingiberales",
"genus": "Musa",
"nutritions": {
"calories": 96,
"fat": 0.2,
"sugar": 17.2,
"carbohydrates": 22.0,
"protein": 1.0
}
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
<name> | path | Optional | Fruit name, lowercase, e.g. /banana. banana |
all | path | Optional | Use /all to return every fruit in the database. all |
family / genus / order | path | Optional | Filter by taxonomy, e.g. /family/Rosaceae. Rosaceae |
Response fields
namestring- Fruit name.
family / genus / orderstring- Botanical classification.
nutritions.caloriesnumber- Calories per 100g.
nutritions.carbohydrates / protein / fat / sugarnumber- Macronutrients per 100g.
What you can build with the Fruityvice API
- Teach REST basics with a small, predictable dataset
- Build a nutrition comparison chart across fruits
- Add fruit nutrition facts to a diet or recipe app
- Demonstrate filtering and sorting in a data table tutorial
Common errors and how to fix them
404
Fruit not in the database or misspelled.
Fix: Fetch /all to see the available list; the dataset is deliberately small.
Case sensitivity
Names are matched case-insensitively but must otherwise be exact.
Fix: Use simple lowercase names such as `banana` or `apple`.
Fruityvice API — frequently asked questions
Is the Fruityvice API free?
Yes, completely free with no API key or registration required.
What nutritional data does it provide?
Calories, carbohydrates, protein, fat and sugar per 100g, alongside botanical family, genus and order.
How many fruits are in the database?
Several dozen. It is deliberately small and curated rather than exhaustive, which makes it well suited to teaching and demos.
Can I get all fruits in one request?
Yes, request /api/fruit/all to receive the entire dataset as an array — convenient for building comparison tables and charts client-side.
Tools that pair with this API
JSON Formatter
Format, beautify and minify JSON online with 2-space, 4-space or tab indentation. Sort keys alphabetically and catch syntax errors instantly — free and private.
Unit Converter
Convert between units of length, weight, temperature, area, volume, speed, time and data storage instantly, with a swap button and common conversion tables.
Percentage Calculator
Calculate what X% of a number is, what percent one number is of another, and percentage increase or decrease between two values — instantly and free.
Alternatives to Fruityvice API
If Fruityvice does not fit, these food & drink apis cover similar ground. Every one was called before publishing, and each links to its own reference page with a working curl command and the response it returned.
| API | What it does | Auth | CORS | Last verified |
|---|---|---|---|---|
| TheMealDB | Free recipe API with no signup: search meals by name, ingredient, category or area, with full instructions, ingredient lists and photos. Tested example. | No key | Yes | 19 Aug 2026 |
| TheCocktailDB | Free cocktail recipe API with no signup: search drinks by name, ingredient or category, with instructions, measures, glass type and photos. Tested example. | No key | Yes | 19 Aug 2026 |
| Open Food Facts | Free food product API with no key: look up nutrition, ingredients, allergens, Nutri-Score and eco-score by barcode. 3M+ products. Tested curl example. | No key | Yes | 19 Aug 2026 |
| Sample APIs Coffee | Free coffee API with no key: hot and iced coffee drinks with ingredients, descriptions and images. Small, clean dataset ideal for tutorials. Tested. | No key | Yes | 20 Aug 2026 |
| Open Prices (Open Food Facts) | Free grocery price API with no key for reads: crowdsourced product prices tied to a barcode, a shop location from OpenStreetMap and a date. Tested example included. | No key | Yes | 21 Aug 2026 |
| Status Pizza | Free HTTP status code API with no key: every status code mapped to a pizza photograph, plus JSON giving the code's title and category. Tested example included. | No key | No | 21 Aug 2026 |
Fruityvice is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 19 Aug 2026; always check the official documentation before relying on this API in production, as terms and limits can change.