Zum Inhalt springen
GET /v1/feed-supply

Bales needed to feed a herd

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/baleweight-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

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