BYTETOOLS

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.

No API key requiredHTTPSFree tier

Endpoint tested and returned HTTP 200 on 2026-08-19

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 2026-08-19, 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
curl 'https://www.fruityvice.com/api/fruit/banana'
JavaScript (fetch)
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);
Python (requests)
import requests

res = requests.get("https://www.fruityvice.com/api/fruit/banana", timeout=20)
res.raise_for_status()
print(res.json())
Response — HTTP 200
{
  "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

ParameterTypeRequiredDescription
<name>pathOptionalFruit name, lowercase, e.g. /banana. banana
allpathOptionalUse /all to return every fruit in the database. all
family / genus / orderpathOptionalFilter 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

Fruityvice is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 2026-08-19; always check the official documentation before relying on this API in production, as terms and limits can change.