> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Datasets search

> Find an SGS series code or an Olinda service name before calling `sgs_series` or `olinda_service`.

## Request contract

* **Method and path:** POST /apis/v1/bcb-gov-br/economic-data/datasets-search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/bcb-gov-br/economic-data/datasets-search`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/bcb-gov-br.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "bcb-gov-br.economic-data.datasets-search",
  "method": "POST",
  "path": "/apis/v1/bcb-gov-br/economic-data/datasets-search",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "q": "codigo_sgs:432",
              "rows": 2
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "q": {
              "description": "Free-text query (Solr syntax accepted, e.g. `selic`, `title:IPCA`, `codigo_sgs:433`), or a pasted package_search URL (its `q` is used).",
              "type": "string"
            },
            "rows": {
              "default": 10,
              "description": "rows\n\nProvider reference: minimum 1; maximum 50; default 10.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 50,
                "min": 1
              }
            },
            "start": {
              "default": 0,
              "description": "Offset of the first result; pass `next_start` from the previous page.\n\nProvider reference: minimum 0; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 0
              }
            }
          },
          "required": [
            "q"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/bcb-gov-br.json POST /apis/v1/bcb-gov-br/economic-data/datasets-search
openapi: 3.1.0
info:
  description: ''
  title: Banco Central do Brasil open data
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    bcb-gov-br:
      description: ''
      title: Banco Central do Brasil open data
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: edf117a93e133da791cf67abc30c140208ddd53704a4d60fb611ef7732fc8019
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
        seed_month: 2026-10
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/bcb-gov-br/economic-data/credit-rates
    - /apis/v1/bcb-gov-br/economic-data/datasets-search
    - /apis/v1/bcb-gov-br/economic-data/focus-expectations
    - /apis/v1/bcb-gov-br/economic-data/olinda-service
    - /apis/v1/bcb-gov-br/economic-data/payment-statistics
    - /apis/v1/bcb-gov-br/economic-data/pix-statistics
    - /apis/v1/bcb-gov-br/economic-data/ptax-currencies
    - /apis/v1/bcb-gov-br/economic-data/ptax-currency
    - /apis/v1/bcb-gov-br/economic-data/ptax-usd
    - /apis/v1/bcb-gov-br/economic-data/sgs-series
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:4edcea99b08503cd6d2aef834decda628d24b96c03a614ddb47811005eabf63d
    facts_hash: edf117a93e133da791cf67abc30c140208ddd53704a4d60fb611ef7732fc8019
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
    seed_month: 2026-10
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: bcb-gov-br
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/bcb-gov-br/economic-data/datasets-search:
    post:
      tags:
        - Banco Central do Brasil open data
      summary: Datasets search
      description: >-
        Find an SGS series code or an Olinda service name before calling
        `sgs_series` or `olinda_service`.
      operationId: bcb-gov-br.economic-data.datasets-search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  q: codigo_sgs:432
                  rows: 2
            schema:
              additionalProperties: true
              properties:
                q:
                  description: >-
                    Free-text query (Solr syntax accepted, e.g. `selic`,
                    `title:IPCA`, `codigo_sgs:433`), or a pasted package_search
                    URL (its `q` is used).
                  type: string
                rows:
                  default: 10
                  description: |-
                    rows

                    Provider reference: minimum 1; maximum 50; default 10.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 50
                    min: 1
                start:
                  default: 0
                  description: >-
                    Offset of the first result; pass `next_start` from the
                    previous page.


                    Provider reference: minimum 0; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 0
              required:
                - q
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    count: 1
                    datasets:
                      - codigo_sgs: 432
                        fim_periodo: null
                        id: 63be5d3e-6f6e-4194-8a8f-f40638786911
                        inicio_periodo: '1999-03-05'
                        maintainer: null
                        metadata_modified: '2026-09-08T20:24:16.527027'
                        name: 432-taxa-de-juros---meta-selic-definida-pelo-copom
                        notes: "---\r\n```A partir de 26 de março de 2025, para consultas que retornam informações nos formatos JSON e CSV de séries históricas diárias, o volume de dados retornados será limitado, tornando-se obrigatório o uso de filtros para a recuperação das informações. \r\nConsultas por período de datas serão limitadas a 10 anos, retornando erro caso não satisfaça essa condição. \r\nPara mais detalhes, consulte as informações dos recursos que retornam os formatos JSON e CSV.\r\n``` \r\n--- \r\n\r\nConceito: Taxa de juros que representa a meta, definida pelo Copom, para a taxa Selic. Divulgação em % a.a.\r\n\r\n* Tipo da sé…"
                        organization: BCB/Demab
                        periodicidade: Diária
                        resources:
                          - format: HTML
                            name: Site do BC - Metadados detalhados da série
                            url: >-
                              https://www3.bcb.gov.br/sgspub/consultarmetadados/consultarMetadadosSeries.do?method=consultarMetadadosSeriesInternet&hdOidSerieSelecionada=432
                          - format: HTML
                            name: Site do BC - Visualização da série
                            url: >-
                              https://www3.bcb.gov.br/sgspub/consultarvalores/consultarValoresSeries.do?method=consultarGraficoPorId&hdOidSeriesSelecionadas=432
                          - format: JSON
                            name: json_serie-sgs-432
                            url: >-
                              https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=json&dataInicial=01/01/2023&dataFinal=31/12/2023
                          - format: CSV
                            name: csv_serie-sgs-432
                            url: >-
                              https://api.bcb.gov.br/dados/serie/bcdata.sgs.432/dados?formato=csv&dataInicial=01/01/2023&dataFinal=31/12/2023
                          - format: wsdl
                            name: wsdl_serie-sgs-432
                            url: >-
                              https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl
                        tags:
                          - Estatísticas monetárias
                          - IBC
                          - Política monetária
                          - Taxa SELIC
                        tipo_serie: Série temporal diária
                        title: Taxa de juros - Meta Selic definida pelo Copom
                        unidade_medida: Percentual ao ano
                        url: >-
                          https://dadosabertos.bcb.gov.br/dataset/432-taxa-de-juros---meta-selic-definida-pelo-copom
                    next_start: null
                    observed_at_ms: 1790048962381
                    q: codigo_sgs:432
                    rows: 2
                    start: 0
                    url: >-
                      https://dadosabertos.bcb.gov.br/api/3/action/package_search?q=codigo_sgs:432&rows=2&start=0
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the Banco Central open-data catalogue
            (dadosabertos.bcb.gov.br, CKAN package_search) by free text: dataset
            name, title, maintainer, notes, tags and, for SGS series,
            `codigo_sgs`, `periodicidade`, `unidade_medida`, `inicio_periodo`,
            `fim_periodo`, `tipo_serie`, plus the dataset's resources
            (API/JSON/CSV/OData URLs, including the api.bcb.gov.br SGS URL and
            Olinda service URLs). `count` is the catalogue's total for the
            query; `rows`/`start` page it (at most 50 per call: the portal's
            robots.txt asks for sparse API use).


            The response contains the tool result directly.


            The provider identifies `datasets` as the primary payload key.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `codigo_sgs` | number | SGS series code when the dataset is an SGS
            series. |

            | `fim_periodo` | string |  |

            | `id` | string |  |

            | `inicio_periodo` | string |  |

            | `maintainer` | string |  |

            | `metadata_modified` | string |  |

            | `name` | string |  |

            | `notes` | string | Description, trimmed to 600 characters. |

            | `organization` | string |  |

            | `periodicidade` | string |  |

            | `resources` | object[] |  |

            | `tags` | string[] |  |

            | `tipo_serie` | string |  |

            | `title` | string |  |

            | `unidade_medida` | string |  |

            | `url` | string | Dataset page on dadosabertos.bcb.gov.br. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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