/v1/animalunits
Herd → animal units
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/grazing-api/v1/animalunits" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/grazing-api/v1/animalunits", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/grazing-api/v1/animalunits");
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/grazing-api/v1/animalunits",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Animal units convert a mixed herd to a common basis: a cow is 1.0 AU, a cow-calf pair 1.3, a sheep 0.2, a goat 0.17, a horse 1.25. Total AU × 26 lb is the herd's daily dry-matter demand.",
"inputs": {
"herd": [
{
"type": "cow",
"count": 10
},
{
"type": "sheep",
"count": 50
}
]
},
"breakdown": [
{
"type": "cow",
"count": 10,
"animal_units": 10
},
{
"type": "sheep",
"count": 50,
"animal_units": 10
}
],
"daily_intake_lb": 520,
"total_animal_units": 20
},
"meta": {
"timestamp": "2026-06-06T15:30:51.709Z",
"request_id": "dd0b2b13-f37f-4c2c-9e69-4aba42fea1b3"
},
"status": "ok",
"message": "Animal units",
"success": true
}