/v1/meta
Totals, capacity & fuel breakdown
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/powerplants-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/powerplants-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/powerplants-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/powerplants-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"note": "id = WRI/GPPD identifier. Capacity in megawatts (MW).",
"fuels": [
{
"fuel": "Solar",
"count": 10665
},
{
"fuel": "Hydro",
"count": 7156
},
{
"fuel": "Wind",
"count": 5344
},
{
"fuel": "Gas",
"count": 3998
},
{
"fuel": "Coal",
"count": 2330
},
{
"fuel": "Oil",
"count": 2320
},
{
"fuel": "Biomass",
"count": 1430
},
{
"fuel": "Waste",
"count": 1068
},
{
"fuel": "Nuclear",
"count": 195
},
{
"fuel": "Geothermal",
"count": 189
},
{
"fuel": "Storage",
"count": 135
},
{
"fuel": "Other",
"count": 43
},
{
"fuel": "Cogeneration",
"count": 41
},
{
"fuel": "Petcoke",
"count": 12
},
{
"fuel": "Wave and Tidal",
"count": 10
}
],
"total": 34936,
"fields": [
"id",
"name",
"country",
"country_name",
"capacity_mw",
"fuel",
"latitude",
"longitude",
"commissioning_year",
"owner"
],
"source": "WRI Global Power Plant Database (CC-BY 4.0)",
"countries": 167,
"total_capacity_mw": 5706975
},
"meta": {
"timestamp": "2026-05-31T03:47:07.417Z",
"request_id": "edaf7a5a-5e99-4219-9857-8b3955d2fda9"
},
"status": "ok",
"message": "Meta retrieved",
"success": true
}