Ir al contenido
GET /v1/refill

Refill + operating cost

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/propane-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}