Economic Indexes

Get accumulated economic index for a period

Fetches economic index data from BCB API and calculates the accumulated value for the specified period

get/economic-indexes

Request

  • Base URL
    https://api.kolek.com.br (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

startDatestring required
Example:2024-01-01

Start date for the index query

endDatestring required
Example:2024-12-31

End date for the index query

indexType'IGP_M' | 'IPCA' | 'INPC' | 'INCC' required
Example:IGP_M

Type of economic index

Response

Economic index data retrieved successfully

indexType'IGP_M' | 'IPCA' | 'INPC' | 'INCC' required

Type of economic index

indexNamestring required

Index display name

startDatestring required

Start date of the query

endDatestring required

End date of the query

accumulatedValuenumber required

Accumulated index value for the period (percentage)

monthsCountnumber required

Total number of months in the period

Example response

{
  "indexType": "IGP_M",
  "indexName": "IGP-M",
  "startDate": "2024-01-01",
  "endDate": "2024-12-31",
  "accumulatedValue": 5.21,
  "monthlyValues": [
    {
      "date": "01/2024",
      "value": "0.45"
    }
  ],
  "monthsCount": 12
}

Changes

No recorded changes to this operation across all 1 revision of this API.