Naar de inhoud
GET /v1/enclosure

Minimum enclosure size

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/reptile-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Minimum enclosure, not ideal — bigger is always better. Terrestrial snakes want a floor at least as long as the snake; arboreal species trade floor for height; ground lizards and tortoises need far more floor than their body length. A solid temperature gradient end-to-end matters more than raw volume.",
        "inputs": {
            "type": "terrestrial_snake",
            "length_in": 48
        },
        "min_width_in": 24,
        "min_height_in": 24,
        "min_length_in": 48,
        "floor_area_sqft": 8
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:47.908Z",
        "request_id": "44c3e715-5814-4bcf-83ef-4dad1a041b00"
    },
    "status": "ok",
    "message": "Enclosure size",
    "success": true
}