Ir al contenido
GET /v1/meta

Spec

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/energycost-api

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

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/energycost-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/energycost-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/energycost-api/v1/meta");
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/energycost-api/v1/meta",
    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": "Currency-agnostic. kWh = power (kW) × hours; cost = kWh × rate. Months use 365/12 days.",
        "service": "energycost",
        "endpoints": {
            "/v1/cost": "Running cost (per day/week/month/year) from power, hours per day and a per-kWh rate.",
            "/v1/compare": "Compare two appliances' running cost and the payback of a more efficient one.",
            "/v1/convert": "Convert between watts, hours and kWh, with optional cost at a tariff."
        },
        "description": "Energy cost maths: appliance running cost, appliance comparison with payback, and energy/power/cost conversion."
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:20.793Z",
        "request_id": "a61bf85c-00fc-492a-8700-7c9da0c56d9a"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}