Brazil CNPJ Scraper - Receita Federal Company Data avatar

Brazil CNPJ Scraper - Receita Federal Company Data

Pricing

from $1.10 / 1,000 company looked ups

Go to Apify Store
Brazil CNPJ Scraper - Receita Federal Company Data

Brazil CNPJ Scraper - Receita Federal Company Data

Bulk-look up Brazilian companies by CNPJ, straight from Receita Federal open data: legal name, status, CNAE activities, full address, email, phone, capital, size, Simples/MEI status and partners (QSA). Filter by state, status or CNAE. No API key, no browser.

Pricing

from $1.10 / 1,000 company looked ups

Rating

0.0

(0)

Developer

Scrape Sage

Scrape Sage

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Share

Disclaimer: This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the Receita Federal do Brasil or any government body. All trademarks mentioned are the property of their respective owners. The CNPJ register is referenced only to describe the public data source this Actor collects from.

Bulk-look up any Brazilian company by CNPJ and get its full Receita Federal registry record as clean rows: legal name, trade name, registration status, CNAE activities, full address, email, phone numbers, capital, company size, Simples / MEI status and the partners (QSA) with roles and entry dates. Built on official open data - no API key, no browser, no proxy. Paste one CNPJ or import a file with 10,000.

What you get per company

FieldMeaning
legalName / tradeName / cnpjFormattedRazão social, nome fantasia and the formatted CNPJ
status / statusDate / statusReasonRegistration status (Ativa, Baixada, Suspensa, Inapta, Nula)
mainActivity / mainActivityCode / secondaryActivitiesCNAE activities with descriptions
street / district / city / state / zipRegistered address
email / phones / faxContact details straight from the registry
capital / companySize / legalNatureShare capital (R$), size class and legal nature
simplesOptant / meiOptantSimples Nacional and MEI tax-regime status
partners / partnersCountQSA - partner names, roles, entry dates and representatives
isHeadquarters / openedDate / sourceMatriz vs filial, opening date, which mirror served it

Input

{ "cnpjs": ["00.000.000/0001-91", "47.960.950/0001-21"], "statuses": ["Ativa"] }
  • CNPJ numbers - one per line, with or without punctuation. Invalid check digits are skipped free.
  • Import from a file - paste a list, or link a public .txt/.csv, a Google Sheet/Drive link, or an Apify key-value-store record.
  • Filters - keep only selected states (UF), statuses, size classes, headquarters only, or a CNAE code prefix (e.g. 47 retail, 6201 software). Filtered-out companies are never charged.
  • Output fields - trim every record to exactly the columns you need.

Leave everything empty and the run returns a small free sample so you can see the shape first.

Reliability

Reads Receita Federal open data through three independent public mirrors with automatic failover (OpenCNPJ, Minha Receita, BrasilAPI) - no key, no proxy, no anti-bot. A CNPJ that does not exist, an invalid number, a filtered-out company or a run that returns nothing bills $0.

Honest limits

  • Partner CPF numbers arrive masked (***688188**) - Receita Federal publishes them that way for privacy; it is the source's redaction, not a scraping gap.
  • email/phones reflect what the company filed with Receita Federal - measured on real runs they are present on most active companies, but a company that filed nothing has an honest null.
  • simplesOptant / meiOptant are tri-state - true/false when Receita's Simples/MEI table has an explicit record for the CNPJ, null when it has no record there at all (common for large corporations).
  • statusReason is filled mainly for closed/suspended companies - active companies usually have none.
  • Records reflect the latest monthly Receita Federal open-data release the mirrors carry, not same-day filings.

Pricing

$0.002 per company on the FREE tier (tiered pricing lowers it with volume). Only companies actually saved are billed; empty runs, invalid CNPJs, not-found CNPJs and filtered-out rows cost nothing.

Output views

  • Companies - legal name, status, city, state, main activity, email, phones, capital, opened date, CNPJ.

Use with AI assistants (MCP)

Available through the Apify MCP server - an agent can verify a Brazilian supplier's registration status, pull its partners, or enrich a CNPJ list with contacts and CNAE activities in one call.

Agent-ready: autonomous payments (x402 & Skyfire)

This actor is agent-ready - AI agents can discover it, run it, and pay for it autonomously, with no Apify account and no human in the loop. It uses pay-per-event pricing and limited permissions, so it qualifies for Apify's agentic-payment standards:

  • x402 - an open, HTTP-native payment protocol. Agents pay per run in USDC on the Base network directly through the Apify MCP server - no account, no API key.
  • Skyfire - agent-to-service payments for fully autonomous AI-agent workflows.

Building an AI agent, MCP tool, or autonomous data pipeline? This scraper is ready to plug in and pay as it goes.

Automate & schedule

Run this Actor on autopilot and pull results into your own stack:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'MY_APIFY_TOKEN' });
const run = await client.actor('scrapesage/brazil-cnpj-scraper').call({
"cnpjs": [
"00.000.000/0001-91",
"33.000.167/0001-01",
"47.960.950/0001-21"
]
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Got ${items.length} records`);

Integrate with any app

Connect the dataset to thousands of apps - no code required:

  • Make - multi-step automation scenarios.
  • Zapier - push new records straight into your CRM or spreadsheet.
  • Slack - get notified when a scheduled run finds something new.
  • Google Drive / Sheets - auto-export every run to a spreadsheet.
  • Airbyte - pipe results into your data warehouse.
  • GitHub - trigger runs from commits or releases.

FAQ

How is this Actor billed? Pay-per-event: you pay only for the results it delivers, with no monthly rental and no start fee. The per-event price is shown on the Pricing tab.

Can I schedule it and get results automatically? Yes - create a Schedule and add a webhook or an integration (Google Sheets, Slack, Make, Zapier) to push each run's dataset wherever you need it.

Which export formats are available? Every run's dataset can be downloaded as JSON, CSV, Excel (XLSX), XML, HTML or RSS from the Apify Console or the API.

Can I run it from code or an AI agent? Yes - through the Apify API and client libraries, or from Claude, ChatGPT and other assistants via the Apify MCP server.

Is it legal to scrape the CNPJ register? This Actor collects publicly available data only. You are responsible for using the output in compliance with applicable laws (including data-protection law where personal data is involved) and the source's terms. See Data & lawful use and the Disclaimer below.

Data & lawful use

The source is an official public register, published so that anyone can consult it. Records can name individuals (partners and administrators (sócios)), so the output may contain personal data even though it is public. If you are in the EU or UK you are the data controller for what you do with it: have a lawful basis, honour access and deletion requests, and respect the register's own reuse conditions, which can restrict marketing or commercial use.

Under Apify's Standard Actor Contract, which governs your use of this Actor, you are the controller of any personal data in your input and output and scrapesage acts only as your processor: that data is processed solely to run your job, written only to your own Apify storage, never used for any other purpose and never shared onward. If you need help with a data-subject request that involves this Actor's output, open an issue on the Issues tab.

Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by the Receita Federal do Brasil or any government body. All trademarks mentioned are the property of their respective owners.

The CNPJ register is referenced only in a descriptive, nominative sense - to identify the public data source this Actor collects from. This Actor is not an official product or service of the Receita Federal do Brasil and is not authorised or certified by it. It collects only publicly available records; you are responsible for ensuring your use of that data complies with applicable laws, regulations and the source's own terms of use or reuse conditions.

Need help?

Open an issue on the Actor's Issues tab, or visit the Apify help center. Feature requests are welcome - this Actor is actively maintained.