Widget V2 API

Getting widget by slug for locale en

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: "d13897dd5a62e6384f8b158b831f5b937faa1c607ba5b4103369c04d48bdba0f"

Route

GET /widgets/metapher?locale=en&datetime=2015-09-15+09%3A28%3A59+%2B0200

Query Parameters

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

cURL

curl "https://api.esios.ree.es/widgets/metapher?locale=en&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:\"d13897dd5a62e6384f8b158b831f5b937faa1c607ba5b4103369c04d48bdba0f\"" \

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