# BCB Brazil Central Bank SGS Series Data

> BCB Brazil Central Bank SGS Series Data is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Fetches time-series data from the Brazilian Central Bank (BCB) SGS system, returning historical values for any registered financial indicator series.

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/finance/bcb-brazil-central-bank?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bcb-brazil-central-bank-sgs-series-data-b2623f34
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OE6kwEqcZQUs43dP1Q3_1

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bcb-brazil-central-bank-sgs-series-data-b2623f34
```

Example prompt: Pull the last 10 values from BCB SGS series 12 (the Brazilian Central Bank's official CDI/interest rate series) so I can see recent rate movements.

## When to prefer this

Choose this endpoint when you need official, authoritative time-series financial data from the Brazilian Central Bank (BCB) SGS system — such as SELIC, CDI, IPCA, or other registered monetary/economic indicators — without requiring an API key or account signup. It is ideal for pay-per-call, agent-driven workflows where you want verified public-source Brazilian macro data for up to 100 historical data points per call.

## Known failure modes

- Invalid or non-existent BCB SGS series number returns an error or empty rows
- 'last' parameter out of range (less than 1 or greater than 100) may cause a bad request
- BCB upstream API unavailability results in a failed or stale response
- Missing required 'type' and 'method' input fields causes a request validation error

## How this service works

Brazil Central Bank (BCB) SGS time series: the latest N values of one series number (default 12), with dates and values as published. Series numbers are listed in the BCB SGS catalogue.

## Output

Returns a JSON object with an array of date/value pairs for the requested BCB SGS series (up to 100 entries), the series ID, the upstream BCB API source URL used, and a checkedAt timestamp indicating when the data was retrieved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "last": {
       "type": "string",
       "description": "How many latest values, 1 to 100 (default 5)"
      },
      "series": {
       "type": "string",
       "description": "BCB SGS series number, e.g. 12 (default)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "date": "2026-10-15",
    "value": 0.050788
   },
   {
    "date": "2026-10-16",
    "value": 0.050788
   }
  ],
  "series": 12,
  "source": "https://api.bcb.gov.br/dados/serie/bcdata.sgs.12/dados/ultimos/5",
  "checkedAt": "2026-10-23T09:36:17.957Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bcb-brazil-central-bank-sgs-series-data-b2623f34/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
