Zum Inhalt springen
GET /v1/weight

Grain weight from bushels

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "note": "Weight = bushels × the crop's standard test weight (corn & sorghum 56 lb/bu, wheat/soybeans 60, oats 32, barley 48). Test weight is a quality measure too — light grain weighs less per bushel than the standard.",
        "inputs": {
            "crop": "corn",
            "bushels": 4090,
            "test_weight_lb": 56
        },
        "total_pounds": 229040,
        "total_us_tons": 114.52,
        "total_metric_tonnes": 103.89,
        "test_weight_lb_per_bu": 56
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:50.232Z",
        "request_id": "4303719a-8e92-40d4-9916-f4a5370096ea"
    },
    "status": "ok",
    "message": "Grain weight",
    "success": true
}