/v1/weight
Grain weight from bushels
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}