Skip to main content
POST
/
api
/
oecd
/
datasets
/oecd/datasets
curl --request POST \
  --url https://api.anysite.io/api/oecd/datasets \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "dataset": "<string>",
  "count": 2,
  "timeout": 300,
  "filters": {
    "MEASURE": [
      "CPI"
    ],
    "REF_AREA": [
      "USA",
      "DEU"
    ]
  },
  "start": "2020",
  "end": "2024"
}
'
[
  {
    "dimensions": [
      {
        "id": "<string>",
        "code": "<string>",
        "@type": "@oecd_observation_dimension",
        "label": "<string>",
        "code_label": "<string>"
      }
    ],
    "value": 123,
    "attributes": [
      {
        "id": "<string>",
        "code": "<string>",
        "@type": "@oecd_observation_attribute",
        "label": "<string>",
        "code_label": "<string>"
      }
    ],
    "@type": "@oecd_observation"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
dataset
string
required

Full dataflow reference as AGENCY,FLOW,VERSION (version optional)

Example:

"OECD.SDD.TPS,DSD_PRICES@DF_PRICES_ALL,1.0"

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
filters
Filters · object

Dimension filters as a mapping of dimension code to allowed value codes; omitted dimensions match all values

Example:
{
"MEASURE": ["CPI"],
"REF_AREA": ["USA", "DEU"]
}
start
string | null

Earliest time period, inclusive

Example:

"2020"

end
string | null

Latest time period, inclusive

Example:

"2024"

Response

Successful Response

dimensions
OecdObservationDimension · object[]
required
value
required
attributes
OecdObservationAttribute · object[]
required
@type
string
default:@oecd_observation