Μετάβαση στο περιεχόμενο
GET /v1/fuel

Fuel combustion emissions

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/carbonfootprint-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "input": {
            "liters": 40,
            "fuel_type": "diesel"
        },
        "co2e_g": 107200,
        "co2e_kg": 107.2,
        "co2e_tonnes": 0.1072,
        "factor_kg_per_liter": 2.68
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:32.362Z",
        "request_id": "01d80ca3-7ebc-46ed-a68c-47845560da21"
    },
    "status": "ok",
    "message": "Fuel emissions estimated",
    "success": true
}