Aller au contenu
GET /v1/acres

Acreage for a herd & period

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/grazing-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Acres = (animal units × 26 lb × days) ÷ (forage per acre × utilization). Size a paddock for the move interval (e.g. 1–3 days) and rest the rest of the pasture. Forage yield swings hugely with season and rainfall — measure it.",
        "inputs": {
            "days": 30,
            "animal_units": 20,
            "forage_lb_per_acre": 3000,
            "utilization_percent": 50
        },
        "acres_needed": 10.4,
        "forage_needed_lb": 15600,
        "usable_per_acre_lb": 1500
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:51.608Z",
        "request_id": "9ae98812-5fda-4a78-a8d6-569f5d0919d7"
    },
    "status": "ok",
    "message": "Acres needed",
    "success": true
}