Dados B3 Etfs API

The Etfs API from Dados B3 — 6 operation(s) for etfs.

Operations 6

GET /etfs Etfs Hub #
GET /etfs/{ticker} Etf Detalhe #
GET /etfs/{ticker}/precos Etf Precos #
GET /etfs/{ticker}/desempenho Etf Desempenho #
GET /etfs/{ticker}/diario Etf Diario #
GET /etfs/{ticker}/carteira Etf Carteira #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dadosb3-com:dadosb3-com-etfs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dadosb3-com-etfs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dados B3 Etfs API
  description: 'Dados fundamentalistas de companhias abertas brasileiras com metodologia 100% pública e invariantes de dado publicados. Fontes: CVM (dados abertos, ODbL) e B3 (COTAHIST fim-de-dia). Todo número carrega a conta CVM de origem; valor duvidoso carrega flag, nunca estimativa escondida.'
  version: 0.1.0
tags:
- name: Etfs
paths:
  /etfs:
    get:
      summary: Etfs Hub
      description: 'Hub dos ETFs: mais negociados, maior patrimônio, maior deságio e ágio

        sobre a cota do mesmo dia, retorno de 12 meses pela cota, menor taxa

        efetiva, e a mediana por tipo. Descritivo, do informe diário do FNET, do

        balancete, da CVM e do COTAHIST. Não é recomendação.'
      operationId: etfs_hub_etfs_get
      parameters:
      - name: lang
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Lang
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      responses:
        '200':
          description: Successful Response
          content:
            text/html:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
  /etfs/{ticker}:
    get:
      summary: Etf Detalhe
      description: 'Um ETF, em dois formatos pela MESMA URL. Sem chave, a PÁGINA; com chave

        (ou Accept: application/json explícito), o JSON. BOVA11 é aberto nos dois.'
      operationId: etf_detalhe_etfs__ticker__get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: lang
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Lang
      - name: accept-language
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Accept-Language
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
  /etfs/{ticker}/precos:
    get:
      summary: Etf Precos
      description: 'Série DIÁRIA de um ETF: abertura, máxima, mínima, fechamento, volume, negócios e quantidade (COTAHIST), mais

        `fechamento_ajustado` por desdobramento/grupamento CONFERIDO pelo preço, os eventos, os saltos que nenhum evento

        explica e o retorno com rendimentos reinvestidos (mesma conta de `retornos.tabela_retornos`). `formato=csv`.'
      operationId: etf_precos_etfs__ticker__precos_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: de
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: De
      - name: ate
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ate
      - name: formato
        in: query
        required: false
        schema:
          type: string
          default: json
          title: Formato
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
  /etfs/{ticker}/desempenho:
    get:
      summary: Etf Desempenho
      description: 'Desempenho de um ETF num período em poucos números (retorno, drawdown máximo, volatilidade; comprar e manter e

        cruzamento de médias 21×100), calculado aqui. ABERTO, sem chave. Só preço, sem ajuste de desdobramento: salto

        diário acima de 35% vem em `saltos_suspeitos` com `confiavel: false`.'
      operationId: etf_desempenho_etfs__ticker__desempenho_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: de
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: De
      - name: ate
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Ate
      - name: media_curta
        in: query
        required: false
        schema:
          type: integer
          default: 21
          title: Media Curta
      - name: media_longa
        in: query
        required: false
        schema:
          type: integer
          default: 100
          title: Media Longa
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
  /etfs/{ticker}/diario:
    get:
      summary: Etf Diario
      description: 'Série diária do informe (cota, captação, resgate, PL, cotistas) com o

        fechamento e o ágio do mesmo dia quando existem. `desde` = AAAA-MM-DD.'
      operationId: etf_diario_etfs__ticker__diario_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: desde
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Desde
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
  /etfs/{ticker}/carteira:
    get:
      summary: Etf Carteira
      description: 'Carteira mensal do CDA da CVM (posições finais do mês, peso sobre o PL).

        Sem `competencia` (AAAA-MM), a mais recente.'
      operationId: etf_carteira_etfs__ticker__carteira_get
      parameters:
      - name: ticker
        in: path
        required: true
        schema:
          type: string
          title: Ticker
      - name: competencia
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Competencia
      - name: x-api-key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Etfs
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    ChaveApiNaUrl:
      type: apiKey
      in: query
      name: chave
      description: Alternativa ao cabeçalho para clientes que só abrem URL (navegação de IA). Fica no histórico e nos logs de quem a usa.
    ChaveApi:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Chave grátis (200 consultas/dia) ou Pro em /assinar. Abertos sem chave (limite por IP): fatos, indicadores, múltiplos e dividendos de qualquer ticker, ficha e ranking de FII. WEGE3, MXRF11, /hoje, /saude e a metodologia são abertos. Exigem chave: as_of, versões, preços, screener, /dump.'