/v1/weight
Grain weight from bushels
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}