Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Índices de inflação do Brasil disponibilizados em formato JSON

License

NotificationsYou must be signed in to change notification settings

investash/inflacao

Repository files navigation

Esse projeto tem o objetivo de centralizar e disponibilizar dados em JSON dos principais índices de inflação do Brasil.

Índices Disponibilizados

ÍndiceÚltima AtualizaçãoNomeFonte
IPCA02/2025Índice Nacional de Preços ao Consumidor AmploIBGE
IPCA1502/2025Índice Nacional de Preços ao Consumidor Amplo 15IBGE
IPCA - 12 Meses02/2025IPCA acumulado nos últimos 12 mesesIBGE
INPC02/2025Índice Nacional de Preços ao ConsumidorIBGE
IGP-M02/2025Índice Geral de Preços - MercadoFGV
IGP-DI02/2025Índice Geral de Preços – Disponibilidade InternaFGV
IPC-BR02/2025Índice de Preços ao Consumidor - BrasilFGV
IPC-M02/2025Índice de Preços ao Consumidor - MercadoFGV
IPC-SP02/2025Índice de Preços ao Consumidor do Município de São PauloFIPE

Além dos índices de inflação, também é disponibilizado asmetas de inflação definida peloConselho Monetario Nacional (CMN) do Banco Central para cada ano.

Como consultar um índice?

Você pode consultar um índice fazendo umrequest direto para o GitHub.

Usando cURL

curl --request GET --url https://raw.githubusercontent.com/investash/inflacao/main/ipca/valores.json

De um ano em específico:

curl --request GET --url https://raw.githubusercontent.com/investash/inflacao/main/ipca/anos/2005.json

Python

importrequestsurl="https://raw.githubusercontent.com/investash/inflacao/main/ipca/valores.json"response=requests.get(url)print(response.json())

De um ano em específico:

importrequestsurl="https://raw.githubusercontent.com/investash/inflacao/main/ipca/anos/2005.json"response=requests.get(url)print(response.json())

Javascript - Axios

importaxiosfrom"axios";constoptions={method:"GET",url:"https://raw.githubusercontent.com/investash/inflacao/main/ipca/valores.json",};try{const{ data}=awaitaxios.request(options);console.log(data);}catch(error){console.error(error);}

De um ano em específico:

importaxiosfrom"axios";constoptions={method:"GET",url:"https://raw.githubusercontent.com/investash/inflacao/main/ipca/anos/2005.json",};try{const{ data}=awaitaxios.request(options);console.log(data);}catch(error){console.error(error);}

PHP - Guzzle

<?php$client =new \GuzzleHttp\Client();$response =$client->request('GET','https://raw.githubusercontent.com/investash/inflacao/main/ipca/anos/2005.json');echo$response->getBody();

Licença

 Copyright (c) 2024 Investash Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Releases

No releases published

[8]ページ先頭

©2009-2025 Movatter.jp