{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Insider Trades — CVM 358 Buys & Sells",
    "description": "Insider buys & sells at Brazilian listed companies (Controller, Board, Officers) from official CVM data, refreshed every run. Volume in BRL, B3 ticker, signal score, rankings & alerts. 2018–today. | Compras e vendas de insiders da B3 direto da CVM, com volume em R$, ticker e signal score.",
    "version": "3.0",
    "x-build-id": "dcm6wmtthD2RLee8l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jenko_systems~cvm-insider-358/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jenko_systems-cvm-insider-358",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jenko_systems~cvm-insider-358/runs": {
      "post": {
        "operationId": "runs-sync-jenko_systems-cvm-insider-358",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jenko_systems~cvm-insider-358/run-sync": {
      "post": {
        "operationId": "run-sync-jenko_systems-cvm-insider-358",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Modo de consulta",
            "enum": [
              "recent",
              "empresa",
              "busca",
              "alerts",
              "ranking",
              "setor",
              "estatisticas",
              "administradores"
            ],
            "type": "string",
            "description": "O que consultar.\n\nCampos vazios recebem um exemplo (indicado em 'defaults_used'): empresa e administradores → PETR4; busca → 'energia'.",
            "default": "recent"
          },
          "days": {
            "title": "Período (dias)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Janela de datas das movimentações. A CVM recebe os formulários até o dia 10 do mês seguinte, então o mês corrente ainda não aparece. Dados a partir de 2018.",
            "default": 60
          },
          "empresa": {
            "title": "Empresa",
            "type": "string",
            "description": "Nome parcial (sem precisar de acento). Ex.: Petrobras, Vale, Itaú."
          },
          "cnpj": {
            "title": "CNPJ",
            "type": "string",
            "description": "Formato 33.000.167/0001-01."
          },
          "ticker": {
            "title": "Ticker B3",
            "type": "string",
            "description": "Ex.: PETR4, VALE3, ITUB4 (qualquer classe da empresa serve). Cobertura: ~180 empresas; para as demais use nome ou CNPJ."
          },
          "busca": {
            "title": "Termo de busca — modo busca",
            "type": "string",
            "description": "Parte do nome. Ex.: Energia, Banco."
          },
          "grupo": {
            "title": "Grupo",
            "enum": [
              "all",
              "Controlador",
              "Conselho de Administração",
              "Diretoria",
              "Conselho Fiscal",
              "Órgãos Técnicos ou Consultivos"
            ],
            "type": "string",
            "description": "Filtra por grupo de pessoas ligadas.",
            "default": "all"
          },
          "operacao": {
            "title": "Operação",
            "enum": [
              "all",
              "COMPRA",
              "VENDA",
              "SUBSCRICAO"
            ],
            "type": "string",
            "description": "Compra, venda ou subscrição.",
            "default": "all"
          },
          "min_value_brl": {
            "title": "Valor mínimo (R$) — modo alertas",
            "minimum": 1000,
            "type": "integer",
            "description": "Volume mínimo da movimentação.",
            "default": 1000000
          },
          "tipo_ranking": {
            "title": "Tipo de ranking — modo ranking",
            "enum": [
              "maiores_compradores",
              "maiores_vendedores",
              "maior_fluxo_liquido",
              "mais_ativos",
              "maior_filing_count",
              "strongest_buy_signals",
              "strongest_sell_signals"
            ],
            "type": "string",
            "description": "Como ordenar as empresas.",
            "default": "maiores_vendedores"
          },
          "top_n": {
            "title": "Top N — modo ranking",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Quantas empresas no ranking.",
            "default": 20
          },
          "setor_filter": {
            "title": "Setor — modo setor",
            "type": "string",
            "description": "Parte do nome do setor. Ex.: Bancos, Energia."
          },
          "include_administradores": {
            "title": "Incluir administradores (FRE) — modo empresa",
            "type": "boolean",
            "description": "Mostra quem compunha o grupo (diretoria, conselho) no período. O VLMO não identifica a pessoa que negociou.",
            "default": false
          },
          "nome_pessoa": {
            "title": "Nome da pessoa — modo administradores",
            "type": "string",
            "description": "Nome parcial do administrador."
          },
          "ano_min": {
            "title": "Ano mínimo — modo administradores",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Só registros do FRE a partir deste ano (0 = todos).",
            "default": 0
          },
          "incluir_outras_movimentacoes": {
            "title": "Incluir outras movimentações",
            "type": "boolean",
            "description": "Além de compra/venda/subscrição, inclui remuneração em ações, exercício de opções, posse/desligamento, empréstimos etc.",
            "default": false
          },
          "incluir_controladas": {
            "title": "Incluir controladas/controladoras",
            "type": "boolean",
            "description": "Inclui negociações com papéis de empresas controladas ou controladoras (por padrão, só papéis da própria companhia).",
            "default": false
          },
          "tipo_ativo": {
            "title": "Ativos",
            "enum": [
              "acoes",
              "todos"
            ],
            "type": "string",
            "description": "Só ações/units ou todos (debêntures, opções, derivativos...).",
            "default": "acoes"
          },
          "max_resultados": {
            "title": "Máximo de resultados",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Limite de itens retornados.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}