/v1/square-bale
Square-bale weight
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/baleweight-api/v1/square-bale" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/baleweight-api/v1/square-bale", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/baleweight-api/v1/square-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/square-bale",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "A square (rectangular) bale's weight = length × width × height (÷ 1,728 for cubic feet from inches) × the density. A typical 14×18×36-inch small square is about 50 lb; big 3×3 or 4×4 ft bales run hundreds. Tighter packing and higher moisture both raise the weight — and high moisture risks mould and barn-fire heating, so bale dry hay below ~18 % moisture.",
"inputs": {
"width_in": 18,
"height_in": 14,
"length_in": 36,
"density_lb_ft3": 10,
"dry_matter_pct": 88
},
"weight_lb": 52.5,
"volume_ft3": 5.25,
"dry_matter_lb": 46.2
},
"meta": {
"timestamp": "2026-06-07T08:17:59.461Z",
"request_id": "d2482871-7ad5-442a-bf24-ee44976ce6ce"
},
"status": "ok",
"message": "Square bale",
"success": true
}