---
title: "Get accumulated economic index for a period"
method: GET
path: "/economic-indexes"
tags: ["Economic Indexes"]
---

# Get accumulated economic index for a 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)
- URL: `https://api.kolek.com.br/economic-indexes`
- Auth: HTTP bearer

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

## Query parameters

- `startDate` string, required
- `endDate` string, required
- `indexType` 'IGP_M' | 'IPCA' | 'INPC' | 'INCC', required

## Response `200`

Economic index data retrieved successfully

- EconomicIndexResponseDto
  - `indexType` 'IGP_M' | 'IPCA' | 'INPC' | 'INCC', required: Type of economic index
  - `indexName` string, required: Index display name
  - `startDate` string, required: Start date of the query
  - `endDate` string, required: End date of the query
  - `accumulatedValue` number, required: Accumulated index value for the period (percentage)
  - `monthlyValues` MonthlyValueDto[], required: Monthly values within the period
    - `date` string, required: Month/Year of the index
    - `value` string, required: Monthly variation in percentage
  - `monthsCount` number, required: Total number of months in the period

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `500`: Internal server error

---

[API](https://skmtc.dev/kolek/apis/kolek-api.md) - [All operations](https://skmtc.dev/kolek/apis/kolek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kolek/apis/kolek-api/revisions/b10a60bfcfa4?raw)
