Vai al contenuto
GET /v1/mixture

Air or fuel mass for a mixture

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}