01 / Choose the measure
Monthly change and 12-month inflation are different series.
- IPCA — monthly change
How much the index changed in each month. Stable ID: br-ipca-monthly.
View monthly IPCA ↗- IPCA — trailing 12 months
Inflation accumulated over the twelve months ending in the period. ID: br-ipca-12m.
View 12-month IPCA ↗
02 / JSON
Fetch the latest trailing 12-month inflation.
GET https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-ipca-12m/latestVerifiable official dataThe response includes the IBGE aggregate and variable, source link, retrieval time, license, and unchanged published value.
03 / Python
No external dependencies.
import json
from urllib.request import urlopen
with urlopen("https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-ipca-12m/latest", timeout=30) as response:
payload = json.load(response)
latest = payload["data"][0]
print(latest["period"], latest["value"])
print(payload["meta"]["provenance"]["source_url"])04 / CSV
Download analysis-ready history.
The CSV keeps IDs, dates, raw values, and official URLs in every row.