Skip to main content

Retrive an indicator

GET https://data.partnr.ai/v2/macroeconomics/indicators/[id]

Returns a time series of the macroeconomic indicator specified by the [id] identifier. By default, datapoints are ordered by date, with the most recent datapoint first.

Request Parameters

ParameterLocationDescriptionRequired
[id]URLId of the indicator to be queried.Required
start_dateQuery parameterDate to start time-series.
Format: YYYY-MM-DD
Optional
end_dateQuery parameterDate to end time-series.
Format: YYYY-MM-DD
Optional
countryQuery parameterId of the country to query.
Format: ISO 3166-1 alpha-3
Optional
unitQuery parameterUnit of the indicators to query.Optional
limitQuery parameterQuantity of datapoints to return. Default: 100Optional

Response

CodeDescription
200Returns the indicator's time series.
404The indicator was not found.
401Unauthorized.

Example

[
{
"date": "2022-03-01T00:00:00.000Z",
"type": "INFLATION_RATE",
"unit": "MONTHLY",
"country": "BRA",
"value": 1.62
},
{
"date": "2022-02-01T00:00:00.000Z",
"type": "INFLATION_RATE",
"unit": "MONTHLY",
"country": "BRA",
"value": 1.01
},
{
"date": "2022-01-01T00:00:00.000Z",
"type": "INFLATION_RATE",
"unit": "MONTHLY",
"country": "BRA",
"value": 0.54
}
]