# Brasil Data x402 - CNPJ Registry Lookup

> Brasil Data x402 - CNPJ Registry Lookup is a paid API for AI agents from brasil-data-x402.wagner-proc.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Looks up a Brazilian company's official registry data from Receita Federal by CNPJ, returning normalized legal name, trade name, status, CNAE activities, address, Simples/MEI status, and partners (QSA).

## Facts

- Endpoint: GET https://brasil-data-x402.wagner-proc.workers.dev/v1/cnpj/:cnpj?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brasil-data-x402-cnpj-registry-lookup-290caaf8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PVYUJfkq5Cguo-K7O7xUO

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-data-x402-cnpj-registry-lookup-290caaf8
```

Example prompt: Can you look up the official company details for CNPJ 11.222.333/0001-81? I need the legal name, trade name, status, address, and whether it's registered as Simples Nacional or MEI.

## When to prefer this

Choose this endpoint when you need authoritative, normalized Brazilian company data from the official Receita Federal registry, especially when you need structured output including CNAE codes, Simples/MEI status, and QSA partner lists in a single call. Prefer this over scraping or unofficial sources for compliance, due diligence, or data enrichment workflows. The x402 micropayment model makes it cost-effective for per-lookup use cases.

## Known failure modes

- Invalid or malformed CNPJ returns a validation error
- CNPJ not found in Receita Federal database returns a 404 or not-found response
- Receita Federal upstream data unavailable may result in a timeout or service error
- Alphanumeric CNPJs (newer format) may not be supported by older data sources — this endpoint claims to support them

## How this service works

Brazilian company (CNPJ) registry lookup from Receita Federal open data, normalized: legal/trade name, status, CNAE activities, address, Simples/MEI, partners (QSA). Supports alphanumeric CNPJ.

## Output

Returns a normalized JSON object containing the company's legal name, trade name, registration status (active/inactive/etc.), CNAE primary and secondary activity codes, full registered address, Simples Nacional and MEI enrollment status, and the list of partners/administrators (QSA) from the Receita Federal open data.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "cnpj"
     ],
     "properties": {
      "cnpj": {
       "type": "string",
       "description": "CNPJ (14 chars, punctuation optional)"
      }
     }
    },
    "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-data-x402-cnpj-registry-lookup-290caaf8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from brasil-data-x402.wagner-proc.workers.dev](https://www.zero.xyz/host/brasil-data-x402.wagner-proc.workers.dev/llms.txt)
