Naar de inhoud
GET /v1/ratio

Ratio from amounts

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/twostroke-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Ratio = fuel ÷ oil (both in the same unit), reported as N:1. A bigger first number is leaner (less oil). Always use the ratio your engine's manual specifies; too little oil seizes it, too much fouls plugs and smokes.",
        "ratio": 50,
        "inputs": {
            "oil": 100,
            "fuel": 5000,
            "unit": "ml"
        },
        "oil_percent": 1.96,
        "ratio_label": "50:1",
        "nearest_common_ratio": "50:1"
    },
    "meta": {
        "timestamp": "2026-06-06T07:13:56.631Z",
        "request_id": "28a15af7-b16f-408f-b9d1-b07a20b49b26"
    },
    "status": "ok",
    "message": "Identify ratio",
    "success": true
}