• Register

Electrical energy in Italy

[GET] https://api.terna.it/load/v2.0/electrical-energy-in-italy

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
month string month to be extracted 0..1 Gennaio
year string Year to be extracted integer 1..1 2022

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"
electrical_energy_in_italy array 0..n "electrical_energy_in_italy":[{..}]
.year string integer 1..1 "2022"
.month string 1..1 "Gennaio"
.demand_GWh string numebr 1..1 "27.389,400"

Example

cURL Request

curl --location --request GET https://api.terna.it/load/v2.0/electrical-energy-in-italy?year=<year> 
        --header 'Authorization:Bearer <OAuth Token>'
    

Response


{
    "result": {
        "message": "string",
        "status": "string"
    },
    "electrical_energy_in_italy": [
        {
          "year": "string",
          "month": "string",
          "demand_GWh": "string"
        }
    ]
}