Widget V2 API

Getting a specific widget POTENCIA by slug

Parameters

Name Description
locale Get translations for sources (es, en). Default language: es
datetime Datetime to filter indicators values
start_date Beginning of the date range to filter indicators values
end_date End of the date range to filter indicators values

Request

Headers

Accept: application/json; application/vnd.esios-api-v2+json
Content-Type: application/json
x-api-key: "f5084b5788a2c81e16d9e9776d4b6a03a43a3d275d6db6ec52d207098a424b4b"

Route

GET /widgets/potencia?datetime=2015-09-15+09%3A28%3A59+%2B0200

Query Parameters

datetime=2015-09-15 09:28:59 +0200

cURL

curl "https://api.esios.ree.es/widgets/potencia?datetime=2015-09-15+09%3A28%3A59+%2B0200" -X GET \
	-H "Accept: application/json; application/vnd.esios-api-v2+json" \
	-H "Content-Type: application/json" \
	-H "x-api-key:\"f5084b5788a2c81e16d9e9776d4b6a03a43a3d275d6db6ec52d207098a424b4b\"" \

Response

Headers

Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
x-amzn-RequestId: f6a28abc-ce94-4093-978f-b063deed7f00
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type,X-Amz-Date,Authorization,x-api-key
x-amz-apigw-id: eq_3DHNVDoEF89g=
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,HEAD
X-Amzn-Trace-Id: Root=1-63c11360-73cdfa571c316f1a381cd368;Sampled=0
Content-Encoding: br
Vary: Accept-Encoding
X-Cache: Miss from cloudfront
Via: 1.1 d7ce10131df3183f928b50a7e6c2d1c0.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MAD53-P1
X-Amz-Cf-Id: 9mgkaMY5sQ_iJ7A5YEnTBV2E-gmn0R84tq3ArNs0N0iFznzWuRIWzw==

Status

200

Body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
 
{
  "widget": {
    "id_widget": 1,
    "id": "potencia",
    "name": "POTENCIA",
    "subtitle": "GEN. CONVENCIONAL",
    "description": null,
    "reliable": false,
    "type": "Widget",
    "main_indicators": [],
    "indicators": [
      {
        "id": 10001,
        "alias": "Disponible",
        "name": "composited indicator 1",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/10001?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 462,
        "alias": "Indisponible",
        "name": "indicator 1",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/462?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 10003,
        "alias": "Instalada",
        "name": "composited indicator 2",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/10003?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&time_trunc=hour",
        "main": true,
        "display_options": null
      },
      {
        "id": 464,
        "alias": "Hidráulica UGH",
        "name": "indicator 2",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/464?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 465,
        "alias": "Turbina bombeo",
        "name": "indicator 3",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/465?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 466,
        "alias": "Nuclear",
        "name": "indicator 4",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/466?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 467,
        "alias": "Hulla antracita",
        "name": "indicator 5",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/467?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 468,
        "alias": "Hulla sub-bitumirosa",
        "name": "indicator 6",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/468?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 469,
        "alias": "Ciclo combinado",
        "name": "indicator 7",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/469?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 470,
        "alias": "Fuel",
        "name": "indicator 8",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/470?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      },
      {
        "id": 471,
        "alias": "Gas Natural",
        "name": "indicator 9",
        "short_name": null,
        "serie_type": null,
        "url": "/indicators/471?datetime=2015-09-15%2007%3A34%3A34%20%2B0200&geo_agg=sum&time_trunc=hour",
        "main": false,
        "display_options": null
      }
    ]
  }
}