Vai al contenuto
GET /v1/payload

Vehicle payload

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/towing-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Available payload = GVWR − curb − tongue weight. The trailer's tongue weight counts against the tow vehicle's payload.",
        "inputs": {
            "gvwr": 3000,
            "curb_weight": 2000,
            "tongue_weight": 360
        },
        "available_payload": 640,
        "payload_before_tongue": 1000
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:19.917Z",
        "request_id": "59a76526-a83a-4e12-b32a-6111308cbd57"
    },
    "status": "ok",
    "message": "Vehicle payload",
    "success": true
}