/v1/plant
A single power plant by WRI/GPPD id
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/powerplants-api/v1/plant" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/powerplants-api/v1/plant", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/powerplants-api/v1/plant");
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/powerplants-api/v1/plant",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"id": "WRI1000452",
"fuel": "Hydro",
"name": "Three Gorges Dam",
"owner": null,
"country": "CHN",
"latitude": 30.8235,
"longitude": 111.0032,
"capacity_mw": 22500,
"country_name": "China",
"commissioning_year": 2003
},
"meta": {
"timestamp": "2026-05-31T03:47:07.273Z",
"request_id": "9ee13cc4-c7b5-401b-be7c-8766d7980550"
},
"status": "ok",
"message": "Power plant retrieved",
"success": true
}