Indicadores

IPCA acumulado em 12 meses

Changed on

Série mensal do IPCA acumulado em 12 meses, o índice oficial de inflação do Brasil. Cada ponto é o acumulado dos 12 meses até aquela data.

Endpoint descontinuado. Use as séries macroeconômicas com symbols=ipca12m para o acumulado ou symbols=ipca para a variação do mês.

Sem filtros, devolve os últimos 12 meses. Filtre com start e end no formato DD/MM/YYYY. O IPCA de um mês sai no mês seguinte.

Planos Startup e Pro.

get/api/v2/inflation

Request

  • Base URL
    https://brapi.dev
  • URL
    https://brapi.dev/api/v2/inflation
  • Auth
    HTTP bearer

Query parameters

historicalstring

true devolve a série desde 01/01/2000. Sem datas e sem este parâmetro, devolve os últimos 12 meses.

Example:false
startstring

Data inicial no formato DD/MM/YYYY.

Example:01/01/2023
endstring

Data final no formato DD/MM/YYYY. Padrão: hoje.

Example:31/12/2023
sortBystring

Campo de ordenação: date ou value. Padrão: date.

Example:date
sortOrderstring

Ordem: asc ou desc. Padrão: desc.

Example:desc

Response

IPCA acumulado em 12 meses, um ponto por mês.

requestedAtstring date-time required

Data e hora da requisição em ISO 8601.

tookinteger required

Tempo de processamento, em milissegundos.

Example response

{
  "inflation": [
    {
      "date": "01/12/2025",
      "value": "4.26",
      "epochDate": 1764558000000
    },
    {
      "date": "01/11/2025",
      "value": "4.46",
      "epochDate": 1761966000000
    },
    {
      "date": "01/10/2025",
      "value": "4.68",
      "epochDate": 1759287600000
    }
  ],
  "requestedAt": "2026-02-08T16:26:26.123Z",
  "took": 138
}

Changes

    • breaking

      for the query request parameter historical, default value false was removed

    • breaking

      for the query request parameter sortBy, default value date was removed

    • breaking

      for the query request parameter sortOrder, default value desc was removed

    • breaking

      removed the enum value asc from the query request parameter sortOrder

    • breaking

      removed the enum value date from the query request parameter sortBy

    • breaking

      removed the enum value desc from the query request parameter sortOrder

    • breaking

      removed the enum value value from the query request parameter sortBy

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      the // response's property type changed from integer to number, and format from int64 to no format for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      deleted the query request parameter country

    • warning

      deleted the query request parameter token

    • info

      the endpoint scheme security Bearer was added to the API

    • info

      the endpoint scheme security BearerAuth was removed from the API

    • info

      api tag Indicadores added

    • info

      api tag Inflação removed

    • info

      removed the pattern ^\d{2}/\d{2}/\d{4}$ from the query request parameter end

    • info

      removed the pattern ^\d{2}/\d{2}/\d{4}$ from the query request parameter start

    • info

      for the query request parameter end, the format was generalized from date to no format

    • info

      for the query request parameter historical, the type was generalized from boolean to string

    • info

      for the query request parameter start, the format was generalized from date to no format

    • info

      added subschema #2 to the response body allOf list for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      the response property became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status