# Brazil Local Business Leads with CNPJ (Google Maps) (`jeffev/leads-locais-cnpj`) Actor

Search Google Maps for any business type in a Brazilian city and get each place with its CNPJ, legal name, size, opening date, CNAE and tax regime from the official Receita Federal registry, in one step. Leads locais do Brasil com CNPJ, direto do Google Maps.

- **URL**: https://apify.com/jeffev/leads-locais-cnpj.md
- **Developed by:** [Jefferson Valandro](https://apify.com/jeffev) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.20 / 1,000 lead com cnpjs

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Leads locais do Brasil com CNPJ (Google Maps + Receita Federal)

Diga **o que** e **onde** — "dentista em Campinas/SP", "escritório de contabilidade em Curitiba/PR" — e receba a lista de negócios do **Google Maps já com o CNPJ** de cada um, mais os dados oficiais da **Receita Federal**: razão social, porte, data de abertura, CNAE, Simples/MEI e contatos cadastrados.

Tudo em um passo: o actor roda o [Google Maps Scraper](https://apify.com/compass/crawler-google-places) oficial e cruza cada lugar com a base do CNPJ (28 milhões de estabelecimentos ativos, atualizada todo mês).

### Por que o CNPJ importa

O Google Maps diz que o negócio existe. O CNPJ diz **quem ele é**: uma ME aberta há 3 meses ou uma empresa de 20 anos com capital de R$ 1 milhão; MEI ou Simples; a atividade oficial. É isso que separa um lead qualificado de uma lista de telefones.

### Entrada

```json
{
  "buscas": ["dentista", "clínica odontológica"],
  "cidade": "Campinas",
  "uf": "SP",
  "maxLugaresPorBusca": 100
}
```

### Saída

Os dados do Google Maps (nome, categoria, telefone, site, endereço, link) mais:

| Campo | Descrição |
|---|---|
| `cnpjEncontrado`, `cnpjFormatado` | se o CNPJ foi encontrado, e qual |
| `confianca`, `metodo` | **alta** ou **media**; casou por telefone, endereço, os dois, ou nome |
| `razaoSocial`, `nomeFantasia`, `porte`, `capitalSocial`, `dataAbertura` | dados cadastrais |
| `cnaePrincipal`, `cnaeDescricao`, `simplesNacional`, `mei` | atividade e regime |
| `telefoneReceita`, `emailReceita`, `enderecoReceita` | contatos cadastrados na Receita |

Num teste com 180 lugares de Campinas (restaurantes, dentistas e contabilidades), **60% saíram com CNPJ**, quase todos com confiança alta.

### Preço

Dois custos, ambos por resultado:

- **Google Maps Scraper**: cobrado pela Apify por lugar buscado (o actor oficial roda na sua conta).
- **Este actor**: só pelos lugares **em que o CNPJ foi encontrado**. Lugares sem CNPJ não custam nada aqui.

Já tem uma execução do Google Maps Scraper pronta? Use o [Encontrar CNPJ](https://apify.com/jeffev/encontrar-cnpj), que recebe o dataset direto.

### Privacidade (LGPD)

Quando a empresa é de empresário individual, a Receita inclui o CPF no fim da razão social — esse número é removido.

***

## Brazil local business leads with CNPJ (Google Maps + official registry)

Tell it what and where ("dentists in Campinas, SP") and get Google Maps businesses already enriched with their CNPJ (Brazilian company ID), legal name, size, opening date, industry code and tax regime from the official Receita Federal registry, in one step. It runs the official Google Maps Scraper on your account and matches each place against the monthly CNPJ registry. You pay this actor only for places where a CNPJ was found.

### Feedback / Suporte

Encontrou um erro ou precisa de outro campo? Abra uma issue na aba **Issues**: toda issue é lida e respondida. Se o actor te ajudou, uma **avaliação** ajuda outras pessoas a encontrá-lo.

# Actor input Schema

## `buscas` (type: `array`):

Tipos de negócio, como você digitaria no Google Maps. Ex.: dentista, restaurante, escritório de contabilidade.

## `cidade` (type: `string`):

Nome da cidade.

## `uf` (type: `string`):

Sigla do estado. Ex.: SP.

## `maxLugaresPorBusca` (type: `integer`):

Cada lugar buscado no Google Maps tem o custo do Google Maps Scraper (cobrado pela Apify na sua conta).

## `confiancaMinima` (type: `string`):

Alta: nome parecido, ou telefone e endereço batendo juntos.

## `apenasComCnpj` (type: `boolean`):

Desligado: entrega todos os lugares do Maps, com ou sem CNPJ (você só paga este actor pelos que têm CNPJ).

## Actor input object example

```json
{
  "buscas": [
    "dentista"
  ],
  "cidade": "Campinas",
  "uf": "SP",
  "maxLugaresPorBusca": 100,
  "confiancaMinima": "media",
  "apenasComCnpj": false
}
```

# Actor output Schema

## `empresas` (type: `string`):

Uma linha por lugar do Google Maps, com o CNPJ encontrado e os dados da Receita.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "buscas": [
        "dentista"
    ],
    "cidade": "Campinas",
    "uf": "SP"
};

// Run the Actor and wait for it to finish
const run = await client.actor("jeffev/leads-locais-cnpj").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "buscas": ["dentista"],
    "cidade": "Campinas",
    "uf": "SP",
}

# Run the Actor and wait for it to finish
run = client.actor("jeffev/leads-locais-cnpj").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "buscas": [
    "dentista"
  ],
  "cidade": "Campinas",
  "uf": "SP"
}' |
apify call jeffev/leads-locais-cnpj --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jeffev/leads-locais-cnpj"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kR7JuhaAVlYpWkOtU/builds/UrozmXyT0ebGEHeeV/openapi.json
