Μετάβαση στο περιεχόμενο
GET /v1/animalunits

Herd → animal units

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/grazing-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}