/v1/mix
Oil for a fuel volume
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
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_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"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
}