Naar de inhoud
GET /v1/refill

Refill + operating cost

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}