/v1/freight-class
NMFC LTL freight class
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/freight-api/v1/freight-class" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/freight-api/v1/freight-class", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/freight-api/v1/freight-class");
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/freight-api/v1/freight-class",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "LTL freight class from the NMFC density scale: density = weight / cubic feet. Denser freight is a lower (cheaper) class — 50 is densest, 500 lightest.",
"inputs": {
"width": 40,
"height": 48,
"length": 48,
"weight": 200
},
"cubic_feet": 53.3333,
"freight_class": 250,
"density_lb_per_cuft": 3.75
},
"meta": {
"timestamp": "2026-06-05T21:48:47.468Z",
"request_id": "6685750f-0f28-40ac-a2be-a5c6b8cfc00b"
},
"status": "ok",
"message": "Freight class",
"success": true
}