/v1/refill
Refill + operating cost
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/propane-api/v1/refill" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/propane-api/v1/refill", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/propane-api/v1/refill");
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/propane-api/v1/refill",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Fill cost = usable gallons × price per gallon. Cost per 100k BTU lets you compare propane to natural gas or electricity. Pass appliance_btu to also get the running cost per hour.",
"inputs": {
"unit": "gal",
"tank_size": 500,
"price_per_gallon": 3
},
"fill_cost": 1200,
"run_hours": 1219.36,
"appliance_btu": 30000,
"cost_per_hour": 0.9841,
"cost_per_100k_btu": 3.2804,
"usable_propane_gal": 400
},
"meta": {
"timestamp": "2026-06-06T07:14:06.184Z",
"request_id": "6d0204fc-200a-4f9c-9ad6-06d58a9049e4"
},
"status": "ok",
"message": "Refill cost",
"success": true
}