Free, no-auth API for normalized Brazilian economic series from BCB and IBGE.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/felipegambettadesouza6-jpg/open-economicsResumen de Tools
# Open Economics API
A free, read-only semantic routing layer for authoritative Brazilian economic data.
- **Semantic API:** https://open-economics-data.knbf982hkn.chatgpt.site/api/v2
- **Stable series API:** https://open-economics-data.knbf982hkn.chatgpt.site/api/v1
- **MCP:** https://open-economics-data.knbf982hkn.chatgpt.site/api/mcp
- **Documentation:** https://open-economics-data.knbf982hkn.chatgpt.site/en/docs
- **Runnable examples:** https://open-economics-data.knbf982hkn.chatgpt.site/en/guides
- **Source and issue tracker:** https://github.com/felipegambettadesouza6-jpg/open-economics
- **Reliability policy:** [RELIABILITY.md](./RELIABILITY.md)
- **2.0 release evidence:** [benchmarks/RELEASE-READINESS.md](./benchmarks/RELEASE-READINESS.md)
- **Contributing:** [CONTRIBUTING.md](./CONTRIBUTING.md)
- **Security:** [SECURITY.md](./SECURITY.md)
**[Try the API in the browser →](https://open-economics-data.knbf982hkn.chatgpt.site/en/playground?utm_source=github&utm_medium=repository&utm_campaign=github-repo)**
Open Economics 2.0 starts with a real economic-information need, resolves its
meaning independently of current coverage, and then routes it to official data.
Its synchronized catalog currently exposes 12,875 BCB SGS series and IBGE
aggregates, plus direct SICONFI fiscal-report, MDIC Comex Stat, and ANP
fuel-price access and versioned EPE electricity-consumption, MTE Novo Caged,
CVM investment-fund, Tesouro RTN fiscal, and RMD Federal Public Debt data (12,886 official datasets in total). The 32 convenient v1
series IDs remain compatible.
Discovery, REST, the existing product, and MCP share one semantic core. A
resolved concept is kept separate from availability, so an unsupported need is
reported explicitly instead of being silently mapped to a nearby series. Units,
dimensions, reference periods, source identifiers, raw values, methodology
links, and retrieval provenance travel with the data.
## Start with the economic need
```bash
curl --fail --silent \
"https://open-economics-data.knbf982hkn.chatgpt.site/api/v2/search?q=desemprego%20desde%202015"
curl --fail --silent \
"https://open-economics-data.knbf982hkn.chatgpt.site/api/v2/datasets/ibge-aggregates%3A6381/schema"
```
For BCB, `/api/v2/datasets/bcb-sgs:{code}/observations` provides direct series
access with authoritative frequency, unit, source, coverage, formula, and
warning metadata. For IBGE, inspect `/schema`, then send explicit `variable`,
`periods`, `locality`, and `classification` selections to `/observations`.
SICONFI DCA, RREO, and RGF use the same dataset routes while retaining entity,
reporting period, annex, account, column, and raw value. Official
multidimensional structure is preserved instead of flattened away.
Comex Stat preserves trade-flow dimensions and metrics. ANP fuel-price queries
return period/geography/product aggregates calculated from official station
observations, with source counts and the transformation disclosed while station
identity and address fields are excluded. EPE and MTE serve compact, versioned
snapshots of official workbooks: electricity retains geography/class/market,
while adjusted Novo Caged stock and flows retain their separate national,
region/state, or economic-activity breakdowns. CVM daily fund reports retain
fund/class identity and quota values; classification aggregates sum only
additive measures and identify incomplete filing dates. RTN retains its monthly
account hierarchy and above-the-line cash/effective-payment conventions. RMD
debt statistics keep composition, holder, maturity, and cost tables separate,
with their official units, definitions, and publication vintage.
## When to use Open Economics
If you already know the exact official identifier and source contract, calling
the publisher directly remains the shortest path. Open Economics is useful when
the need starts in human language, spans publisher conventions, requires
explicit dimensions, or must retain one consistent provenance and error model.
## One contract across official sources
The same observation envelope can retrieve BCB IBC-Br (SGS 24363) and IBGE real
GDP growth (SIDRA 5932/6561), without maintaining two date and response parsers:
```bash
curl --fail --silent "https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-ibc-br/observations?start=2024-01-01"
curl --fail --silent "https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-gdp-real-yoy/observations?start=2024-01-01"
```
The runnable [multi-source Python example](./examples/multi_source_python.py)
uses both series and prints their official provenance and freshness state.
## Start with the catalog
```bash
curl --fail --silent "https://open-economics-data.knbf982hkn.chatgpt.site/api/v1"
curl --fail --silent "https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators?q=ipca&source=ibge"
curl --fail --silent "https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-ipca-monthly"
```
`GET /api/v1/indicators` is the discovery endpoint. Its
`meta.available_filters` field lists every canonical `category`, `frequency`,
and `source` value. It accepts:
| Parameter | Meaning |
| --- | --- |
| `q` | Case-insensitive search across IDs, names, aliases, and official codes |
| `category` | A canonical category ID such as `inflation` or `interest-rates` |
| `frequency` | `daily`, `monthly`, `quarterly`, or `annual` |
| `source` | `bcb` or `ibge` |
| `limit` | 1–500, default 100 |
Invalid filters are rejected with a structured problem response; they never
silently become an empty result set.
## Retrieve a series
```bash
curl --fail --silent \
"https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-ipca-monthly/observations?start=2024-01-01&end=2024-12-31"
curl --fail --silent \
"https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-selic-target/observations?start=2025-01-01&order=desc&limit=12"
curl --fail --silent \
"https://open-economics-data.knbf982hkn.chatgpt.site/api/v1/indicators/br-selic-target/latest"
```
Observation requests accept `start`, `end`, `order=asc|desc`, `limit=1..5000`,
and `format=json|csv`. Dates use `YYYY-MM-DD` and `end` cannot be in the
future. Daily BCB requests are limited to ten years because SGS applies the
same upstream limit.
All JSON series responses use the same envelope:
```json
{
"data": [
{
"date": "2024-01-01",
"period": "2024-01",
"source_date": "202401",
"value": 0.42,
"raw_value": "0.42",
"status": "observed"
}
],
"meta": {
"indicator": { "id": "br-ipca-monthly", "unit_symbol": "%" },
"provenance": { "upstream_url": "…", "retrieved_at": "…" },
"returned": 1,
"available": 1,
"truncated": false
}
}
```
`date` is the normalized start date for the reference period; `period` is the
frequency-aware identifier (`YYYY-MM-DD`, `YYYY-MM`, `YYYY-QN`, or `YYYY`).
`source_date` and `raw_value` are retained exactly from the official publisher.
Read `meta.indicator.date_semantics` before interpreting stock, flow, or
moving-quarter series.
Use `format=csv` for a flat download. CSV rows repeat `indicator_id`,
`source_id`, `source_url`, and `upstream_url`, so exported values retain their
provenance outside the JSON envelope.
## API surface
| Endpoint | Purpose |
| --- | --- |
| `GET /api/v1` | Machine-readable API discovery |
| `GET /api/v1/indicators` | Search and filter the indicator catalog |
| `GET /api/v1/indicators/:id` | Full indicator metadata, units, semantics, and links |
| `GET /api/v1/indicators/:id/observations` | Normalized historical values |
| `GET /api/v1/indicators/:id/latest` | Latest available observation |
| `GET /api/v1/sources` | Publisher, attribution, and license metadata |
| `GET /api/v1/openapi.json` | OpenAPI 3.1 description |
| `GET /api/v1/health` | Router and catalog readiness (does not call publishers) |
All endpoints support CORS and `GET`, `HEAD`, and `OPTIONS`. Successful and
error responses include `X-Request-Id`; browser clients can also read cache,
timing, and stale-response headers.
## Errors and freshness
Errors use `application/problem+json` with a stable `code`, HTTP `status`,
human-readable `title`, explanatory `detail`, and `request_id`. Common cases
include `INVALID_DATE`, `INVALID_CATEGORY`, `INDICATOR_NOT_FOUND`,
`UPSTREAM_CONNECTION_ERROR`, and `UPSTREAM_TIMEOUT`.
The API caches successfully normalized source responses in D1 when configured.
If a refresh fails and a previous matching snapshot exists, it is returned with
`meta.stale: true`, `meta.cache: "stale"`, and HTTP `Warning: 110`. A cache
read or write failure is treated as a cache bypass, never as a data failure.
The service is currently best-effort and has no uptime SLA. See
[RELIABILITY.md](./RELIABILITY.md) for the explicit availability, freshness,
change-management, and incident-reporting policy.
## Sources and correctness
- **IBGE Aggregates/SIDRA**: prices, GDP, industry, retail, services, labor.
The adapter requests the exact official period IDs required for each query;
IBGE zero, suppression, availability, and quality symbols keep distinct
`status` values.
- **BCB SGS**: rates, FX, activity, credit, fiscal, external-sector, and
commodity series. Rows are normalized, sorted, and de-duplicated because
upstream ordering is not guaranteed.
- **Tesouro Nacional / SICONFI**: annual accounts, budget execution, fiscal
limits, personnel spending, debt, and the government-entity registry.
- **Tesouro Nacional / RTN**: monthly current-value Government Central revenue,
transfers, expenditure, and fiscal-result accounts from 1997 onward, in the
official hierarchy and R$ million unit.
- **Tesouro Nacional / RMD**: monthly Federal Public Debt composition, DPMFi
holders, average maturity, and cost. Each official table keeps its own unit,
coverage, definitions, footnotes, and publication vintage.
- **MDIC / Comex Stat**: exports and impLo que la gente pregunta sobre open-economics
¿Qué es felipegambettadesouza6-jpg/open-economics?
+
felipegambettadesouza6-jpg/open-economics es tools para el ecosistema de Claude AI. Free, no-auth API for normalized Brazilian economic series from BCB and IBGE. Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-09-08.
¿Cómo se instala open-economics?
+
Puedes instalar open-economics clonando el repositorio (https://github.com/felipegambettadesouza6-jpg/open-economics) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar felipegambettadesouza6-jpg/open-economics?
+
Nuestro agente de seguridad ha analizado felipegambettadesouza6-jpg/open-economics y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.
¿Quién mantiene felipegambettadesouza6-jpg/open-economics?
+
felipegambettadesouza6-jpg/open-economics es mantenido por felipegambettadesouza6-jpg. La última actividad registrada en GitHub es del 2026-09-08, con 0 issues abiertos.
¿Hay alternativas a open-economics?
+
Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.
Despliega open-economics en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/felipegambettadesouza6-jpg-open-economics)<a href="https://claudewave.com/repo/felipegambettadesouza6-jpg-open-economics"><img src="https://claudewave.com/api/badge/felipegambettadesouza6-jpg-open-economics" alt="Featured on ClaudeWave: felipegambettadesouza6-jpg/open-economics" width="320" height="64" /></a>Más Tools
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Use Claude Code, Codex, Pi, and OpenCode and more for free (1.3B+ free tokens) from your terminal, app, IDE, or phone like OpenClaw (voice supported + ToS friendly)