Vai al contenuto
GET /v1/plants

Plants suited to a zone

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/hardiness-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}