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 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
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

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.

APIWhat it doesAuthCORSLast verified
TheMealDBFree recipe API with no signup: search meals by name, ingredient, category or area, with full instructions, ingredient lists and photos. Tested example.No keyYes19 Aug 2026
TheCocktailDBFree cocktail recipe API with no signup: search drinks by name, ingredient or category, with instructions, measures, glass type and photos. Tested example.No keyYes19 Aug 2026
Open Food FactsFree food product API with no key: look up nutrition, ingredients, allergens, Nutri-Score and eco-score by barcode. 3M+ products. Tested curl example.No keyYes19 Aug 2026
Sample APIs CoffeeFree coffee API with no key: hot and iced coffee drinks with ingredients, descriptions and images. Small, clean dataset ideal for tutorials. Tested.No keyYes20 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 keyYes21 Aug 2026
Status PizzaFree 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 keyNo21 Aug 2026
All Food & Drink APIs

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.