Skip to main content
POST
/
api
/
eurostat
/
datasets
/eurostat/datasets
curl --request POST \
  --url https://api.anysite.io/api/eurostat/datasets \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "dataset": "<string>",
  "count": 2,
  "timeout": 300,
  "geo": [
    "DE",
    "FR",
    "EU27_2020"
  ],
  "time": [
    "2022",
    "2023"
  ],
  "since": "2020",
  "until": "2024",
  "filters": {
    "na_item": [
      "B1GQ"
    ],
    "unit": [
      "CP_MEUR"
    ]
  }
}
'
[
  {
    "dimensions": [
      {
        "id": "<string>",
        "code": "<string>",
        "@type": "@eurostat_observation_dimension",
        "label": "<string>"
      }
    ],
    "value": 123,
    "@type": "@eurostat_observation",
    "status": "<string>",
    "status_label": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
dataset
string
required

Dataset code

Examples:

"nama_10_gdp"

"prc_hicp_midx"

"demo_pjan"

count
integer
required

Number of observations to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
geo
string[] | null

Filter by geopolitical entity code(s)

Example:
["DE", "FR", "EU27_2020"]
time
string[] | null

Filter by exact time period(s)

Example:
["2022", "2023"]
since
string | null

Earliest time period, inclusive

Example:

"2020"

until
string | null

Latest time period, inclusive

Example:

"2024"

filters
Filters · object

Additional dimension filters as a mapping of dimension code to allowed value codes

Example:
{ "na_item": ["B1GQ"], "unit": ["CP_MEUR"] }

Response

Successful Response

dimensions
EurostatObservationDimension · object[]
required
value
required
@type
string
default:@eurostat_observation
status
string | null
status_label
string | null