Widget V2 API

Getting a list of widgets

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
widget_type filter by widget type (offer, widget)

Request

Headers

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

Route

GET /widgets?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?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:\"cd96938292db4ad6f80450434a242ee1d56510e9dc256f165ef74b286ba1cfcd\"" \

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
 
{
  "widgets": [
    {
      "id_widget": 1,
      "id": "potencia",
      "name": "POTENCIA",
      "subtitle": "GEN. CONVENCIONAL",
      "type": "Widget"
    },
    {
      "id_widget": 2,
      "id": "01-generacion-y-consumo",
      "name": "GENERACIÓN Y CONSUMO",
      "subtitle": null,
      "type": "Widget"
    },
    {
      "id_widget": 3,
      "id": "generacion-libre-de-co2",
      "name": "GENERACIÓN LIBRE DE CO<sub>2</sub>",
      "subtitle": null,
      "type": "Widget"
    },
    {
      "id_widget": 4,
      "id": "balance-electrico",
      "name": "BALANCE ELÉCTRICO",
      "subtitle": null,
      "type": "Widget"
    },
    {
      "id_widget": 5,
      "id": "ademas-gyc",
      "name": "ADEMÁS (GYC)",
      "subtitle": null,
      "type": "Widget"
    },
    {
      "id_widget": 6,
      "id": "reliable-potencia",
      "name": "POTENCIA R",
      "subtitle": "GEN. CONVENCIONAL",
      "type": "Widget"
    },
    {
      "id_widget": 7,
      "id": "offer-widget-1",
      "name": "Offer widget 1",
      "subtitle": "GEN. CONVENCIONAL",
      "type": "Offer"
    },
    {
      "id_widget": 11,
      "id": "metafora",
      "name": "METAFORA",
      "subtitle": "Metafora",
      "type": "Widget"
    },
    {
      "id_widget": 8,
      "id": "widget-month-before-after",
      "name": "Widget before after",
      "subtitle": null,
      "type": "Widget"
    }
  ]
}