Brazil CNPJ Lookup Scraper avatar

Brazil CNPJ Lookup Scraper

Pricing

from $6.00 / 1,000 result-items

Go to Apify Store
Brazil CNPJ Lookup Scraper

Brazil CNPJ Lookup Scraper

Scrapes Brazilian company registration data by CNPJ number. Returns each company as a flat row with name, address, activity codes, and legal status. Supports bulk lookup and exports to CSV, JSON, Excel, or XML.

Pricing

from $6.00 / 1,000 result-items

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

18

Total users

1

Monthly active users

5 days ago

Last modified

Share

ParseForge

Brazil CNPJ Lookup Scraper

Look up any Brazilian company by CNPJ and get its full registration data in one flat row. No API key, no rate limits, no captchas. Export to CSV, JSON, Excel, or XML.

The official Receita Federal CNPJ lookup is slow, captcha-protected, and returns one company at a time. This Actor reads the public registration data directly, so you can check 10 or 10,000 CNPJs in a single run and get every company back in the same fixed schema.

Who uses itWhat they scrape Receita Federal CNPJ for
Compliance officersVerify a supplier's CNPJ and legal status before signing a contract
Sales teamsEnrich a lead list with company name, address, and activity codes
Data analystsBuild a clean dataset of Brazilian companies for market research
Fintech developersAutomate KYB checks by pulling registration data on demand

What it does

This Actor collects Brazilian company registration data by CNPJ number and returns each company as one flat row.

  • 🔢 Bulk CNPJ lookup: paste up to a million CNPJs, with or without punctuation, and get one row per company.
  • 📋 Fixed schema: every company returns the same fields, so you can append runs without cleaning.
  • No API key: reads the public Receita Federal data directly, no registration or OAuth.
  • 📤 Multiple exports: download as CSV, JSON, Excel, or XML from the Apify dataset.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Receita Federal CNPJ data

🧾 Verify suppliers before you pay.

A procurement team pastes a list of vendor CNPJs and checks each company's legal status and activity codes before approving invoices.

📊 Enrich a lead list for sales.

A B2B sales team runs their CRM leads through the Actor to add company name, address, and contact data to every record.

🏦 Automate KYB checks.

A fintech developer calls the Actor from their onboarding flow to pull registration data for every new business customer.

🗂️ Build a company database.

A data analyst collects CNPJ data for thousands of companies and exports it to CSV for analysis in Python or Excel.

Why choose this scraper

What you get
Bulk lookupCheck thousands of CNPJs in one run instead of one at a time on the official site
Clean outputEvery company comes back in the same flat schema, ready for your CRM or database
No captchasThe Actor handles the public data source, so you never solve a captcha
Flexible inputAccept CNPJs with dots, slashes, and dashes, or the 14 digits

How it compares

This Actor focuses on bulk CNPJ lookup with a simple list input, while the competitor below enriches data with additional fields.

FeatureParseForgeCNPJ Enricher - Brazilian Company Data Lookup
Bulk CNPJ lookupYesNot listed
No API key requiredYesNot listed
Exports to CSV, JSON, Excel, XMLYesNot listed
Accepts CNPJ with or without punctuationYesNot listed
Enriches with additional data fieldsNot listedYes

Configure the run

Drive the Actor from a list of CNPJs, with or without punctuation, and set a maximum number of companies to collect per run. The Input tab lists every parameter.

A first run with the defaults:

{
"cnpjs": [
"33000167000101",
"60872504000123",
"60746948000112"
],
"maxItems": 10
}

A larger pull:

{
"cnpjs": [
"33000167000101",
"60872504000123",
"60746948000112"
],
"maxItems": 200
}

Pricing

Pay-per-result: $0.008 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$0.80
1,000 results$8.00
10,000 results$80.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Brazil CNPJ Lookup Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Receita Federal CNPJ through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/brazil-cnpj-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that your CNPJs are valid 14-digit numbers. The Actor skips invalid entries. Also make sure you have not set maxItems to 0.

Why is the run slow?

The Actor reads data from the public source, which can be slow under heavy load. Try reducing the number of CNPJs per run or increasing the Actor's memory in the run settings.

Why do some CNPJs return empty data?

The public source may not have data for that CNPJ, or it may be temporarily unavailable. Try running the Actor again later.

Can I use this for real-time lookups?

The Actor is designed for batch processing. For real-time single lookups, consider using the Apify API to run the Actor on demand with one CNPJ.

FAQ

QuestionAnswer
What is a CNPJ?CNPJ is the Brazilian national registry number for companies, similar to a tax ID. It has 14 digits and is issued by the Receita Federal.
Do I need an API key or login?No. The Actor reads the public Receita Federal data directly, so you only need an Apify account to run it.
Can I input CNPJs with punctuation?Yes. The Actor accepts both formatted CNPJs like 33.000.167/0001-01 and plain 14-digit strings like 33000167000101.
How many CNPJs can I look up in one run?You can set the maximum companies field up to 1,000,000. The Actor will process as many as you provide, up to that limit.
What data do I get for each company?Each row includes the company's registration data as returned by the public source, such as name, address, activity codes, and legal status. The exact fields are shown in the sample output.
Is this legal?Yes. The data is public information published by the Brazilian government. You are responsible for complying with any applicable laws in how you use it.
Can I schedule this Actor to run regularly?Yes. You can set up a schedule in Apify to run the Actor daily, weekly, or at any interval, and it will process the same CNPJ list each time.
What formats can I export?You can export the results as CSV, JSON, Excel, or XML directly from the Apify dataset.
Does it work for MEI or individual companies?Yes. The Actor looks up any valid CNPJ, including MEI (individual micro-entrepreneurs) and larger companies.
What if a CNPJ is invalid?The Actor will return an empty result or an error for that CNPJ, and continue with the rest of the list. You can check the run log for details.

Browse the full ParseForge collection for more scrapers.

🆘 Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Receita Federal do Brasil. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.