Zum Inhalt springen
GET /v1/family

Fruits in a botanical family

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/fruit-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/fruit-api/v1/family" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fruit-api/v1/family", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fruit-api/v1/family");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/fruit-api/v1/family",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 11,
        "family": "Rosaceae",
        "fruits": [
            {
                "id": 3,
                "name": "Strawberry",
                "genus": "Fragaria",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.4,
                    "sugar": 5.4,
                    "protein": 0.8,
                    "calories": 29,
                    "carbohydrates": 5.5
                }
            },
            {
                "id": 4,
                "name": "Pear",
                "genus": "Pyrus",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.1,
                    "sugar": 10,
                    "protein": 0.4,
                    "calories": 57,
                    "carbohydrates": 15
                }
            },
            {
                "id": 64,
                "name": "Blackberry",
                "genus": "Rubus",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.4,
                    "sugar": 4.5,
                    "protein": 1.3,
                    "calories": 40,
                    "carbohydrates": 9
                }
            },
            {
                "id": 71,
                "name": "Plum",
                "genus": "Prunus",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.28,
                    "sugar": 9.92,
                    "protein": 0.7,
                    "calories": 46,
                    "carbohydrates": 11.4
                }
            },
            {
                "id": 72,
                "name": "GreenApple",
                "genus": "Malus",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.1,
                    "sugar": 6.4,
                    "protein": 0.4,
                    "calories": 21,
                    "carbohydrates": 3.1
                }
            },
            {
                "id": 23,
                "name": "Raspberry",
                "genus": "Rubus",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.7,
                    "sugar": 4.4,
                    "protein": 1.2,
                    "calories": 53,
                    "carbohydrates": 12
                }
            },
            {
                "id": 33,
                "name": "Blueberry",
                "genus": "Fragaria",
                "order": "Rosales",
                "family": "Rosaceae",
                "nutritions": {
                    "fat": 0.4,
                    "sugar": 5.4,
                    "protein": 0,
                    "calor
…