# Global Sanctions's Economic Group & PEP Screening by CNPJ/taxID (`brasildados/global-sanctions`) Actor

Screen a Brazilian company's entire economic group (by CNPJ / Tax ID) for sanctions and PEP exposure. Every related company and person with national + international hits (OFAC, EU, UN, UK, INTERPOL) and a group risk summary. Up to 1,000 CNPJs. Standby API POST /check.

- **URL**: https://apify.com/brasildados/global-sanctions.md
- **Developed by:** [BrasilDados.org - Hub de APIs de Dados do Brasil](https://apify.com/brasildados) (community)
- **Categories:** Automation, Real estate, Other
- **Stats:** 3 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$100.00 / 1,000 per global sanction founds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

#### 🌐 Economic Group Sanctions & PEP Screening

**Economic Group Sanctions** screens the **entire economic group** of a Brazilian company, by **CNPJ (Tax ID)**, for **sanctions** and **PEP exposure** in a single call. Send up to **1,000 CNPJs (Tax IDs)** per run; each one expands to every **related company and person** in its economic group, with national and international sanction hits and politically-exposed-person flags, plus a **group-level risk summary**. Export to **JSON, CSV, Excel or XML**, or call the **REST API** in real time.

> **One CNPJ in = the whole group's risk profile out.** Raw normalized facts for your business rules (approve / review / reject). Low-confidence name matches are filtered out so you don't drown in false positives. Invalid check digits are skipped locally and are **not charged**.

##### What does it return?

| | |
|---|---|
| 📊 **Group summary** | Sanctioned/PEP company and people counts, total sanction records, PEP percentage, first/last sanction date, `hasSanctions`/`hasPEP` flags |
| 🏢 **Companies** | Every CNPJ in the group (public), each with its PEP block and sanction records |
| 👤 **People** | Every related person, with **masked tax IDs** and **personal names omitted** (data protection), each with PEP block and sanction records |
| ⚖️ **Sanction detail** | Source, type, standardized category, process number, institution, phase, dates, match confidence (0-100), active-on-source flag |
| 🏛️ **PEP block** | Current flag plus occurrence counters (1/3/5/+5 years) and first/last occurrence dates |

##### What can this Actor do?

- 🌐 **Whole-group screening:** sanctions + PEP for every company and person tied to the CNPJ
- 🌍 **National + international sources:** Brazilian regulators (CVM, CNEP, CEIS and others) and OFAC, EU, UN, UK, INTERPOL and more
- 🎯 **False-positive control:** low-confidence international name matches are filtered out automatically
- 🔒 **Privacy by design:** people's tax IDs are masked and personal names omitted
- 📋 **Bulk:** up to 1,000 CNPJs per batch run
- 📤 **Multiple exports:** JSON, CSV, Excel, XML from the Apify Dataset
- ⚡ **Standby REST API:** `POST /check` for real-time integration

Built for **AML**, **KYC/KYB**, **banking and fintech onboarding**, **supplier and counterparty due diligence**, **M\&A screening** and **continuous monitoring**.

***

### Why screen the economic group, not just the company?

Risk hides in the group. A clean company can sit inside a group with sanctioned affiliates or politically exposed partners. Screening only the queried CNPJ misses that exposure. This Actor surfaces sanctions and PEP across **every company and person** in the economic group, so your AML and due-diligence decisions see the full picture.

- **AML compliance:** structured group-wide inputs for anti-money-laundering workflows
- **Onboarding:** sanctions and PEP exposure across the whole group before account opening
- **Supplier & counterparty vetting:** regulatory exposure beyond the contracting entity
- **M\&A and investment:** timestamped, group-level screening records
- **Continuous monitoring:** detect new sanctions or PEP changes anywhere in the group

Consolidated from credentialed official sources. No external API key required from the end user.

***

### How do I screen in bulk?

1. Open the actor on [Apify Console](https://console.apify.com/?fpr=t5lwzq) and go to the **Input** tab.
2. Paste CNPJs in the **`cnpjs` string list** (any format).
3. Click **Start** and wait for the run to finish.
4. Open **Dataset** > **Export** > choose **XLSX**, CSV or JSON.

**Example input:**

```json
{
  "cnpjs": [
    "02916265000160",
    "33.000.167/0001-01"
  ]
}
```

***

#### ⬇️ Input

| Field | Required | Description |
|---|---|---|
| `cnpjs` | ✅ Yes | CNPJs (string list). Max **1,000** per run. Any format. Each expands to its full economic group. Invalid check digits are skipped (not billed). |

***

#### ⬆️ Output

Download from the **Dataset** tab. One record per valid CNPJ.

> **Abbreviated sample.** Full output includes the complete `companies[]` and `people[]` arrays, each with full `pep` and `sanctions.list[]`. See the **Dataset schema** tab for every field.

```json
{
  "cnpj": "02916265000160",
  "cnpjFormatted": "02.916.265/0001-60",
  "queriedAt": "2026-06-04T03:00:00.000Z",
  "found": true,
  "groupSummary": {
    "totalCompanies": 283,
    "totalPeople": 5,
    "companiesSanctioned": 1,
    "peopleSanctioned": 2,
    "currentlySanctioned": 0,
    "historicallySanctioned": 3,
    "totalSanctions": 6,
    "currentlyPEP": 1,
    "historicallyPEP": 1,
    "pepPercentage": 0.35,
    "firstSanctionDate": "2012-10-25T03:00:00Z",
    "lastSanctionDate": "2024-06-05T03:00:00Z",
    "hasSanctions": true,
    "hasPEP": true
  },
  "companies": [
    {
      "document": "56108743000134",
      "documentFormatted": "56.108.743/0001-34",
      "documentType": "CNPJ",
      "pep": { "isCurrentPEP": false },
      "sanctions": {
        "currentlyActive": false,
        "previouslySanctioned": true,
        "historicalTotal": 1,
        "list": [
          {
            "type": "Multa",
            "source": "cnep",
            "processNumber": "00190105434201842",
            "matchConfidence": 100,
            "startDate": "2024-06-05T03:00:00Z",
            "activeOnSource": false
          }
        ]
      }
    }
  ],
  "people": [
    {
      "documentMasked": "***811954**",
      "documentType": "CPF",
      "pep": { "isCurrentPEP": false },
      "sanctions": {
        "previouslySanctioned": true,
        "historicalTotal": 1,
        "list": [
          {
            "type": "Judged Sanctions",
            "normalizedType": "CORRUPTION",
            "source": "Comissao de Valores Mobiliarios",
            "processNumber": "19957.007245/2021-20 (RJ2012/12931)",
            "currentPhase": "ENCERRADO/EXTINTO",
            "matchConfidence": 100
          }
        ]
      }
    }
  ]
}
```

***

#### 🔌 API integration

**Batch run:**

```bash
curl -X POST "https://api.apify.com/v2/acts/brasildados~global-sanctions/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cnpjs":["02916265000160","33.000.167/0001-01"]}'
```

**Standby (`POST /check`):**

```bash
curl -X POST "https://brasildados--global-sanctions.apify.actor/check" \
  -H "Authorization: Bearer YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  --compressed \
  -d '{"cnpjs":["02916265000160"]}'
```

Interactive docs (Swagger UI) in the **Endpoints** tab.

***

### Related Actors

| Actor | When to use |
|---|---|
| [CNPJ KYC & PEP Checker](https://apify.com/brasildados/cnpj-kyc-compliance-pep-checker?fpr=t5lwzq) | KYC, sanctions and PEP for a single CNPJ (not the whole group) |
| [Sanctions Check](https://apify.com/brasildados/sanctions-check?fpr=t5lwzq) | Cheap Brazilian CEIS/CNEP/FGTS triage at $0.002/doc |
| [CNPJ Enrichment](https://apify.com/brasildados/brazil-enrich-data-lead-by-cnpj?fpr=t5lwzq) | Full company profile and ownership (QSA) |
| [CNPJ Lawsuits Check](https://apify.com/brasildados/cnpj-lawsuits-check?fpr=t5lwzq) | Civil, labor and criminal litigation exposure |

***

### FAQ

#### What counts as the "economic group"?

Every company and person the source links to the queried CNPJ through ownership and control ties. The Actor returns each of them with their own sanctions and PEP detail, plus a group-level summary.

#### How are false positives handled?

International sanction lists (OFAC, INTERPOL, EU, UN, UK and others) match by name and produce many low-confidence false positives. The Actor drops hits below a confidence threshold and keeps tax-id-matched national sanctions (which arrive at full confidence). The group summary is computed only from the hits that pass, so the totals match the detail.

#### What sanction sources are covered?

National Brazilian regulators (e.g. CVM, CNEP, CEIS) and international lists (OFAC, EU, UN, UK, INTERPOL and others).

#### How is personal data handled?

People are returned with **masked tax IDs**, and personal names and free-text descriptions that identify individuals are **omitted** for data protection. Company names (public) are kept.

#### What CNPJ formats are accepted?

Any format. Check digits are validated locally. Max 1,000 CNPJs per run.

#### Batch vs Standby?

Both accept up to 1,000 CNPJs. Standby returns JSON directly via `POST /check`.

#### Am I charged for invalid or not-found CNPJs?

Invalid check digits are skipped and never billed. Charging applies only to CNPJs found in the source.

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

Use compliance data only with a legitimate business purpose and in line with LGPD/GDPR. Personal data in PEP and group-member fields requires a proper legal basis.

# Actor input Schema

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

List of CNPJs to screen (any format). Each one expands to its full economic group. Max 1,000 per run. Invalid check digits are skipped.

## Actor input object example

```json
{
  "cnpjs": [
    "02916265000160",
    "33.000.167/0001-01"
  ]
}
```

# Actor output Schema

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

Dataset with one record per CNPJ. Each record contains a group summary plus per-member sanctions and PEP exposure for every company and person in the economic group (sources include OFAC, EU, UN, UK, INTERPOL and Brazilian regulators). Low-confidence name matches are filtered out.

# 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": [
        "02916265000160",
        "33.000.167/0001-01"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("brasildados/global-sanctions").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": [
        "02916265000160",
        "33.000.167/0001-01",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("brasildados/global-sanctions").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": [
    "02916265000160",
    "33.000.167/0001-01"
  ]
}' |
apify call brasildados/global-sanctions --silent --output-dataset

```

## MCP server setup

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

```

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/2Y23qpdvQq0cX9rMU/builds/nZdWzpGm0NWewycip/openapi.json
