# Brazil Sanctions Check: CEIS and CNEP by CNPJ (`br_data_hub/br-sanctions-check`) Actor

Check Brazilian companies by CNPJ or name against the official CEIS and CNEP sanctions lists from the CGU (Portal da Transparencia). Exact CNPJ match, fuzzy name match with a 0-100 score, sanction details, and the version of each list. Companies only, no CPF.

- **URL**: https://apify.com/br_data_hub/br-sanctions-check.md
- **Developed by:** [br_data_hub](https://apify.com/br_data_hub) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 screened companies

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Brazil Sanctions Check: CEIS and CNEP by CNPJ

Check **Brazilian companies** against the two official federal sanctions registers published by the **CGU** (Controladoria-Geral da Uniao) on the **Portal da Transparencia**:

- **CEIS**: Cadastro Nacional de Empresas Inidoneas e Suspensas (companies barred or suspended from public contracts)
- **CNEP**: Cadastro Nacional de Empresas Punidas (companies punished under the Anti-Corruption Law, with fines)

Look up a company by **CNPJ** (exact match) or by **name** (fuzzy match with a 0-100 score). Each result lists the sanctions found: category, start and end dates, issuing authority, legal basis, fine amount (CNEP) and whether the sanction is **in force today**. Every item also carries the **date and size of the list** used, for your audit trail.

> **Screening support, not a legal decision.** A CNPJ match means the company appears in the register, but the register can lag behind court decisions and the sanction may have ended or been suspended. A name match is only a lead: **false positives are expected**. A "no-match" does not clear a company. Always confirm on the official Portal da Transparencia and follow your own compliance procedures.

**Not affiliated** with the CGU or the Brazilian government. This Actor only reads the open data they publish.

### Why this Actor

- **Official data, no aggregator.** The files are downloaded directly from the Portal da Transparencia, fresh on every run.
- **Exact CNPJ match plus group awareness.** Besides the exact CNPJ, you get other establishments of the same company (same 8-character CNPJ root), marked `cnpjRoot` with a lower score.
- **Alphanumeric CNPJ ready.** The new alphanumeric CNPJ format is validated and accepted; check digits are verified before anything is charged.
- **Clear status.** `sanctioned` (exact CNPJ in a register), `possible-match` (name or same-root lead), `no-match` or `error`.
- **In-force flag.** Each sanction says whether it is in force today (`true`), expired (`false`) or unknown because the source gives no end date (`null`).
- **Companies only.** The registers also list individuals; this Actor reads **only company entries** and never returns or stores a CPF.

### Input

| Field | What it does |
|---|---|
| `cnpjs` | CNPJs to check, with or without punctuation. Exact match on the CNPJ. |
| `names` | Company names to search by similarity. Accents, case and suffixes such as LTDA or S/A are ignored. |
| `lists` | `ceis`, `cnep` or both (default). |
| `onlyInForce` | Hide sanctions whose end date has passed. Sanctions with no end date are kept. |
| `minScore` | Lowest name similarity returned, 50-100 (default 90). Does not affect CNPJ checks. |
| `maxMatchesPerName` | Maximum matches returned per name, 1-50 (default 10). |

Give at least one CNPJ or one name. Invalid CNPJs (wrong check digits) and names shorter than 3 letters return an item with `status: "error"` and are **not charged**.

#### How the name score works

Names are normalised (accents removed, upper case, legal suffixes dropped) and compared with a word-order-insensitive similarity from 0 to 100. Use CNPJ whenever you have it: two different companies can have very similar names. Raise `minScore` to reduce false positives, lower it to catch spelling variants.

### Output

One item per CNPJ or name:

```json
{
  "query": "11222333000181",
  "queryType": "cnpj",
  "cnpj": "11222333000181",
  "cnpjFormatted": "11.222.333/0001-81",
  "status": "sanctioned",
  "sanctioned": true,
  "activeSanctions": 1,
  "matchCount": 1,
  "matches": [
    {
      "list": "ceis",
      "sanctionId": "1001",
      "name": "ACME COMERCIO E SERVICOS LTDA",
      "legalName": null,
      "tradeName": null,
      "nameByAuthority": "ACME COMERCIO E SERVICOS LTDA",
      "processNumber": "123/2026",
      "category": "Impedimento",
      "fine": null,
      "startDate": "2026-04-07",
      "endDate": "2029-04-07",
      "publicationDate": "2026-04-08",
      "finalJudgmentDate": null,
      "scope": null,
      "authority": "Ministerio Exemplo",
      "authorityState": "DF",
      "authoritySphere": "FEDERAL",
      "legalBasis": "LEI 8666 ART 87",
      "notes": null,
      "cnpj": "11222333000181",
      "matchType": "cnpj",
      "score": 100,
      "inForce": true
    }
  ],
  "error": null,
  "screenedAt": "2026-11-07T22:59:57+00:00",
  "listVersions": [
    {
      "list": "ceis",
      "listName": "CEIS (Cadastro Nacional de Empresas Inidoneas e Suspensas)",
      "fileDate": "2026-11-07",
      "companyEntries": 1,
      "sourceUrl": "https://portaldatransparencia.gov.br/download-de-dados/ceis/20261107"
    }
  ]
}
```

The example above is illustrative (an invented company). A summary of the run (counts of sanctioned, possible matches, no-match and errors, plus the list versions) is saved in the key-value store under `OUTPUT`.

#### Status values

- `sanctioned`: the exact CNPJ appears in a selected register. Check `activeSanctions` and each match's `inForce`.
- `possible-match`: a name match, or another establishment of the same CNPJ root. Review manually.
- `no-match`: nothing found in the selected registers.
- `error`: invalid input. Not charged.

### How much does it cost?

**$0.003 per screened company** (`screened-company` event, pay per event). Charged once per CNPJ or company name screened against the selected lists, match or no match. Invalid inputs are free.

- `apify-actor-start`: $0.00005 (Charged once when a run starts (Apify synthetic event).)

| You get | Free tier | Bronze tier (10% off) | Gold tier (30% off) |
|---|---|---|---|
| 100 screened companies | $0.30 | $0.27 | $0.21 |
| 1,000 screened companies | $3.00 | $2.70 | $2.10 |
| 10,000 screened companies | $30.00 | $27.00 | $21.00 |

Discounts follow your Apify subscription tier: Bronze 10%, Silver 20%, Gold and above 30%. No subscription to this Actor and no charge for platform usage: you pay only for results.
The Apify Free plan includes $5 of monthly credit, enough for about **1,666 screened companies** at the list price.
You can cap the cost of any run with **Maximum cost per run**; the Actor stops when it is reached.

### Data source and limits

The data comes from the open-data downloads of the [Portal da Transparencia](https://portaldatransparencia.gov.br/download-de-dados/ceis) (CGU), which publishes a new file every day. The Actor tries the most recent days until it finds one, and tells you the date of the file it used in `listVersions`.

- Covers the **federal** CEIS and CNEP registers only. State and municipal sanctions that are not reported to the CGU are not included, and neither are other lists (for example the TCU list of ineligible persons, or IBAMA embargoes).
- Only **company** entries are read. Individuals (CPF) are never returned.
- A run needs the Portal to be reachable. If a requested list cannot be downloaded, the run fails instead of returning a partial answer that could look like a clearance.

### More questions

#### Does a "no-match" mean the company is clean?

No. It means the company does not appear in the registers selected, on the date of the file. Sanctions from other sources, very recent decisions and state or municipal registers can exist.

#### Why do I see a sanction with `inForce: null`?

The register gives no end date (for example, an open-ended suspension). We keep it and flag it as unknown instead of assuming it ended.

#### Can I check a whole supplier list?

Yes. Put the CNPJs in `cnpjs` (up to 10,000 per run). Each CNPJ or name is one charged unit, whether or not it matches.

### Use it via API

Run it from any language and get the results as JSON. Replace `<YOUR_API_TOKEN>` with your [Apify API token](https://console.apify.com/settings/integrations).

```bash
curl -X POST "https://api.apify.com/v2/acts/br_data_hub~br-sanctions-check/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"cnpjs": ["11.338.577/0001-24", "04.093.968/0001-60", "33.000.167/0001-01"], "names": ["Bradisa Comercio Projetos e Servicos Eletricos"]}'
```

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("br_data_hub/br-sanctions-check").call(run_input={'cnpjs': ['11.338.577/0001-24', '04.093.968/0001-60', '33.000.167/0001-01'],
                                      'names': ['Bradisa Comercio Projetos e Servicos Eletricos']})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

You can also schedule runs, send results to webhooks, or connect the Actor to Make, Zapier, n8n, Google Sheets and other [integrations](https://docs.apify.com/platform/integrations).

### Use it with AI agents (MCP)

This Actor is ready for AI agents: typed input and output schemas, pay-per-event pricing, limited permissions and short runs.

- **Apify MCP server:** add `https://mcp.apify.com/?tools=br_data_hub/br-sanctions-check` to Claude, ChatGPT, Cursor, VS Code or any MCP client, and the agent can call this Actor as a tool.
- **Agent frameworks:** call it from LangChain, LlamaIndex, CrewAI or the OpenAI Agents SDK through the Apify integrations, or with the API call above.
- Results come as structured JSON with stable field names, documented in the **Output** tab.

### FAQ

#### Where does the data come from?

The data comes from the open-data downloads of the [Portal da Transparencia](https://portaldatransparencia.gov.br/download-de-dados/ceis) (CGU), which publishes a new file every day. The Actor tries the most recent days until it finds one, and tells you the date of the file it used in `listVersions`.

#### How much does it cost?

$0.003 per screened company. Discounts follow your Apify subscription tier: Bronze 10%, Silver 20%, Gold and above 30%. See **How much does it cost?** above for examples.

#### Do I pay for errors or empty results?

Errors and invalid inputs are free. A check that finds nothing is charged, because the lookup was done. Charged once per CNPJ or company name screened against the selected lists, match or no match. Invalid inputs are free.

#### Can I run it on a schedule or connect it to other tools?

Yes. Use Apify schedules to run it daily or weekly, webhooks to get notified, and integrations such as Make, Zapier, n8n and Google Sheets. Everything also works through the API.

#### Can AI agents use it?

Yes. It works as a tool in the Apify MCP server and in agent frameworks, and AI agents can pay per event. See **Use it with AI agents (MCP)**.

#### Is it legal to use this data?

The Actor reads only public, official sources and keeps personal data masked as the source publishes it. You are responsible for how you use the data, including LGPD compliance.

#### I found a bug or need a feature. What should I do?

Open an issue in the **Issues** tab. We answer within 14 days, usually much sooner.

### More Actors from BR Data Hub

| Actor | What it does |
|---|---|
| [Brazil CNPJ Lookup API (Consulta CNPJ)](https://apify.com/br_data_hub/br-cnpj-lookup) | Look up Brazilian companies by CNPJ: registration status, partners (masked CPF), activities, tax regime and sc |
| [Brazil Public Contracts API (PNCP Contratos)](https://apify.com/br_data_hub/br-pncp-contracts) | Get Brazilian government contracts from PNCP, the official national procurement portal: buyer, supplier, objec |
| [Brazil Open Tenders API (Licitações Abertas)](https://apify.com/br_data_hub/br-pncp-open-tenders) | Find Brazilian government tenders that are open for proposals right now, from PNCP, the official national proc |
| [Brazil Municipalities & IBGE Codes (Municípios)](https://apify.com/br_data_hub/br-ibge-localities) | List Brazilian municipalities, search them by name (accents and typos tolerated) or resolve IBGE codes |
| [Brazil Holidays & Business Days (Feriados)](https://apify.com/br_data_hub/br-holidays) | Brazilian national and state holidays for all 27 states, with the law behind each one |
| [Brazil Banks & Pix Directory (Bancos e ISPB)](https://apify.com/br_data_hub/br-bank-pix-directory) | Every Brazilian bank and payment institution from official Banco Central lists: ISPB, COMPE bank code, short a |
| [Brazil Boleto Validator & Parser (Boleto)](https://apify.com/br_data_hub/br-boleto-parser) | Validate Brazilian boletos in bulk (digitable line or barcode, bank and utility/tax slips): check digits per f |
| [NF-e XML to JSON: Brazil Invoice Parser (NF-e, NFC-e)](https://apify.com/br_data_hub/br-nfe-xml-parser) | Convert Brazilian electronic invoices (NF-e and NFC-e XML) into clean JSON or one row per item: issuer, buyer, |

See all our Actors at [apify.com/br_data_hub](https://apify.com/br_data_hub).

### Usar em português

**Verifica empresas brasileiras nos cadastros oficiais CEIS (inidôneas e suspensas) e CNEP (punidas pela Lei Anticorrupção)**, publicados pela CGU no Portal da Transparência.

- Consulte por **CNPJ** (correspondência exata, inclusive CNPJ alfanumérico) ou por **nome** (similaridade de 0 a 100).
- Cada sanção traz categoria, datas de início e fim, órgão sancionador, fundamento legal, multa (CNEP) e se está **vigente hoje**.
- Também aparecem outros estabelecimentos da mesma empresa (mesma raiz de 8 caracteres do CNPJ), marcados como `cnpjRoot`.
- Só **empresas**: o CPF nunca é lido nem devolvido.
- CNPJ inválido ou nome curto demais voltam como `error` e **não são cobrados**.

**Atenção:** apoio à triagem, não decisão jurídica. O cadastro pode estar defasado em relação a decisões judiciais, e "sem ocorrência" não significa que a empresa está liberada. Confirme sempre no Portal da Transparência.

**Quanto custa:** $0.003 por resultado (`screened-company`); 1.000 resultados saem por $3.00. Desconto pelo nível da assinatura Apify: Bronze 10%, Silver 20%, Gold ou acima 30%. Entradas inválidas não são cobradas; consulta sem ocorrência é cobrada. Use também pela API ou por agentes de IA no servidor MCP da Apify (`https://mcp.apify.com/?tools=br_data_hub/br-sanctions-check`).

# Actor input Schema

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

Enter the CNPJ of each company to check, one per line, with or without dots and slash. Alphanumeric CNPJs are accepted.

## `names` (type: `array`):

Enter company names to search by similarity, one per line. Accents, case and suffixes like LTDA or S/A are ignored. Use CNPJ when you have it: names can match other companies.

## `lists` (type: `array`):

Pick the official lists to check. Keep both for full coverage.

## `onlyInForce` (type: `boolean`):

Turn on to hide sanctions whose end date has passed. Sanctions with no end date in the source are kept, because they may still apply.

## `minScore` (type: `integer`):

Set the lowest name similarity to return (50 to 100), e.g. 90. Lower finds more spelling variants and more false positives. Does not affect CNPJ checks.

## `maxMatchesPerName` (type: `integer`):

Set how many matches to return for each company name (1 to 50).

## Actor input object example

```json
{
  "cnpjs": [
    "11.338.577/0001-24",
    "04.093.968/0001-60",
    "33.000.167/0001-01"
  ],
  "names": [
    "Bradisa Comercio Projetos e Servicos Eletricos"
  ],
  "lists": [
    "ceis",
    "cnep"
  ],
  "onlyInForce": false,
  "minScore": 90,
  "maxMatchesPerName": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset with all results

## `files` (type: `string`):

Key-value store with the files and the OUTPUT summary of the run

# 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 = {
    "cnpjs": [
        "11.338.577/0001-24",
        "04.093.968/0001-60",
        "33.000.167/0001-01"
    ],
    "names": [
        "Bradisa Comercio Projetos e Servicos Eletricos"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("br_data_hub/br-sanctions-check").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 = {
    "cnpjs": [
        "11.338.577/0001-24",
        "04.093.968/0001-60",
        "33.000.167/0001-01",
    ],
    "names": ["Bradisa Comercio Projetos e Servicos Eletricos"],
}

# Run the Actor and wait for it to finish
run = client.actor("br_data_hub/br-sanctions-check").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 '{
  "cnpjs": [
    "11.338.577/0001-24",
    "04.093.968/0001-60",
    "33.000.167/0001-01"
  ],
  "names": [
    "Bradisa Comercio Projetos e Servicos Eletricos"
  ]
}' |
apify call br_data_hub/br-sanctions-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,br_data_hub/br-sanctions-check"
        }
    }
}
```

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/A5Ai0GvV2zabtEUYq/builds/tG96uW5KAGnsrF0yZ/openapi.json
