Skip to main content
POST
/
api
/
ecb
/
series
/ecb/series
curl --request POST \
  --url https://api.anysite.io/api/ecb/series \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "series": "<string>",
  "count": 2,
  "timeout": 300,
  "start_period": "2020",
  "end_period": "2024"
}
'
[
  {
    "key": "<string>",
    "dimensions": [
      {
        "id": "<string>",
        "code": "<string>",
        "@type": "@ecb_dimension_value",
        "label": "<string>"
      }
    ],
    "observations": [
      {
        "period": "<string>",
        "@type": "@ecb_observation",
        "value": 123,
        "obs_status": "<string>",
        "obs_status_label": "<string>",
        "obs_conf": "<string>",
        "obs_conf_label": "<string>",
        "obs_pre_break": "<string>",
        "obs_com": "<string>"
      }
    ],
    "@type": "@ecb_series",
    "title": "<string>",
    "title_complement": "<string>",
    "unit": "<string>",
    "unit_label": "<string>",
    "unit_mult": 123,
    "decimals": 123,
    "collection": "<string>",
    "source_agency": "<string>",
    "time_format": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
series
string
required

Full series key identifying a single time series

Examples:

"EXR.D.USD.EUR.SP00.A"

"ICP.M.U2.N.000000.4.ANR"

"FM.B.U2.EUR.4F.KR.MRR_FR.LEV"

count
integer
required

Number of most recent observations to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
start_period
string | null

Earliest time period, inclusive

Example:

"2020"

end_period
string | null

Latest time period, inclusive

Example:

"2024"

Response

Successful Response

key
string
required
dimensions
EcbDimensionValue · object[]
required
observations
EcbObservation · object[]
required
@type
string
default:@ecb_series
title
string | null
title_complement
string | null
unit
string | null
unit_label
string | null
unit_mult
integer | null
decimals
integer | null
collection
string | null
source_agency
string | null
time_format
string | null