Ir al contenido
GET /v1/mix

Oil for a fuel volume

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/twostroke-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}