• Register

Generation Plants

[GET] https://api.terna.it/generation/v2.0/generation-plants

Authorization  OAuth 2.0

Request Header

API field Type Description Format Card Example
businessID string 0..1
Authorization string OAuth Token 1..1 Bearer   <token>
Accept string 0..1 Application/Json

Query Params

API field Type Description Format Card Example
region string Region to be extracted 0..1 Valle D'Aosta
province string Provinces to be extracted 0..n Aosta
capacityType string Capacity type to be extracted 0..1 Lorda
source string Source to be extracted 0..1 Fotovoltaico
year string Year to be extracted integer 1..1 2023

Capacity Type List

Capacity type is to be chosen as an element of the set [ 'Lorda', 'Netta']

Source List

Activity is to be chosen as an element of the set [ 'Eolico', 'Fotovoltaico', 'Geotermoelettrico', 'Idrico', 'Termoelettrico' ]

IMPORTANT NOTE : when the value entered does not match one of the expected values, an error will not be returned, but an empty body will be returned.

Response Structure 200

API field Type Description Format Card Example
result Obj Result
1..1 "result":{..}
.message string
 1..1 "OK"
.status string
 1..1 "Completed"
generation_plants array 0..n "generation_plants":[{..}]
.year string integer 1..1 "2023"
.capacity_type string 1..1 "Lorda"
.region string 1..1 "Valle D'Aosta"
.province string 1..1 "Aosta"
.source string 1..1 "Bioenergie"
.efficient_power_MW string number 1..1 "14,243"

Example

cURL Request

curl --location --request GET https://api.terna.it/generation/v2.0/generation-plants??year=<year>®ion=<region>&province=<province>&capacityType=<capacityType> 
        --header 'Authorization:Bearer <OAuth Token>'
    

Response


{
    "result": {
        "message": "string",
        "status": "string"
    },
    "generation_plants": [
        {
          "year": "string",
          "capacity_type": "string",
          "region": "string",
          "province": "string",
          "source": "string",
          "efficient_power_MW": "string"
        }
    ]
}