Skip to main content

Brazilian public data for AI agents — company registry (CNPJ), sanctions screening and public contracts, paid per call via the x402 protocol. LangChain and CrewAI tools included.

Project description

brazilayer

Brazilian public data for AI agents — paid per call, no signup, no API keys.

Query the full Brazilian company registry (69M companies), screen against every official sanction list, and pull government contracts — from official sources (Receita Federal, CGU, MTE, PNCP), as clean JSON. Your agent pays per request ($0.005–$0.02) in USDC on Base via the x402 protocol.

Ideal for KYB, AML and counterparty due diligence on Brazilian entities — including crypto exchanges, OTC desks and fintechs onboarding Brazilian companies.

pip install brazilayer

Quick start

from brazilayer import Brazilayer

bl = Brazilayer()          # no wallet: free samples only
bl.amostra_cnpj()          # learn the response format, free

bl = Brazilayer(private_key="0x...")   # wallet with a few USD of USDC on Base
bl.empresa("00.000.000/0001-91")       # registration card         $0.005
bl.integridade("00000000000191")       # sanctions screening       $0.01
bl.contratos_fornecedor("00000000000191")  # public contracts won  $0.01
bl.buscar_empresas(nome="padaria", uf="RJ")  # company search      $0.01

Payment is automatic: on HTTP 402 the client signs a USDC authorization (EIP-3009, gasless for you) and retries. One call ≈ 2 seconds end to end.

⚠️ Use a dedicated wallet with a small budget — a few dollars covers hundreds of calls. Never your main wallet.

LangChain

from brazilayer.langchain import get_tools   # pip install 'brazilayer[langchain]'
tools = get_tools(private_key="0x...")       # 9 StructuredTools, agent-ready

CrewAI

from brazilayer.crewai import get_tools      # pip install 'brazilayer[crewai]'
tools = get_tools(private_key="0x...")

MCP (Claude Desktop / Claude Code / Cursor)

Prefer MCP? Use our MCP server: github.com/brazilayer/mcp (one-click .mcpb install available).

What's inside

Method Data Price
empresa(cnpj) Registration card from Receita Federal $0.005
socios(cnpj) Partners/shareholders $0.005
empresa_completa(cnpj) Full profile + branches $0.01
buscar_empresas(**f) Full-text company search $0.01
buscar_por_socio(nome) Reverse partner lookup $0.02
integridade(cnpj) 5 official sanction lists, one call $0.01
contratos_fornecedor(cnpj) Public contracts won + totals $0.01
licitacoes_abertas(**f) Open tenders, live $0.01
amostra_*() / health() Samples & status free

Docs: api.brazilayer.com/docs · OpenAPI: /openapi.yaml · Terms: /termos · Contact: contato@brazilayer.com

Also listed on the x402 Bazaar and the MCP Registry (io.github.brazilayer/mcp).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brazilayer-0.1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brazilayer-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file brazilayer-0.1.0.tar.gz.

File metadata

  • Download URL: brazilayer-0.1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brazilayer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 34956c54304f3b0ff50e0e08bcabafbd647ee17fce1e2da9067551fcd20cf6db
MD5 03215e5d8eae30e1695150560bc637ed
BLAKE2b-256 5e160c4959e5bdde3af24a345b2af5b3c6ea8fecbdf105a4cc9b46b01484f0cb

See more details on using hashes here.

File details

Details for the file brazilayer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: brazilayer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for brazilayer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8696b8fcaf040e043965bda2ad5e7627b0bc3c34482114873cecf6f75b2bec7
MD5 350d88f6271168c2a4e04a23d0e88ac5
BLAKE2b-256 62afbfde6bfc89f05a1df8a1eac93b0b0378958cf72e4f66d43cdbe8a48209c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page