Zum Inhalt springen
GET /v1/plants

Plants suited to a zone

Live testen

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

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

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

API-Key holen

Code-Snippets

curl "https://api.oanor.com/hardiness-api/v1/plants" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hardiness-api/v1/plants", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hardiness-api/v1/plants");
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/hardiness-api/v1/plants",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

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

{
    "data": {
        "type": "herb",
        "zone": 8,
        "count": 5,
        "plants": [
            {
                "name": "Lavender",
                "type": "herb",
                "max_zone": 9,
                "min_zone": 5,
                "hardiness_range": "zones 5–9"
            },
            {
                "name": "Thyme",
                "type": "herb",
                "max_zone": 9,
                "min_zone": 5,
                "hardiness_range": "zones 5–9"
            },
            {
                "name": "Sage",
                "type": "herb",
                "max_zone": 10,
                "min_zone": 5,
                "hardiness_range": "zones 5–10"
            },
            {
                "name": "Rosemary",
                "type": "herb",
                "max_zone": 11,
                "min_zone": 7,
                "hardiness_range": "zones 7–11"
            },
            {
                "name": "Bay Laurel",
                "type": "herb",
                "max_zone": 11,
                "min_zone": 8,
                "hardiness_range": "zones 8–11"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:28.243Z",
        "request_id": "5d05d4a9-6a64-424e-a994-f23988733ba7"
    },
    "status": "ok",
    "message": "Plants retrieved",
    "success": true
}