Aller au contenu
GET /v1/mix

Oil for a fuel volume

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/twostroke-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/twostroke-api/v1/mix" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/twostroke-api/v1/mix", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/twostroke-api/v1/mix");
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/twostroke-api/v1/mix",
    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": {
        "note": "Oil = fuel ÷ ratio (a 50:1 mix is 50 parts fuel to 1 part oil). One US gallon at 50:1 needs about 2.6 fl oz of oil; at 40:1 about 3.2; at 32:1 about 4.0. Measure into the fuel, not the other way round, and shake.",
        "inputs": {
            "fuel": 1,
            "unit": "gal",
            "ratio": "50:1"
        },
        "oil_ml": 75.7,
        "fuel_ml": 3785.4,
        "oil_fl_oz": 2.56,
        "oil_percent": 1.96,
        "total_mix_ml": 3861.1
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:56.538Z",
        "request_id": "66b07f2c-2257-4e32-9fa9-5a45ad840543"
    },
    "status": "ok",
    "message": "Premix oil",
    "success": true
}