> ## 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

# Search companies

> First step to find a company's CVM code (`code_cvm`), issuer code and trading name for the detail functions.

## Request contract

* **Method and path:** POST /apis/v1/b3-com-br/companies/search-companies
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/b3-com-br/companies/search-companies`

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

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "b3-com-br.companies.search-companies",
  "method": "POST",
  "path": "/apis/v1/b3-com-br/companies/search-companies",
  "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": {
              "query": "petro"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "listing_year": {
              "description": "List companies that listed in this year instead of searching; cannot be combined with `query`.\n\nProvider reference: minimum 1900; maximum 2100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 2100,
                "min": 1900
              }
            },
            "page": {
              "default": 1,
              "description": "1-based page number.\n\nProvider reference: minimum 1; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "page_size": {
              "description": "Rows per page; B3 returns an empty page above 120.\n\nProvider reference: minimum 1; maximum 120.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 120,
                "min": 1
              }
            },
            "query": {
              "description": "Company name or ticker prefix (e.g. `petro`, `PETR`). Omit to enumerate the registry.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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/b3-com-br.json POST /apis/v1/b3-com-br/companies/search-companies
openapi: 3.1.0
info:
  description: ''
  title: B3 listed companies and indices
  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:
    b3-com-br:
      description: ''
      title: B3 listed companies and indices
      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: e7ecba721a5159c2022236e8de07434d7a0197f56afb1490c50ee9a2921a6e0d
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/b3-com-br/companies/cash-dividends
    - /apis/v1/b3-com-br/companies/company
    - /apis/v1/b3-com-br/companies/company-filings
    - /apis/v1/b3-com-br/companies/corporate-actions
    - /apis/v1/b3-com-br/companies/index-portfolio
    - /apis/v1/b3-com-br/companies/industry-classification
    - /apis/v1/b3-com-br/companies/quote
    - /apis/v1/b3-com-br/companies/search-companies
    - /apis/v1/b3-com-br/companies/stock-indices
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:c5c6aab608842f413457b3d8abb27e97fc00fb7e8fe3b8f189bd0ede5c6b504a
    facts_hash: e7ecba721a5159c2022236e8de07434d7a0197f56afb1490c50ee9a2921a6e0d
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: b3-com-br
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/b3-com-br/companies/search-companies:
    post:
      tags:
        - B3 listed companies and indices
      summary: Search companies
      description: >-
        First step to find a company's CVM code (`code_cvm`), issuer code and
        trading name for the detail functions.
      operationId: b3-com-br.companies.search-companies
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: petro
            schema:
              additionalProperties: true
              properties:
                listing_year:
                  description: >-
                    List companies that listed in this year instead of
                    searching; cannot be combined with `query`.


                    Provider reference: minimum 1900; maximum 2100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 2100
                    min: 1900
                page:
                  default: 1
                  description: |-
                    1-based page number.

                    Provider reference: minimum 1; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                page_size:
                  description: |-
                    Rows per page; B3 returns an empty page above 120.

                    Provider reference: minimum 1; maximum 120.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 120
                    min: 1
                query:
                  description: >-
                    Company name or ticker prefix (e.g. `petro`, `PETR`). Omit
                    to enumerate the registry.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-09-22.
                  summary: Official provider example
                  value:
                    companies:
                      - bdr_type: null
                        cnpj: '21778678000170'
                        code_cvm: '916986'
                        company_name: AÇU PETROLEO S.A.
                        issuing_company: ACPE
                        listing_date: null
                        market: null
                        market_indicator: '99'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: ACU PETROLEO
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/916986/ACPE/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '3987364000103'
                        code_cvm: '900399'
                        company_name: ATEMS DISTRIBUIDORA DE PETROLEO S/A
                        issuing_company: ATEM
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: ATEMS
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/900399/ATEM/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '8845534000120'
                        code_cvm: '905406'
                        company_name: BRASOIL MANATI EXPLORACAO PETROLIFERA S.A.
                        issuing_company: MNTI
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: BRASOILPETRO
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/905406/MNTI/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '1256137000174'
                        code_cvm: '900110'
                        company_name: DISTRIBUIDORA RIO BRANCO DE PETRÓLEO LTDA
                        issuing_company: RBPL
                        listing_date: null
                        market: null
                        market_indicator: '99'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: RB PETROLEO
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/900110/RBPL/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '33337122000127'
                        code_cvm: '904417'
                        company_name: IPIRANGA  PRODUTOS DE PETROLEO S.A.
                        issuing_company: IPIP
                        listing_date: null
                        market: null
                        market_indicator: '99'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: IPIRANGAPROD
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/904417/IPIP/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '33000167000101'
                        code_cvm: '9512'
                        company_name: PETROLEO BRASILEIRO S.A. PETROBRAS
                        issuing_company: PETR
                        listing_date: '1968-08-27'
                        market: N2
                        market_indicator: '17'
                        segment: Exploração. Refino e Distribuição
                        segment_en: Exploration. Refining and Distribution
                        status: A
                        trading_name: PETROBRAS
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/9512/PETR/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '47983546000173'
                        code_cvm: '900298'
                        company_name: PETROLINA PE 584 LOCACAO DE EQUIPAMENTOS 915 LTDA.
                        issuing_company: PGER
                        listing_date: null
                        market: null
                        market_indicator: '99'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: PETROLINA PE
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/900298/PGER/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '3342704000130'
                        code_cvm: '25780'
                        company_name: PETRORECÔNCAVO S.A.
                        issuing_company: RECV
                        listing_date: '2021-05-03'
                        market: NM
                        market_indicator: '18'
                        segment: Exploração. Refino e Distribuição
                        segment_en: Exploration. Refining and Distribution
                        status: A
                        trading_name: PETRORECSA
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/25780/RECV/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '94845674000130'
                        code_cvm: '910018'
                        company_name: REFINARIA DE PETRÓLEO RIOGRANDENSE S.A.
                        issuing_company: RIPI
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Exploração. Refino e Distribuição
                        segment_en: Exploration. Refining and Distribution
                        status: A
                        trading_name: RIOGRANDENSE
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/910018/RIPI/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '33412081000196'
                        code_cvm: '9989'
                        company_name: REFINARIA DE PETROLEOS MANGUINHOS S.A.
                        issuing_company: RPMG
                        listing_date: '1972-06-23'
                        market: null
                        market_indicator: '1'
                        segment: Exploração. Refino e Distribuição
                        segment_en: Exploration. Refining and Distribution
                        status: A
                        trading_name: PET MANGUINH
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/9989/RPMG/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '20139095000136'
                        code_cvm: '907451'
                        company_name: RIO PETROLEO SPE S/A COMPANHIA SECURITIZADORA DE C
                        issuing_company: RPTL
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: RIOPETROLEOS
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/907451/RPTL/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '33443860000159'
                        code_cvm: '913095'
                        company_name: SPE 3R PETROLEUM S.A.
                        issuing_company: SP3R
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: SPE 3R PETRO
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/913095/SP3R/overview?language=pt-br
                      - bdr_type: null
                        cnpj: '647154000170'
                        code_cvm: '909655'
                        company_name: ZEMA CIA. DE PETROLEO
                        issuing_company: ZMPT
                        listing_date: null
                        market: null
                        market_indicator: '1'
                        segment: Não Classificados
                        segment_en: Not Classified
                        status: A
                        trading_name: ZEMA
                        url: >-
                          https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/main/909655/ZMPT/overview?language=pt-br
                    country: BR
                    listing_year: null
                    next_page: null
                    observed_at_ms: 1790046944889
                    page: 1
                    page_size: 20
                    query: petro
                    source: b3.com.br
                    total_pages: 1
                    total_records: 13
                    url: >-
                      https://sistemaswebb3-listados.b3.com.br/listedCompaniesPage/?language=pt-br
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search B3's listed-company registry by name or ticker prefix,
            enumerate the whole registry page by page, or list the companies
            that listed in a given year.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `companies` | object[] |  |

            | `country` | string |  |

            | `listing_year` | number |  |

            | `next_page` | number | Page to request next; null when this is the
            last page. |

            | `observed_at_ms` | number |  |

            | `page` | number |  |

            | `page_size` | number |  |

            | `query` | string |  |

            | `source` | string |  |

            | `total_pages` | number |  |

            | `total_records` | number | Total rows across pages as B3 reports
            it. |

            | `url` | string |  |



            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.