/v1/vehicle
Road/rail travel emissions
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/carbonfootprint-api/v1/vehicle" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/carbonfootprint-api/v1/vehicle", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/carbonfootprint-api/v1/vehicle");
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/carbonfootprint-api/v1/vehicle",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"input": {
"vehicle": "car_petrol",
"passengers": 1,
"distance_km": 100
},
"co2e_g": 17000,
"co2e_kg": 17,
"co2e_tonnes": 0.017,
"per_passenger": {
"co2e_g": 17000,
"co2e_kg": 17,
"co2e_tonnes": 0.017
},
"factor_kg_per_km": 0.17
},
"meta": {
"timestamp": "2026-05-30T22:48:32.439Z",
"request_id": "dda06509-0601-477d-ac21-55857457182b"
},
"status": "ok",
"message": "Vehicle emissions estimated",
"success": true
}