Naar de inhoud
GET /v1/round-bale

Round-bale weight and dry matter

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/baleweight-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "A round bale's weight = its cylinder volume (π·r²·width) × the dry-matter density (typically ~9–12 lb/ft³ for dry hay — wetter, tighter bales weigh more). A 5×5 ft bale runs roughly 1,000 lb. The dry-matter weight (≈88 % of as-fed for cured hay) is what actually feeds the animals, so buy and ration on dry matter, not the gate weight.",
        "inputs": {
            "width_ft": 5,
            "diameter_ft": 5,
            "density_lb_ft3": 10,
            "dry_matter_pct": 88
        },
        "weight_lb": 982,
        "volume_ft3": 98.17,
        "dry_matter_lb": 864
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:59.364Z",
        "request_id": "ef95c6fb-c074-44c3-bb45-993041d2ee0a"
    },
    "status": "ok",
    "message": "Round bale",
    "success": true
}