Vai al contenuto
GET /v1/square-bale

Square-bale weight

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/baleweight-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}