Aller au contenu
GET /v1/feed-supply

Bales needed to feed a herd

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/baleweight-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/baleweight-api/v1/feed-supply" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baleweight-api/v1/feed-supply", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baleweight-api/v1/feed-supply");
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/baleweight-api/v1/feed-supply",
    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": "Feed needed = head × daily intake × days; bales = that ÷ the bale weight. Cattle eat roughly 2–2.5 % of bodyweight per day in dry matter (about 25–30 lb for a beef cow), so 30 cows for 120 days at 30 lb each is 108,000 lb — about 108 thousand-pound bales. Add 10–20 % for feeding waste and refusal, more if bales are fed on the ground without a ring.",
        "inputs": {
            "days": 120,
            "animal_count": 30,
            "bale_weight_lb": 1000,
            "daily_intake_lb_per_head": 30
        },
        "whole_bales": 108,
        "bales_needed": 108,
        "total_feed_lb": 108000
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:59.288Z",
        "request_id": "fd294a63-0728-4c94-b74c-0ef2295ed85c"
    },
    "status": "ok",
    "message": "Feed supply",
    "success": true
}