Aller au contenu
GET /v1/capacity

Towing capacity

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/towing-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/towing-api/v1/capacity" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/towing-api/v1/capacity", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/towing-api/v1/capacity");
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/towing-api/v1/capacity",
    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": "Max trailer = GCWR − curb − payload (passengers and cargo in the tow vehicle). Stay within the rating.",
        "inputs": {
            "gcwr": 7000,
            "payload": 400,
            "curb_weight": 2000
        },
        "margin": 600,
        "trailer_weight": 4000,
        "within_capacity": true,
        "max_trailer_weight": 4600,
        "loaded_vehicle_weight": 2400
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:19.817Z",
        "request_id": "3240a73f-aa35-409f-92fd-7fa28cd8c521"
    },
    "status": "ok",
    "message": "Towing capacity",
    "success": true
}