# Brazil 360° Company KYB, CNPJ, Domain & Lawsuit Risk API (`brdatahub/brazil-company-kyb-lawsuit-risk`) Actor

One-shot Brazilian B2B due diligence & fraud-prevention dossier: crosses Registro.br domain age, Receita Federal CNPJ & QSA partners, and CNJ DJEN court lawsuit notices into an automated 0–100 KYB Trust Score.

- **URL**: https://apify.com/brdatahub/brazil-company-kyb-lawsuit-risk.md
- **Developed by:** [BR Data Hub](https://apify.com/brdatahub) (community)
- **Categories:** Business, Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 360-degree brazilian kyb & litigation dossier generateds

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?

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 360° Company KYB, CNPJ, Domain & Lawsuit Risk API

> One-shot Brazilian B2B due diligence & fraud-prevention dossier: crosses Registro.br domain age, Receita Federal CNPJ & QSA partners, and CNJ DJEN court lawsuit notices into an automated 0–100 KYB Trust Score.

**Categories:** `BUSINESS`, `LEAD_GENERATION`, `AI` | **Billing Model:** Pay-Per-Event (`$0.01` start + `$0.025` per `kyb-company-dossier-generated`) | **Permissions:** `LIMITED_PERMISSIONS` (Safe for AI Agents & MCP)

***

### Why Use `brazil-company-kyb-lawsuit-risk`?

Accessing structured Brazilian institutional, financial, regulatory, and B2B datasets normally requires navigating legacy Portuguese portals, handling regional encodings (`ISO-8859-1` / Brazilian decimal formats `1.234,56`), paginating custom endpoints, and normalizing inconsistent schemas.

**`brdatahub/brazil-company-kyb-lawsuit-risk`** turns official public records into a **clean, fast, schema-validated JSON/CSV API** ready for:

- **AI Agents & MCP Workflows:** Plug directly into Claude Desktop, Cursor, LangChain, CrewAI, n8n, Make, or Zapier via the official Apify MCP Server.
- **Quantitative, Financial & Market Intelligence:** Automate daily ingestion into Snowflake, BigQuery, PostgreSQL, Google Sheets, Power BI, or internal ERPs.
- **B2B Lead Generation & Compliance Automation:** Enrich CRMs, underwrite risk, monitor regulatory changes, and size regional markets programmatically.

***

### Key Capabilities

- **Zero-Configuration Start:** Includes sensible pre-filled defaults so automated runs and health checks succeed out of the box in seconds.
- **Normalized Numeric & Date Fields:** Brazilian currency, percentage, and date formats are parsed into clean standard floats and ISO strings alongside raw source fields.
- **Low Compute Footprint:** Optimized async Python (`httpx`) container running on `256 MB` RAM — minimizing Apify compute unit consumption to fractions of a cent per run.
- **Spreadsheet & API Ready:** Export results with one click as **JSON**, **CSV**, **Excel (`.xlsx`)**, **XML**, or **Parquet**.

***

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `targets` | `array` | `["nubank.com.br", "weg.net.br"]` | List of Brazilian domains (e.g. 'nubank.com.br', 'weg.net.br') or 14-digit CNPJs. |

#### Example Input (`JSON`)

```json
{
  "targets": [
    "nubank.com.br",
    "weg.net.br"
  ]
}
```

***

### Output Schema & Real Sample Record

Each extracted item is pushed to the default Apify Dataset and validated against the Actor's structured `dataset_schema.json` and `output_schema.json`.

```json
{
  "target": "nubank.com.br",
  "company_name": "NU PAGAMENTOS S.A. - INSTITUICAO DE PAGAMENTO",
  "cnpj": "18236120000158",
  "company_status": "ATIVA",
  "capital_social_brl": 10872130000,
  "city_uf": "SAO PAULO-SP",
  "managing_partners": [
    "ARTHUR FERREIRA VALADAO",
    "BRUNO GUSMAO ROCHA",
    "CLAUDIO DE NARDI QUEIROZ",
    "EDUARDO ALCEBIADES LOPES",
    "FABRICIO SOUZA DE LIMA",
    "GABRIELA TUBA",
    "JANINE ANGERT HEINEMAN",
    "JEREMY TAYLOR SELESNER"
  ],
  "domain_created": "2013-11-20",
  "domain_age_years": 13,
  "court_notices_found": 0,
  "recent_court_cases": [],
  "kyb_trust_score": 100,
  "risk_tier": "LOW_RISK (Approved)",
  "sources": "Registro.br RDAP + Receita Federal CNPJ + CNJ DJEN"
}
```

***

### Quick Integration Examples

#### 1. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("brdatahub/brazil-company-kyb-lawsuit-risk").call(run_input={
  "targets": [
    "nubank.com.br",
    "weg.net.br"
  ]
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### 2. Node.js / TypeScript (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('brdatahub/brazil-company-kyb-lawsuit-risk').call({
  "targets": [
    "nubank.com.br",
    "weg.net.br"
  ]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### 3. cURL (Synchronous REST API — Instant JSON)

```bash
curl -X POST "https://api.apify.com/v2/acts/brdatahub~brazil-company-kyb-lawsuit-risk/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"targets": ["nubank.com.br", "weg.net.br"]}'
```

#### 4. AI Agents & Apify MCP Server

Add `brdatahub/brazil-company-kyb-lawsuit-risk` as a tool in `https://mcp.apify.com` so LLM agents can query live Brazilian data on demand with typed input/output schemas and `LIMITED_PERMISSIONS` sandboxing.

***

### Pricing & Free-Plan Preview Policy

This Actor uses transparent **Pay-Per-Event (PPE)** pricing:

- **`apify-actor-start`:** `$0.01` per run initialization
- **`kyb-company-dossier-generated`:** `$0.025` per structured record written to the dataset

*Note for Apify Free-tier accounts:* Users on the Apify Free plan automatically receive a clean preview sample per run and exit gracefully with a status message so you can test schema compatibility before upgrading to a paid Apify plan for full bulk extractions.

***

### Changelog & Maintenance

- **v1.0 (2026-11):** Initial production release with full `input_schema.json`, `dataset_schema.json` typed fields, `output_schema.json` v1 export links, and automated cloud health monitoring.
- **Support:** Open an issue in the **Issues** tab on Apify Store if you need custom filters, additional fields, or enterprise SLAs.

# Actor input Schema

## `targets` (type: `array`):

List of Brazilian domains (e.g. 'nubank.com.br', 'weg.net.br') or 14-digit CNPJs.

## Actor input object example

```json
{
  "targets": [
    "nubank.com.br",
    "weg.net.br"
  ]
}
```

# Actor output Schema

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

Structured output records extracted by Brazil 360° Company KYB, CNPJ, Domain & Lawsuit Risk API.

## `csvExport` (type: `string`):

Spreadsheet-ready CSV export of all extracted dataset records.

# 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("brdatahub/brazil-company-kyb-lawsuit-risk").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("brdatahub/brazil-company-kyb-lawsuit-risk").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 brdatahub/brazil-company-kyb-lawsuit-risk --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brdatahub/brazil-company-kyb-lawsuit-risk"
        }
    }
}
```

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/KdwkSk6XPXUrN0Bxj/builds/Gl9xImV4484UTZYIK/openapi.json
