Skip to main content
POST
/
api
/
imf
/
datasets
/imf/datasets
curl --request POST \
  --url https://api.anysite.io/api/imf/datasets \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "dataset": "<string>",
  "count": 2,
  "timeout": 300,
  "agency": "IMF.STA",
  "version": "5.0.0",
  "filters": {
    "COUNTRY": [
      "USA"
    ],
    "FREQUENCY": [
      "A"
    ],
    "INDEX_TYPE": [
      "CPI"
    ]
  },
  "since": "2020",
  "until": "2024"
}
'
[
  {
    "dimensions": [
      {
        "id": "<string>",
        "code": "<string>",
        "@type": "@imf_observation_dimension"
      }
    ],
    "time": "<string>",
    "value": 123,
    "@type": "@imf_observation",
    "reference_period": "<string>",
    "derivation_type": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
dataset
string
required

Dataset id

Examples:

"CPI"

"FM"

"GDD"

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
agency
string
default:IMF.STA

Maintenance agency id

Examples:

"IMF.STA"

"IMF.FAD"

version
string
default:5.0.0

Dataset version

Example:

"5.0.0"

filters
Filters · object

Dimension filters as a mapping of dimension id to allowed value codes

Example:
{
"COUNTRY": ["USA"],
"FREQUENCY": ["A"],
"INDEX_TYPE": ["CPI"]
}
since
string | null

Earliest time period, inclusive

Example:

"2020"

until
string | null

Latest time period, inclusive

Example:

"2024"

Response

Successful Response

dimensions
ImfObservationDimension · object[]
required
time
string
required
value
required
@type
string
default:@imf_observation
reference_period
string | null
derivation_type
string | null