> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# /v2/macro

> Macro series, inflation and its item tree, PTAX, Focus expectations.

Macro series, inflation and its item tree, PTAX, Focus expectations.

`GET /v2/macro` serves 5 kinds; the default is `series`.
Every parameter, kind and default: `GET /v2/macro?help=all`.

## What it returns

| Kind | Returns | Operation page |
| - | - | - |
| `series` (default) | api.macro\_series: one SGS series by label or code, oldest first. Refuses above 1000 rows: narrow from/to. | [Economic series](https://octo-98895abd.mintlify.site/api-docs/v2/operations/macro/series.md) |
| `inflation` | api.inflation: the IPCA set by month with acc\_12m, 3 years by default. Refuses above 1000 rows: pin id or family, or narrow from. | [Inflation history](https://octo-98895abd.mintlify.site/api-docs/v2/operations/macro/inflation.md) |
| `inflation_items` | api.inflation\_items: IBGE's IPCA tree (weight, monthly change, contribution, year-to-date and 12-month change), 3 years by default. With no id, the groups (level 1); with an id, that item at its own level. | [Inflation components](https://octo-98895abd.mintlify.site/api-docs/v2/operations/macro/inflation_items.md) |
| `fx` | api.ptax: one currency's PTAX, BRL per one unit, as published. currency=all reads the api.ptax\_daily view, every currency at once. | [Exchange rates](https://octo-98895abd.mintlify.site/api-docs/v2/operations/macro/fx.md) |
| `expectations` | api.focus\_expectations: one survey and horizon across survey dates (the weekly revision path), median, mean and standard deviation. Refuses above 1000 rows. | [Forecast revisions](https://octo-98895abd.mintlify.site/api-docs/v2/operations/macro/expectations.md) |

## Main parameters

| Parameter | Default | Meaning |
| - | - | - |
| `id` | none | By kind: series takes an SGS series label or code (SELIC\_META, CDI, IGPM, 432); inflation takes one series label (IPCA, IPCA\_CORE\_EX0, ...; none: every series); inflation\_items takes an IBGE structure number or SIDRA item code (none: the groups); expectations takes a Focus indicator (IPCA, Selic, ...; none: every indicator). Required for kind series. Kind fx takes no id. |
| `kind` | series | series: one BACEN SGS series. inflation: the IPCA set (headline, cores, groups, diffusion) with 12-month accumulation. inflation\_items: IBGE's IPCA item tree with weights. fx: BACEN PTAX buy and sell rates. expectations: the BCB Focus survey path. |

With no `from`, a windowed kind reads the 12 months up to `to`.

## Tier limits

| Limit | Anonymous | Signed in | Pro |
| - | - | - | - |
| Rows per page (`limit` maximum) | 10 | 100 | 1,000 |
| Rows per call, across pages | 50 | 1,000 | no limit |
| Widest `from`..`to` on `fx` | 3 months | 24 months | no limit |
| Requests per minute | 10 | 30 | 300 |

A call over a limit is refused or reports `meta.tier_cap_reached`; it is never cut silently. See [authentication](https://octo-98895abd.mintlify.site/api-docs/v2/authentication.md) for the tiers.

## Example call

```bash theme={null}
curl --request GET 'https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/macro/series?series=CDI&limit=1' \
  --header "Authorization: Bearer $SILO_TOKEN"
```

The same resource in its generic form: `GET /v2/macro?kind=inflation`.

## Example response

Successful response from a Pro request on 2026-11-13. This excerpt omits fields and pagination links.

```json theme={null}
{
  "data": [
    {
      "reference_date": "2025-11-13",
      "series": "CDI",
      "sgs_code": 12,
      "value": 0.055131,
      "unit": "pct_day"
    }
  ],
  "meta": {
    "tier": "pro"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.