The Mine Works
Brazil CNPJ Scraper
← All Scrapers
Apify Actor · Government

Brazil CNPJ Scraper

Receita Federal company data by CNPJ, activity, state and city

View on Apify Store →
From $1.44 / 1,000 companies
Status
State ● Live
Pricing PPE
Category Government
Overview

What it does

Paste CNPJs in any format, or search the Receita Federal open CNPJ data by CNAE code or Portuguese activity words, state, city name and legal nature. Each row holds legal and trade name, registration status, opening date, main and secondary activities, company size, share capital, Simples Nacional and MEI flags, full address, phones, the registered email and the partner list with masked CPFs. Filters for status, size, MEI, head office, opening dates, capital, phone and email run before you pay. The data follows the monthly government release, so a company opened or closed in the last few weeks may not show the change yet.

Features

Built in

  • ✓ Search by CNAE code or plain Portuguese activity words
  • ✓ City names like Campinas, SP, no IBGE codes needed
  • ✓ Partners (QSA) with qualification and entry date
  • ✓ Registered email included at the same price
  • ✓ Drop MEIs and branches with excludeMei, headOfficeOnly
FAQ

Common questions

How is it priced? +

You pay $0.0018 per company row on the Apify Free plan and $0.00144 on Gold and above. A $0.001 start fee is charged once per run, as soon as the registry returns its first company record, which happens before your filters are applied. A run whose lookups and search return no record at all pays nothing.

Can I find newly opened companies? +

Yes. Set openedFrom to the first day of the month, add CNAE codes or activity words and your cities, and run it monthly on a schedule. Each run then returns the companies opened since that date. In the README test, this found 272 new food businesses in three cities in 73 seconds.

Why did a search return fewer companies than maxItems? +

Either your filters left fewer matches, or the search hit its scan limit of 50 registry records read per company you asked for, with a floor of 2,000. The summary row shows how many records were scanned and how many each filter removed, in filtered_out.

What do the masked CPFs mean? +

The Receita Federal publishes partner CPFs with the first three and last two digits hidden, and the actor returns them exactly as published, never unmasked. Each partner also has a type (person, company or foreign), qualification, entry date and age range, and partner_names puts every name in one cell.

What is not charged? +

Invalid CNPJs, CNPJs the registry does not have, search records that fail your status, size, MEI, head office, date, capital, phone or email filters, a company found twice in one run, and the summary, info and error rows. Filtered records are dropped before delivery, so they never reach your bill.

Get Started

Try it on Apify.

Pay only for results delivered. No credit card required to sign up.

Apify Store

Find a ready-made scraper for your job

Apify has over 80,000 scrapers and automations, ours included. Start free with $5 of platform credit every month.