
Congress Stock Trades Scraper
scrape.ly/store/querystone/congress-trades-scraperNewsBusiness
3 monthly users

Brazilian companies from the open Receita Federal CNPJ registry: look up CNPJs or search by state, CNAE, municipality, legal nature or partner. Partners (QSA), address, phone, status, Simples/MEI and tax regimes. No login needed.
Pull Brazilian company records from the open Receita Federal CNPJ registry: look up a list of CNPJs, or build lead lists by state, CNAE activity, municipality, legal nature or partner. Every company comes with its legal and trade name, status, opening date, activities, address, phone, share capital, Simples Nacional and MEI flags, tax regimes and the full partner list (QSA). No login, no captcha: 10,000 companies from a search in under a minute, 1,000 CNPJ lookups in about 30 seconds, for $0.75 per 1,000 companies.
| Field | What it does |
|---|---|
states | Two-letter state codes (UF), e.g. ["SP", "RJ"]. |
cnaes | 7-digit CNAE codes, e.g. 6209100. Matches primary and secondary activities. |
cities | Municipality names ("Campinas, SP", "Recife") or IBGE codes (3550308). |
cnpjs | CNPJ numbers to look up directly. When given, the search fields are not used. |
maxItems | Maximum companies to save. 0 = no limit. |
legalNatures | Legal nature codes, e.g. 2062 (Ltda.), 2135 (Empresário Individual). |
primaryCnaeOnly | Match CNAE codes against the primary activity only. |
partners | Partner CPF (full or masked ***456789**), partner CNPJ or 8-digit CNPJ base. |
registrationStatus, companySizes, headOfficeOnly, requirePhone, mei, simplesNacional, openedFrom, openedTo, minCapital, maxCapital | Result filters applied before saving. |
maxScannedCompanies | With filters on, how many search results to check at most (default 200,000). |
Search example: active IT companies in Campinas opened since 2024.
{
"states": ["SP"],
"cnaes": ["6209100"],
"cities": ["Campinas, SP"],
"registrationStatus": ["ATIVA"],
"openedFrom": "2024-01-01",
"maxItems": 100
}
Lookup example:
{
"cnpjs": ["00.000.000/0001-91", "33683111000280"]
}
One row per company. The default table shows the key columns; the Partners view has one row per partner and the Contacts view shows address and phone.
| Field | Description |
|---|---|
cnpj, cnpj_formatado | CNPJ as 14 digits and formatted |
razao_social, nome_fantasia | Legal and trade name |
matriz_filial | MATRIZ (head office) or FILIAL (branch) |
situacao_cadastral, situacao_cadastral_motivo, data_situacao_cadastral | Status, reason and date |
data_abertura | Opening date |
cnae_principal_codigo, cnae_principal_descricao, cnaes_secundarios | Activities |
natureza_juridica_codigo, natureza_juridica, porte, capital_social | Legal form, size class, share capital (BRL) |
logradouro, numero, complemento, bairro, municipio, municipio_codigo_ibge, uf, cep, endereco_completo | Address |
telefone1, telefone2, fax, email | Contacts as registered |
simples_nacional, mei and their dates, regime_tributario | Tax regimes |
qsa, qsa_count, socios | Partners |
source_url | Registry record |
Example row from a test run (lists shortened, partner name replaced with a fictional one):
{
"cnpj": "00000000000191",
"cnpj_formatado": "00.000.000/0001-91",
"razao_social": "BANCO DO BRASIL SA",
"nome_fantasia": "DIRECAO GERAL",
"matriz_filial": "MATRIZ",
"situacao_cadastral": "ATIVA",
"situacao_cadastral_motivo": "SEM MOTIVO",
"data_situacao_cadastral": "2005-11-03",
"data_abertura": "1966-08-01",
"cnae_principal_codigo": "6422100",
"cnae_principal_descricao": "Bancos múltiplos, com carteira comercial",
"cnaes_secundarios": ["6499999 — Outras atividades de serviços financeiros não especificadas anteriormente"],
"natureza_juridica_codigo": "2038",
"natureza_juridica": "Sociedade de Economia Mista",
"porte": "DEMAIS",
"capital_social": 120000000000,
"logradouro": "SAUN QUADRA 5 BLOCO B TORRE I, II, III",
"numero": "SN",
"bairro": "ASA NORTE",
"municipio": "BRASILIA",
"municipio_codigo_ibge": "5300108",
"uf": "DF",
"cep": "70040912",
"telefone1": "6134939002",
"fax": "6134931040",
"email": null,
"simples_nacional": false,
"mei": false,
"regime_tributario": [{"ano": 2024, "cnpj_da_scp": null, "forma_de_tributacao": "LUCRO REAL", "quantidade_de_escrituracoes": 1}],
"orgao_publico": false,
"qsa": ["MARIA EXEMPLO DA SILVA — Diretor — id: ***123456** — entry: 2023-05-17"],
"qsa_count": 41,
"socios": [{"nome": "MARIA EXEMPLO DA SILVA", "qualificacao": "Diretor", "documento": "***123456**", "tipo": "PESSOA FISICA", "data_entrada": "2023-05-17", "faixa_etaria": "Entre 41 a 50 anos"}],
"source_url": "https://minhareceita.org/00000000000191"
}
$0.75 per 1,000 companies saved ($0.00075 per company), plus a small platform usage fee for compute and proxy traffic. Example: 1,000 companies cost $0.75 in result fees plus less than one cent of platform usage (we measured about $0.001 for a 1,000-company search and $0.003 for 1,000 CNPJ lookups). Companies dropped by your filters, CNPJs that do not exist and invalid numbers are free.
Is it legal? The CNPJ registry is public open data that the Receita Federal publishes under Brazil's access-to-information law. Partner CPFs are masked by the registry itself. You are responsible for how you use personal data (LGPD).
Do I need a login or a proxy? No. The default datacenter proxy works.
How many companies can I get? As many as match your search. São Paulo alone has millions of CNPJs, so combine a state with a CNAE code or municipality for focused lists. Set maxItems to 0 for no limit.
Why is the email empty? The open registry data this actor reads does not publish email addresses, so email stays empty. Phones are included when registered.
How fresh is the data? The registry mirror is reloaded from the official Receita Federal files roughly once a month, so a record can be a few weeks old.
Can I schedule it or use the API? Yes. Save your input as a task, schedule it (for example monthly), and read the results with the API or an integration.
Every field below can be set in the run form, passed through the API, or saved as a task. Unset fields fall back to the defaults shown.
statesarrayOptionalStates (UF)
Search companies registered in these states. Combine with a CNAE code, municipality, legal nature or partner to narrow the list. Several states are searched together.
cnaesarrayOptionalCNAE activity codes
7-digit CNAE codes, e.g. 6209100 (IT support) or 5611201 (restaurants). Dots, dashes and slashes are fine (6209-1/00). Matches the primary and the secondary activities unless 'Primary CNAE only' is on.
citiesarrayOptionalMunicipalities
Municipality names or IBGE codes, e.g. 'Campinas, SP', 'Rio de Janeiro' or 3550308. Add the state to a name that exists in several states.
cnpjsarrayOptionalCNPJ numbers (lookup)
Look up these companies directly, one CNPJ per line (00.000.000/0001-91 or 00000000000191). When CNPJs are given, the search fields above are not used.
maxItemsintegerOptionaldefault 20Maximum results
Maximum number of companies to save (and pay for). 0 means no limit.
Narrow the registry search by legal form, primary activity or partner.
legalNaturesarrayOptionalLegal nature codes
4-digit natureza jurídica codes, e.g. 2062 (Sociedade Empresária Limitada), 2135 (Empresário Individual), 2305 (EIRELI), 2240 (Sociedade Simples Limitada), 2054 (S.A. Fechada), 3999 (Associação Privada).
primaryCnaeOnlybooleanOptionaldefault falsePrimary CNAE only
Match the CNAE codes against the primary activity only, not the secondary ones.
partnersarrayOptionalPartner CPF or CNPJ
Find the companies where this person or company is a partner (QSA). A CPF can be given in full (123.456.789-01) or as the registry stores it (***456789**); a company partner by its CNPJ or its 8-digit CNPJ base. Add a state: partner searches over the whole country can time out.
Applied to every company found before it is saved. You only pay for saved companies.
registrationStatusarrayOptionalRegistration status
Keep only companies with one of these statuses. Empty keeps all.
companySizesarrayOptionalCompany size (porte)
Keep only these size classes. Empty keeps all.
headOfficeOnlybooleanOptionaldefault falseHead offices only
Skip branches (FILIAL) and keep head offices (MATRIZ).
requirePhonebooleanOptionaldefault falseOnly companies with a phone
Skip companies without a registered phone number.
meienumOptionaldefault "any"MEI
Individual micro-entrepreneurs (MEI).
simplesNacionalenumOptionaldefault "any"Simples Nacional
Companies in the Simples Nacional tax regime.
openedFromstringOptionalOpened from
Keep companies that started on or after this date (YYYY-MM-DD).
openedTostringOptionalOpened to
Keep companies that started on or before this date (YYYY-MM-DD).
minCapitalintegerOptionalMinimum share capital (BRL)
Keep companies with at least this declared share capital.
maxCapitalintegerOptionalMaximum share capital (BRL)
Keep companies with at most this declared share capital.
maxScannedCompaniesintegerOptionalMaximum companies to check
With filters on, stop after checking this many companies from the search, even if fewer matched. Empty or 0 means 200,000 when a filter is on.
proxyConfigurationobjectOptionaldefault {"useScrapelyProxy":true,"scrapelyProxyGroups":["DATACENTER…Proxy configuration
Proxy for the requests. Datacenter works for this public registry.
Every run writes its results to a dataset. Preview it in the dashboard, then export it or read it through the API.
| Field | Type | Description |
|---|---|---|
| cnpj | any | CNPJ (14 digits) |
| cnpj_formatado | any | CNPJ formatted 00.000.000/0000-00 |
| razao_social | any | Legal name (razão social) |
| nome_fantasia | any | Trade name (nome fantasia) |
| matriz_filial | any | MATRIZ (head office) or FILIAL (branch) |
| situacao_cadastral | any | Registration status: ATIVA, BAIXADA, INAPTA, SUSPENSA or NULA |
| situacao_cadastral_motivo | any | Reason for the status |
| data_situacao_cadastral | any | Date of the status (YYYY-MM-DD) |
| data_abertura | any | Opening date (YYYY-MM-DD) |
| cnae_principal_codigo | any | Primary CNAE code |
| cnae_principal_descricao | any | Primary CNAE description |
| cnaes_secundarios | any | Secondary CNAEs as 'code — description' |
| natureza_juridica_codigo | any | Legal nature code |
| natureza_juridica | any | Legal nature |
| porte | any | Size class: MICRO EMPRESA, EMPRESA DE PEQUENO PORTE or DEMAIS |
| capital_social | any | Declared share capital (BRL) |
| tipo_logradouro | any | Street type (RUA, AVENIDA, ...) |
| logradouro | any | Street |
| numero | any | Street number |
| complemento | any | Address complement |
| bairro | any | District (bairro) |
| municipio | any | Municipality |
| municipio_codigo_ibge | any | IBGE municipality code |
| uf | any | State (UF) |
| cep | any | Postal code (CEP) |
| endereco_completo | any | Full address in one line |
| pais | any | Country, for companies registered abroad |
| cidade_exterior | any | City abroad |
| telefone1 | any | Main phone (area code + number) |
| telefone2 | any | Second phone |
| fax | any | Fax |
| any | Email, when the registry publishes one | |
| simples_nacional | any | In the Simples Nacional tax regime |
| data_opcao_simples | any | Simples Nacional opt-in date |
| data_exclusao_simples | any | Simples Nacional exit date |
| mei | any | Individual micro-entrepreneur (MEI) |
| data_opcao_mei | any | MEI opt-in date |
| data_exclusao_mei | any | MEI exit date |
| regime_tributario | any | Tax regime per year: ano, forma_de_tributacao, quantidade_de_escrituracoes, cnpj_da_scp |
| situacao_especial | any | Special situation |
| data_situacao_especial | any | Special situation date |
| ente_federativo | any | Responsible federal entity (public bodies) |
| orgao_publico | any | Public body (legal nature 1xxx) |
| qsa | any | Partners as 'NAME — role — id: masked CPF — entry: date' |
| qsa_count | any | Number of partners |
| socios | any | Partners: nome, qualificacao, documento (masked CPF, or the CNPJ base for a company partner), tipo, data_entrada, faixa_etaria, pais, representante_legal |
| source_url | any | Registry record URL |
You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices.
| Event | Charged when | Price |
|---|---|---|
| Company | One company saved to the dataset (CNPJ record with partners, address and tax data). Companies removed by your filters, unknown and invalid CNPJs are free. | $0.00075 |
Run this actor from your own code. Swap in your API token and the examples work as-is.
import { ScrapelyClient } from 'scrapely-client'
const client = new ScrapelyClient({ token: process.env.SCRAPELY_TOKEN })
// Start the actor and wait for the run to finish.
const run = await client.actor('cornerledger/brazil-cnpj-scraper').call({
"states": [
"SP"
],
"cnaes": [
"6209100"
],
"maxItems": 20,
"proxyConfiguration": {
"useScrapelyProxy": true,
"scrapelyProxyGroups": [
"DATACENTER"
]
}
})
// Read the dataset the run produced.
const { items } = await client.dataset(run.defaultDatasetId).listItems()
console.log(items)Tokens live in your account settings. Keep them server-side: a token carries the full permissions of your account.
Connect the Scrape.ly MCP server once and your agent can run this actor as a tool. Pick your tool:
Fetch scrape.ly/agents.md and run cornerledger/brazil-cnpj-scraperPaste into Claude Code, Codex, Cursor or any AI agent. It signs you in once in the browser.
{
"mcpServers": {
"scrapely": {
"url": "https://api.scrape.ly/mcp?tools=actors,runs,storage,docs&actors=cornerledger/brazil-cnpj-scraper"
}
}
}No key in the file: your client opens the browser to sign you in the first time it connects.
Inputs the developer prepared for common jobs. Open one to see its input, then copy it to your account to run it as-is or adjust it.
Full registry records for a list of CNPJ numbers in any format: status, address, phone, partners, tax regimes.
Restaurants (CNAE 5611201) in MG that are active, small (EPP) and have a registered phone number.
Companies with legal nature 2135 (Empresário Individual) registered in the city of Rio de Janeiro.
Companies whose primary activity is CNAE 4711302 (supermarkets) in RJ and BA, MEI excluded.
New companies (head offices) in Paraná opened from January 2025, with partners and tax data.
Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes. The advantage lasts forever.