Zum Inhalt springen
GET /v1/ratio

Ratio from amounts

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/twostroke-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}