# Brasil Dados API - CNPJ Batch Validation

> Brasil Dados API - CNPJ Batch Validation is a paid API for AI agents from brasil-dados-api.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates Brazilian CNPJ company tax ID numbers by verifying their check digits in batch.

## Facts

- Endpoint: GET https://brasil-dados-api.onrender.com/cnpj/batch
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brasil-dados-api-cnpj-batch-validation-6b8d1a80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J7LkNN3Hg9NOhfLEo7bEp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brasil-dados-api-cnpj-batch-validation-6b8d1a80
```

Example prompt: Can you validate these Brazilian CNPJ company tax IDs for me and tell me which ones have valid check digits: 11.222.333/0001-81 and 45.678.901/0002-10?

## When to prefer this

Use this endpoint when you need to quickly verify the mathematical validity of one or more Brazilian CNPJ numbers via check-digit validation before processing them further. It is ideal for pre-screening bulk data or form inputs where you need a cheap, fast structural check without a full registry lookup. Choose the full CNPJ dossier endpoint if you also need legal name, registration status, or partner information.

## Known failure modes

- Missing or malformed CNPJ input returns an error
- Non-numeric or incorrectly formatted CNPJ strings may cause validation errors
- Rate limiting or payment failure returns 402 or 429
- Render cold-start latency may cause occasional timeouts

## How this service works

Validate up to 25 Brazilian CNPJ company tax IDs in a single call. Cheaper per-item than individual requests — built for bulk/KYB workflows.

## Output

Returns a validation result for each CNPJ in the batch indicating whether the check digits are mathematically correct and the number is structurally valid, without performing any live registry lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brasil-dados-api-cnpj-batch-validation-6b8d1a80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brasil-dados-api.onrender.com](https://www.zero.xyz/host/brasil-dados-api.onrender.com/llms.txt)
