# Consulta CNPJ Sanções (CEIS, CNEP, CEPIM) (`luizpcastro/cnpj-sancoes-screening`) Actor

- **URL**: https://apify.com/luizpcastro/cnpj-sancoes-screening.md
- **Developed by:** [Luiz Paulo Souza Homem de Castro](https://apify.com/luizpcastro) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 cnpj verificados

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Consulta CNPJ Sanções — Screening CEIS, CNEP e CEPIM

Screening de compliance por CNPJ nas três principais listas de sanções do
governo brasileiro, em lote, via API. Passe uma lista de CNPJs e receba, para
cada um, a situação de sanção com detalhes oficiais — ou a certificação
negativa (empresa sem sanção nas fontes consultadas).

### O que este CNPJ scraper faz

Verifica cada CNPJ no:

- **CEIS** — Cadastro de Empresas Inidôneas e Suspensas
- **CNEP** — Cadastro Nacional de Empresas Punidas
- **CEPIM** — Entidades Privadas sem Fins Lucrativos Impedidas de receber recursos públicos

Fonte oficial: [Portal da Transparência](https://portaldatransparencia.gov.br).
Ideal para **due diligence de fornecedores**, compliance anticorrupção
(Lei 12.846/2013), triagem de leads B2B e verificação em lote antes de
contratações públicas ou privadas.

### Exemplo de input

```json
{
  "cnpjs": ["11.222.333/0001-81", "00000000000191"],
  "fontes": ["CEIS", "CNEP", "CEPIM"]
}
```

CNPJs aceitos com ou sem máscara. Duplicados são processados uma única vez.

### Exemplo de output

```json
{
  "cnpj": "11222333000181",
  "situacao": "SANCIONADA",
  "fontes": ["CEIS", "CNEP", "CEPIM"],
  "indexAgeDays": 0,
  "sancoes": [
    {
      "fonte": "CEIS",
      "tipoSancao": "Impedimento/proibição de contratar com prazo determinado",
      "orgao": "Ministério do Trabalho",
      "dataInicio": "11/11/2024",
      "dataFim": "11/11/2027",
      "fundamentoLegal": "LEI 8429 - ART. 12"
    }
  ]
}
```

`situacao: "SEM_SANCAO"` significa que o CNPJ não consta em nenhuma fonte
consultada na data do índice — o campo `indexAgeDays` mostra a idade do
índice, em dias. CNPJs com formato inválido retornam
`situacao: "CNPJ_INVALIDO"` com o motivo no campo `erro`.

### Preço

Pay-per-event: **$0.10 por CNPJ processado** — cobrado por resultado
entregue no dataset, incluindo resultados "limpos" (sem sanção), que são o
valor da consulta. CNPJs com formato inválido também são cobrados: a
verificação consome processamento, e a regra uniforme de preço impede o uso
do Actor como validador gratuito de listas. Duplicados na mesma execução
são processados e cobrados uma única vez.

### Limites do plano grátis

Usuários do plano grátis da Apify podem verificar **até 10 CNPJs por
execução**. Esse limite é definido pelo desenvolvedor (não pela Apify) e a
execução termina com mensagem clara quando atingido. Assine um plano pago
para processar listas maiores.

### Uso via API

```js
const run = await fetch('https://api.apify.com/v2/acts/~cnpj-sancoes-screening/runs', {
  method: 'POST',
  headers: { 'content-type': 'application/json', 'authorization': 'Bearer SEU_TOKEN' },
  body: JSON.stringify({ cnpjs: ['11222333000181'] }),
});
```

### Fontes dos dados

Downloads em massa oficiais do Portal da Transparência: CEIS, CNEP e CEPIM.
O índice de sanções é atualizado diariamente pela rotina do desenvolvedor; a
idade do índice vem no campo `indexAgeDays` de cada resultado.

# Actor input Schema

## `mode` (type: `string`):

screen = consultar CNPJs (uso normal). buildIndex = reconstruir o índice de sanções (uso do desenvolvedor).

## `cnpjs` (type: `array`):

Lista de CNPJs para verificar. Aceita com ou sem máscara (ex.: 12.345.678/0001-95 ou 12345678000195). Usuários do plano grátis: limite de 10 CNPJs por execução.

## `fontes` (type: `array`):

Listas oficiais do Portal da Transparência para verificar.

## `maxItems` (type: `integer`):

Limite de segurança de processamento por execução.

## Actor input object example

```json
{
  "mode": "screen",
  "fontes": [
    "CEIS",
    "CNEP",
    "CEPIM"
  ],
  "maxItems": 10000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("luizpcastro/cnpj-sancoes-screening").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("luizpcastro/cnpj-sancoes-screening").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call luizpcastro/cnpj-sancoes-screening --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luizpcastro/cnpj-sancoes-screening"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ajpLX97PNYB5byz5D/builds/hDYa13YqC0khjYlSA/openapi.json
