# Anbima — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access comprehensive Brazilian financial data including fund information, debenture details, historical performance metrics, and upcoming events from ANBIMA. Search and retrieve periodic data on investment funds and private securities to analyze financial instruments and track market calendars.

**Category:** Finance & Markets | **Website:** [data.anbima.com.br/](https://data.anbima.com.br/) | **Docs:** [parse.bot/marketplace/c8c6fa78-5db8-40c8-9936-daaed289f951/data-anbima-com-br-api](https://parse.bot/marketplace/c8c6fa78-5db8-40c8-9936-daaed289f951/data-anbima-com-br-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_datasets_list

List all available datasets on the ANBIMA Data platform. Returns an array of dataset objects with metadata including title, description, slug, asset category, market type, and availability flags. Datasets cover funds, debentures, public offerings, government bonds, and market indices.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/get_datasets_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_debenture_details

Get detailed information for a specific debenture by its B3 code. Returns comprehensive data including issuer details, remuneration formula, indicative pricing (taxa_indicativa, duration, PU), historical par value (PU par, VNA), emission details (volume, coordinator, fiduciary agent, CVM registration), and series from the same emission.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `code` | string | Yes | B3 code of the debenture (e.g. AALM12, ADAG11) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/get_debenture_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"<string>"}'
```

### get_fund_periodic_data

Retrieve historical daily data for a specific fund. Searches by name or CNPJ, returns periodic data for the first match including share value (valor_cota), net patrimony (valor_patrimonio_liquido), investor count (numero_cotistas), and daily application/redemption volumes. Returns the most recent entries first.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Fund name or CNPJ to search for |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/get_fund_periodic_data \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### get_titulos_privados_agenda_eventos

Retrieve the private securities events calendar. Returns paginated events including interest payments, amortizations, and other corporate actions on private securities (debentures, CRIs, CRAs). Each event includes the B3 code, event type, rate, value, settlement date, and status. Results are ordered chronologically.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-based) |
| `size` | integer | No | Results per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/get_titulos_privados_agenda_eventos \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","size":"<integer>"}'
```

### search_debentures

Search for debentures by B3 code or issuer name. Returns paginated results with debenture details including remuneration formula, maturity date, issuer, sector, indicative pricing (PU), duration, and early redemption flag. Omitting the query returns all debentures.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-based) |
| `query` | string | No | Search term (B3 code, issuer name, etc.). Omitting returns all debentures. |
| `size` | integer | No | Results per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/search_debentures \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","size":"<integer>"}'
```

### search_funds

Search for investment funds by name or CNPJ. Returns paginated results with fund details including administrative info (administrator, manager), ANBIMA classification (category, type), ESG designation, performance metrics (12-month return), and complementary profile (minimum investment, redemption period, global fee). Supports partial name matching.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-based) |
| `query` | string | Yes | Search term (fund name or CNPJ) |
| `size` | integer | No | Results per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-data-anbima-com-br-api-c8c6fa78/search_funds \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","size":"<integer>"}'
```
