Zum Inhalt springen
GET /v1/mixture

Air or fuel mass for a mixture

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/airfuel-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "afr": 14.7,
        "note": "At a chosen lambda the mixture has AFR = lambda × stoichiometric, so the fuel for a charge of air = air mass ÷ AFR (and air for a fuel mass = fuel × AFR). This links the air the engine breathes each cycle to the fuel the injectors must add — the heart of how an ECU and a tuner size injectors and set fuelling from the measured air mass.",
        "inputs": {
            "fuel": "gasoline",
            "lambda": 1,
            "air_mass_g": 1000,
            "stoich_afr": 14.7,
            "fuel_mass_g": null
        },
        "fuel_mass_g": 68.027
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:51.843Z",
        "request_id": "1043e0bb-f4d1-4a37-b868-802e164735cd"
    },
    "status": "ok",
    "message": "Mixture",
    "success": true
}