{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil Company Sanctions (CEIS, CNEP): sanções a empresas",
    "description": "Empresas sancionadas no CEIS e no CNEP do Portal da Transparência (CGU): consulte por CNPJ, nome, órgão ou período. Só pessoa jurídica. JSON, CSV ou Excel, sem chave de API.",
    "version": "0.0",
    "x-build-id": "2VOOnOnL4cNTNwRk0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/soleene~brazil-company-sanctions-ceis-cnep-sancoes-a-empresas/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-soleene-brazil-company-sanctions-ceis-cnep-sancoes-a-empresas",
        "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/soleene~brazil-company-sanctions-ceis-cnep-sancoes-a-empresas/runs": {
      "post": {
        "operationId": "runs-sync-soleene-brazil-company-sanctions-ceis-cnep-sancoes-a-empresas",
        "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/soleene~brazil-company-sanctions-ceis-cnep-sancoes-a-empresas/run-sync": {
      "post": {
        "operationId": "run-sync-soleene-brazil-company-sanctions-ceis-cnep-sancoes-a-empresas",
        "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": [
          "cadastro"
        ],
        "properties": {
          "cadastro": {
            "title": "Cadastro",
            "enum": [
              "ceis",
              "cnep"
            ],
            "type": "string",
            "description": "ceis: Cadastro Nacional de Empresas Inidôneas e Suspensas (cerca de 14,5 mil empresas). cnep: Cadastro Nacional de Empresas Punidas, da Lei Anticorrupção, com valor de multa (cerca de 1,8 mil).",
            "default": "cnep"
          },
          "cnpj": {
            "title": "CNPJ (opcional)",
            "type": "string",
            "description": "CNPJ completo (14 dígitos) ou só a raiz (8 dígitos, que pega matriz e filiais). Com ou sem pontuação."
          },
          "nome": {
            "title": "Nome da empresa (opcional)",
            "type": "string",
            "description": "Parte da razão social, do nome fantasia ou do nome informado pelo órgão. Pelo menos 3 letras. Ignora acento e maiúscula."
          },
          "uf": {
            "title": "UF do órgão sancionador (opcional)",
            "enum": [
              "AC",
              "AL",
              "AP",
              "AM",
              "BA",
              "CE",
              "DF",
              "ES",
              "GO",
              "MA",
              "MT",
              "MS",
              "MG",
              "PA",
              "PB",
              "PR",
              "PE",
              "PI",
              "RJ",
              "RN",
              "RS",
              "RO",
              "RR",
              "SC",
              "SP",
              "SE",
              "TO"
            ],
            "type": "string",
            "description": "Estado do órgão que aplicou a sanção, não da empresa."
          },
          "orgao": {
            "title": "Órgão sancionador (opcional)",
            "type": "string",
            "description": "Parte do nome do órgão que aplicou a sanção."
          },
          "esfera": {
            "title": "Esfera (opcional)",
            "enum": [
              "federal",
              "estadual",
              "municipal"
            ],
            "type": "string",
            "description": "Esfera do órgão sancionador."
          },
          "categoria": {
            "title": "Categoria da sanção (opcional)",
            "type": "string",
            "description": "Parte do nome da categoria. Exemplos: inidoneidade, suspensão, impedimento, multa."
          },
          "apenasVigentes": {
            "title": "Só sanções vigentes hoje",
            "type": "boolean",
            "description": "Mantém só as que já começaram e ainda não terminaram, ou que não têm data final. A vigência é calculada pelas datas do arquivo, na data da execução.",
            "default": false
          },
          "publicadoDesde": {
            "title": "Publicada a partir de (opcional)",
            "type": "string",
            "description": "Data de publicação da sanção, inclusive, no formato AAAA-MM-DD."
          },
          "publicadoAte": {
            "title": "Publicada até (opcional)",
            "type": "string",
            "description": "Data de publicação da sanção, inclusive, no formato AAAA-MM-DD."
          },
          "valorMinimoMulta": {
            "title": "Valor mínimo da multa em reais (opcional, só CNEP)",
            "minimum": 0,
            "type": "number",
            "description": "Descarta sanções com multa abaixo desse valor ou sem multa."
          },
          "mascararCpf": {
            "title": "Mascarar CPF se aparecer no texto",
            "type": "boolean",
            "description": "Ligado por padrão. Alguns campos de texto livre trazem CPF de terceiros; ele sai como ***.456.789-**. Desligue para manter o texto como a fonte publica.",
            "default": true
          },
          "limite": {
            "title": "Limite de registros",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Máximo de sanções nesta execução. O padrão é pequeno para teste. O teto é 10.000.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}