/v1/meta
Spec
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}