Auction API

Getting a list of auctions for a specific year

Parameters

Name Description
locale Get translations for sources (es, en). Default language: es
year A four digits year to filter auctions by

Request

Headers

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

Route

GET /auctions?year=2014

Query Parameters

year=2014

cURL

curl "https://api.esios.ree.es/auctions?year=2014" -X GET \
	-H "Accept: application/json; application/vnd.esios-api-v1+json" \
	-H "Content-Type: application/json" \
	-H "x-api-key:\"dc2370708236bec6bc3fb4156b1cde67b96a08fc7afb7a4e345ae0009f4575c6\"" \

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
 
{
  "auctions": [
    {
      "event_date": "2014-11-30T00:00:00.000Z",
      "data_date": "2015-09-15T07:31:36.000Z",
      "event_type": "Publicación especificación de subasta anual",
      "geo_id": 2,
      "download_links": [
        "/archives/50/download?date=2015-09-15T07:31:36Z",
        "/archives/51/download?date=2015-09-15T07:31:36Z"
      ]
    },
    {
      "event_date": "2014-01-01T00:00:00.000Z",
      "data_date": "2015-09-15T07:31:36.000Z",
      "event_type": "Publicación especificación de subasta mensual",
      "geo_id": 2,
      "download_links": [
        "/archives/48/download?date=2015-09-15T07:31:36Z",
        "/archives/49/download?date=2015-09-15T07:31:36Z"
      ]
    },
    {
      "event_date": "2013-12-01T00:00:00.000Z",
      "data_date": "2015-09-15T07:31:36.000Z",
      "event_type": "Festivo Francia",
      "geo_id": 2,
      "download_links": [
        "/archives//download?date=2015-09-15T07:31:36Z"
      ]
    }
  ]
}