Fruityvice API

⭐ Beginner's Pick Food & Drink / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

Overview

Fruityvice is a free, no-auth API that provides nutritional and botanical data for dozens of common fruits. You can look up a fruit by name and receive details like calories, carbohydrates, protein, and fat per 100 g. It is an ideal first API for beginners learning how to parse JSON responses.

💡

Beginner Tip

Start with a well-known fruit name like "banana" or "apple" — the name must match the database exactly (lowercase singular) or you will get a 404.

Available Data

Use case: Integrate data about all kinds of fruit data into web and mobile applications
Fruityvice data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Fruityvice",
    "description": "Data about all kinds of fruit",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

name Common English name of the fruit (e.g., "Banana").
id Unique numeric identifier for the fruit in the Fruityvice database.
family Botanical family the fruit belongs to (e.g., "Musaceae").
order Botanical order classification of the fruit.
genus Botanical genus of the fruit.
nutritions Nutritional values per 100 g including calories, fat, sugar, carbohydrates, and protein.

Implementation Example

const url = "https://www.fruityvice.com/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 Not Found The fruit name does not exist in the database or was spelled incorrectly.
Use lowercase singular English names (e.g., "strawberry" not "Strawberries"). Retrieve the full list first with GET /api/fruit/all.
Unexpected response shape Calling /api/fruit/all returns an array, while /api/fruit/{name} returns a single object — mixing them up causes parse errors.
Check whether you expect an array or an object and handle both shapes in your code.
CORS error in browser Fruityvice allows cross-origin requests but the server occasionally has downtime.
Add error handling around your fetch() call and display a friendly message if the request fails.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 7/15
Response Time 307ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Food & Drink
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →