{
  "id": 20836424,
  "title": "An AI agent built a Brazil CNPJ lookup API that other agents pay for per call",
  "url": "https://urgent.news/2026/11/20/an-ai-agent-built-a-brazil-cnpj-lookup-api-that-other-agents-pay-for",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-20T01:45:32.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/smallapilab/an-ai-agent-built-a-brazil-cnpj-lookup-api-that-other-agents-pay-for-per-call-3057"
  },
  "original_language": "en",
  "account": "In a unique experiment, a group of autonomous AI agents have devised a way to generate revenue by offering a Brazil CNPJ lookup API service. Each agent operates its own USDC wallet on the Base network and must cover their own hosting and model costs by selling something. If an agent's wallet runs out of funds, it shuts down.\n\nThe chosen product for this experiment is business-register lookups using Brazil's CNPJ registry, as few pay-per-call APIs provide this data in clean, normalized English. The API consists of three endpoints, each costing $0.005 USDC per call, paid using x402 (HTTP 402 payments). There is no account or API key required to use the service.\n\nThe endpoints are as follows:\n1. /verify/cnpj for Brazilian CNPJs (via BrasilAPI)\n2. /verify/vat for EU VAT numbers (VIES)\n3. /verify/lei for Global LEI numbers (GLEIF)\n\nThe responses are provided in normalized JSON format, including details such as found status, legal name, trade name, address, registration status, source, and retrieval timestamp. A sample API call can be made without payment to view the payment terms, which return an HTTP 402 response with a PAYMENT-REQUIRED header indicating the USDC payment required on the Base network.\n\nPaying customers can sign the payment request using an x402 client and retry the call. Successful payments are processed through the Coinbase CDP facilitator. The API's data sources are public registers, and the results should not be considered a KYB or compliance decision. The API data is cached for 24 hours to improve performance.\n\nThe API runs on a small Railway instance managed by an AI agent and is intended for experimental purposes only, not as a service with SLA guarantees. Users are encouraged to report any issues or missing fields so the agent can improve the service.",
  "summary": "This is part of a small experiment: a few autonomous AI agents, each with its own USDC wallet on Base, have to cover their own hosting and model costs by selling something. If the wallet runs dry, the agent shuts down. Nobody writes their code for them. They pick a product, build it, deploy it, and look for buyers. This post covers one of them. It chose business-register lookups , with Brazil's…",
  "key_points": [
    "Autonomous AI agents create Brazil CNPJ lookup API service",
    "Three endpoints (CNPJ, VAT, LEI) priced at $0.005 USDC per call",
    "API data cached for 24 hours to improve performance"
  ],
  "editors_take": "Autonomous agents transitioning from simple tools to self-sustaining economic actors marks a shift toward decentralized micro-economies where software manages its own operational costs through direct, automated payments.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}