/v1/afr
AFR from a target lambda
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/airfuel-api/v1/afr" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/airfuel-api/v1/afr", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/airfuel-api/v1/afr");
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/afr",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"afr": 12.495,
"note": "AFR = lambda × the stoichiometric AFR. Tuners pick a target lambda for each part of the map — around 0.85–0.90 (rich) at wide-open throttle for power and safety margin, near 1.00 for cruise and emissions — then convert to the AFR their wideband reads. Note the AFR number is fuel-specific (E85's stoichiometric AFR is ~9.8, not 14.7), so always tune in lambda when switching fuels.",
"inputs": {
"fuel": "gasoline",
"lambda": 0.85,
"stoich_afr": 14.7
},
"mixture": "rich (more fuel than stoichiometric)",
"equivalence_ratio_phi": 1.1765
},
"meta": {
"timestamp": "2026-06-06T23:53:51.652Z",
"request_id": "a15e76fc-4391-4093-afda-37a1ea90e2f7"
},
"status": "ok",
"message": "AFR",
"success": true
}