/v1/animalunits
Herd → animal units
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}