OBM - Open Brazil Market Fontes API

Consulte a origem dos dados e a cadência de publicação em `/v1/sources`.

GitHub OpenAPI

Operations 2

GET /status Situação da API e dos dados #
GET /v1/sources Fontes dos dados #

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/obm-com-br:obm-com-br-fontes-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

obm-com-br-fontes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OBM Fontes API
  version: 1.0.0
  description: '# Primeira chamada


    A API do OBM responde em `https://api.obm.com.br`. Para testar, copie a chave `sandbox` preenchida no campo de autenticação da documentação e defina `OBM_API_KEY` no seu terminal. A chave pública só abre os ativos de exemplo. Para usar a API no seu produto, peça uma chave própria. ```sh

    curl -i ''https://api.obm.com.br/v1/equities/PETR4/prices'' \

    -H "X-API-Key: ${OBM_API_KEY}"

    ```


    O corpo da resposta tem esta estrutura:


    ```json

    {

    "data": [],

    "reference_date": null,

    "source": {"code": "b3", "name": "B3 S.A. — Brasil, Bolsa, Balcão", "url": "https://www.b3.com.br/pt_br/market-data-e-indices.htm"},

    "meta": {"page": 1, "page_size": 100, "total": 0}

    }

    ```


    Os quatro campos da resposta:


    - `data`: o objeto ou a lista pedida. - `reference_date`: a data do dado, não a hora da chamada. Vem nula quando não há observação. - `source`: de onde o dado veio. - `meta`: paginação, só nas listas. Use `page` e `page_size` para percorrer a série; o máximo por página é 200. Preços são números, datas seguem ISO 8601 e campos desconhecidos devem ser ignorados pelo cliente. Na `sandbox`, acompanhe `X-RateLimit-Remaining` nos cabeçalhos; as respostas não incluem `X-Quota-*`. Com uma chave própria, `X-Quota-Remaining` também informa quanto resta da cota mensal da conta, em mês civil UTC; a free tem ainda teto de 200 chamadas por dia UTC. 401 quer dizer chave ausente ou inválida. 403 quer dizer que a chave é válida mas não tem acesso, o que inclui ativo fora da `sandbox`. Em 429, aguarde o intervalo de `Retry-After` antes de repetir. A `sandbox` permite 10 chamadas por minuto por IP do visitante. Exemplos liberados: PETR4, HGLG11, BOVA11, AAPL34, CRA0250020E, PETR26, LTN_2029-01-01, NTN-B PRINCIPAL_2035-05-15 e o fundo 08507696000159. Índices ficam disponíveis com chave própria. Consulte `/v1/sources` para as fontes e `/status` para as datas de referência disponíveis. ## Postman, Insomnia e Bruno


    Baixe a collection em `https://api.obm.com.br/postman.json` e importe o arquivo no Postman, Insomnia ou Bruno. O formato é o Postman v2.1, que os três leem. Depois de importar, preencha a variável `apiKey` da collection com a sua chave. A `sandbox` já vem pronta na documentação. A variável `baseUrl` aponta para `https://api.obm.com.br`. Cada pasta reúne as operações de uma classe de ativo. Os exemplos usam identificadores liberados na `sandbox`, exceto Índices e a série dedicada de classe de fundo, que exigem chave própria. As respostas autenticadas devolvem `X-RateLimit-Limit` e `X-RateLimit-Remaining`; o teste da collection confere o status 2xx e o cabeçalho de limite. Nos exemplos restritos, a `sandbox` valida o 403 esperado; com chave própria, o exemplo de classe também exige observações em `points`. Se a verificação de consumo estiver indisponível, a API devolve 503 com `Retry-After`, sem liberar chamadas ilimitadas. # Autenticação


    Envie a chave em um dos cabeçalhos:


    ```http

    Authorization: Bearer

    ```


    ```http

    X-API-Key:

    ```


    Se enviar os dois, `Authorization` prevalece. Com `Authorization` presente e sem o esquema `Bearer`, a chamada retorna 401, sem usar `X-API-Key`. Não coloque a chave na URL. As rotas de dados exigem chave. Respondem sem chave apenas `/`, `/status`, `/openapi.json`, `/docs`, `/llms.txt`, `/llms-full.txt`, `/agents.md`, `/.well-known/api-catalog`, `/postman.json` e `/robots.txt`. Não há leitura de dados sem chave. A demonstração usa a chave `sandbox` publicada no formulário de teste da documentação, limitada a 9 ativos e a 10 chamadas por minuto por IP; veja Limites e erros. Chaves de uso próprio têm prefixo `obm_live_` e a `sandbox`, `obm_sandbox_`. Chaves legadas trazem 32 caracteres `base62` depois do prefixo; as novas trazem três blocos separados por `_`, com o último sendo uma soma de verificação. Trate a chave como texto opaco e copie-a inteira. `obm_test_` está reservado.'
servers:
- url: https://api.obm.com.br
security:
- PublicBearer: []
- PublicAPIKey: []
tags:
- name: Fontes
  description: Consulte a origem dos dados e a cadência de publicação em `/v1/sources`.
paths:
  /status:
    get:
      tags:
      - Fontes
      summary: Situação da API e dos dados
      description: Devolve a situação da API e as últimas datas de referência por classe no OBM. As datas acompanham os dados da CVM e da B3 incorporados à base; esta consulta não exige chave.
      operationId: status_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Status'
        '401':
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
        '403':
          description: Forbidden
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
        '429':
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
        '503':
          description: Service Unavailable
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    type: string
                    title: Type
                    default: about:blank
                  title:
                    type: string
                    title: Title
                  status:
                    type: integer
                    title: Status
                  detail:
                    type: string
                    title: Detail
                  instance:
                    type: string
                    title: Instance
                type: object
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
      security: []
  /v1/sources:
    get:
      tags:
      - Fontes
      summary: Fontes dos dados
      description: 'Lista as fontes do catálogo do OBM, identificadas por código, com atribuição e condições de uso. O catálogo acompanha as atualizações da documentação de cada fonte.


        Cabeçalhos nas respostas autenticadas:

        - `X-RateLimit-Limit`: Limite por minuto; `unlimited` indica ausência de limite.

        - `X-RateLimit-Remaining`: Saldo por minuto; `unlimited` indica ausência de limite.

        - `X-Quota-Limit`: Cota mensal; plano sem limite: o cabeçalho `X-Quota-*` não é enviado.

        - `X-Quota-Remaining`: Saldo mensal; só em planos com cota.

        - `X-Quota-Reset`: Reinício mensal em ISO 8601, no fuso de São Paulo; só em planos com cota.


        Em 429, `Retry-After` informa os segundos de espera. Falhas de autenticação ocorrem antes da medição de limites.'
      operationId: sources_list
      parameters:
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 200
          minimum: 1
          default: 100
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceListEnvelope'
        '401':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Unauthorized
        '403':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Forbidden
        '404':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Not Found
        '422':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Unprocessable Entity
        '429':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Too Many Requests
        '503':
          content:
            application/problem+json:
              schema:
                properties:
                  type:
                    default: about:blank
                    title: Type
                    type: string
                  title:
                    title: Title
                    type: string
                  status:
                    title: Status
                    type: integer
                  detail:
                    title: Detail
                    type: string
                  instance:
                    title: Instance
                    type: string
                required:
                - title
                - status
                - detail
                - instance
                title: Problem
                type: object
          description: Service Unavailable
components:
  schemas:
    SourceItem:
      properties:
        code:
          type: string
          title: Code
        name:
          type: string
          title: Name
        publication:
          type: string
          title: Publication
        url:
          type: string
          title: Url
        license:
          type: string
          title: License
        credit:
          type: string
          title: Credit
        cadence:
          anyOf:
          - type: string
          - type: 'null'
          title: Cadence
      type: object
      required:
      - code
      - name
      - publication
      - url
      - license
      - credit
      title: SourceItem
    Pagination:
      properties:
        page:
          type: integer
          minimum: 1.0
          title: Page
        page_size:
          type: integer
          maximum: 200.0
          minimum: 1.0
          title: Page Size
        total:
          type: integer
          minimum: 0.0
          title: Total
      type: object
      required:
      - page
      - page_size
      - total
      title: Pagination
    Source:
      properties:
        code:
          type: string
          title: Code
        name:
          type: string
          title: Name
        url:
          type: string
          title: Url
      type: object
      required:
      - code
      - name
      - url
      title: Source
    Cadence:
      properties:
        code:
          type: string
          title: Code
        label:
          type: string
          title: Label
      type: object
      required:
      - code
      - label
      title: Cadence
    SourceListEnvelope:
      properties:
        data:
          items:
            $ref: '#/components/schemas/SourceItem'
          type: array
          title: Data
          description: Dados da resposta. Os exemplos são ilustrativos e não representam cotações atuais.
        reference_date:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Reference Date
          description: Data do dado no formato AAAA-MM-DD (RFC 3339); null quando não há data verificável. Nunca é a data da chamada.
        source:
          $ref: '#/components/schemas/Source'
        meta:
          anyOf:
          - $ref: '#/components/schemas/Pagination'
          - type: 'null'
      type: object
      required:
      - data
      - reference_date
      - source
      title: SourceListEnvelope
    DatasetStatus:
      properties:
        dataset:
          type: string
          title: Dataset
        label:
          type: string
          title: Label
        source:
          $ref: '#/components/schemas/Source'
        reference_date:
          anyOf:
          - type: string
            format: date
          - type: 'null'
          title: Reference Date
        expected_cadence:
          $ref: '#/components/schemas/Cadence'
        state:
          type: string
          enum:
          - on_time
          - late
          - unknown
          title: State
        business_days_late:
          anyOf:
          - type: integer
            minimum: 0.0
          - type: 'null'
          title: Business Days Late
        state_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: State Reason
          description: Motivo em pt-BR quando a situação é unknown; nulo quando há avaliação.
      type: object
      required:
      - dataset
      - label
      - source
      - reference_date
      - expected_cadence
      - state
      title: DatasetStatus
    Status:
      properties:
        status:
          type: string
          title: Status
        reference_dates:
          additionalProperties:
            anyOf:
            - type: string
              format: date
            - type: 'null'
          type: object
          title: Reference Dates
        datasets:
          items:
            $ref: '#/components/schemas/DatasetStatus'
          type: array
          title: Datasets
      type: object
      required:
      - status
      - reference_dates
      title: Status
  securitySchemes:
    PublicBearer:
      type: http
      scheme: bearer
    PublicAPIKey:
      type: apiKey
      in: header
      name: X-API-Key