# Mexico Business Directory (DENUE) – B2B Leads by City (`datatools-ai/mexico-business-directory-denue`) Actor

Search Mexico's official business directory (INEGI DENUE, 5M+ establishments) by state, municipality, SCIAN activity, keyword, postal code and company size. Get name, activity, address, phone, website, corporate email and GPS. First 20 results free, then $2 per 1,000.

- **URL**: https://apify.com/datatools-ai/mexico-business-directory-denue.md
- **Developed by:** [DataTools AI](https://apify.com/datatools-ai) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 business results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Mexico Business Directory (INEGI DENUE) – B2B Leads by City & Activity

**English** · [Español](#español)

Search **Mexico's official business directory** – INEGI's *Directorio Estadístico Nacional de Unidades Económicas* (DENUE), with **5+ million establishments** – by state, municipality, SCIAN activity code, keyword, postal code and company size. Get a clean, ready-to-use list of businesses with **name, activity, address, phone, website, corporate email and GPS coordinates**.

No login, no proxies, no scraping of private sites: the Actor reads INEGI's **official open-data bulk files**, published under INEGI's *Términos de Libre Uso*, which allow commercial reuse with attribution.

### What can I use it for?

- **B2B lead lists in Mexico**: dental clinics in Monterrey, restaurants in Guadalajara, hardware stores in Puebla, factories in Querétaro…
- **Market sizing**: how many businesses of a given activity exist per municipality or postal code.
- **Field sales and route planning**: every record has latitude/longitude and a Google Maps link.
- **Site selection and competitor mapping** for retail, franchises and services.
- **CRM enrichment** with official SCIAN activity codes and employee-size brackets.

### Input

| Field | Example | Notes |
|---|---|---|
| State | `19` (Nuevo León) | Required. 32 states incl. CDMX (`09`) and Estado de México (`15`). |
| SCIAN codes | `6212` | Code or prefix: `722` restaurants, `4611` groceries, `6211` doctors, `484` trucking, `31`–`33` manufacturing. |
| Keywords | `dental`, `ferreter` | Matches name, legal name or activity, accent-insensitive. |
| Municipality | `Monterrey` | Partial match. |
| Postal codes | `64000` | Exact 5-digit codes. |
| Company size | `11 a 30 personas` | INEGI employee brackets. |
| Only with contact / website | `true` | Skip establishments without phone, website or corporate email. |
| Max results | `25` | First 20 per run are free. |

Example input:

```json
{"state": "19", "scianCodes": ["6212"], "municipality": "Monterrey", "requireContact": true, "maxResults": 25}
```

### Output – real sample

From a real run (`state: 19`, `scianCodes: ["6212"]`, `municipality: Monterrey`, `requireContact: true`):

| businessName | activity | employees | neighborhood | phone | website |
|---|---|---|---|---|---|
| 3 CLINICA DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | LA ESCONDIDA | 8183330813 |  |
| A DENTAL H | Consultorios dentales del sector privado | 0 a 5 personas | SAN BERNABÉ (FOMERREY 51) | 8112847702 |  |
| ALTAVIT DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | CENTRO | 8125855296 |  |
| AME ASOCIACION | Consultorios dentales del sector privado | 6 a 10 personas | CENTRO | 8113652466 | www.asociacioname.com |
| ARCEO CLINIC | Consultorios dentales del sector privado | 6 a 10 personas | LEONES | 8111769811 | maxilofacialmtynl.com |
| ARMONISA | Consultorios dentales del sector privado | 0 a 5 personas | CHEPEVERA |  | clinicaarmonisa.com.mx |
| ARTE DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | VALLE DE SANTA LUCÍA (GRANJA SANITARIA) | 8114251583 |  |
| ARTE EN SONRISA | Consultorios dentales del sector privado | 0 a 5 personas | LOMAS DE SAN FRANCISCO | 8116181824 | www.arteensonrisa.com |

One full item:

```json
{
  "businessName": "AME ASOCIACION",
  "legalName": null,
  "activity": "Consultorios dentales del sector privado",
  "scianCode": "621211",
  "employees": "6 a 10 personas",
  "address": "CALLE MARIANO MATAMOROS 1526",
  "neighborhood": "CENTRO",
  "postalCode": "64040",
  "municipality": "Monterrey",
  "locality": "Monterrey",
  "state": "Nuevo León",
  "phone": "8113652466",
  "website": "www.asociacioname.com",
  "companyEmail": "contacto@asociacioname.org",
  "latitude": 25.6735914,
  "longitude": -100.33761235,
  "googleMapsUrl": "https://www.google.com/maps?q=25.6735914,-100.33761235",
  "unitType": "Fijo",
  "registeredSince": "2010-07",
  "denueId": "3025613",
  "source": "INEGI, DENUE 05/2026"
}
```

Fields: `businessName, legalName, activity, scianCode, employees, address, neighborhood, postalCode, municipality, locality, state, phone, website, companyEmail, latitude, longitude, googleMapsUrl, unitType, registeredSince, denueId, source`. Download as JSON, CSV, Excel or via API.

### Pricing – free trial included

- **The first 20 results of every run are free.**
- After that: **$2 per 1,000 results** ($0.002 per business). 1,000 dental clinics ≈ $1.96.
- You pay only for businesses returned – never for establishments that were scanned and filtered out.
- Set *Maximum cost per run* in Apify to cap your spend; the Actor stops cleanly when it is reached.
- New Apify accounts also receive free monthly platform credit.

### Privacy and data source

- Source: **INEGI, DENUE 05/2026** (official bulk download). Please credit INEGI when you publish results.
- Only business establishment data. **Emails from free providers (gmail, hotmail, yahoo…) are never returned**, legal names are only shown for companies (S.A., S. de R.L., A.C.…), and **establishments named after individuals (Dr., Lic., Ing.…) are skipped**.
- Use the data in line with Mexican law (LFPDPPP) and anti-spam rules.

### FAQ

**How fresh is the data?** INEGI updates DENUE periodically; the Actor always downloads the latest official file at run time.
**How fast is it?** A state is scanned in about 1–3 minutes (Estado de México and CDMX are the largest).
**Do I need an INEGI token?** No.

***

### Español

## Directorio de Empresas de México (DENUE del INEGI) – Prospectos B2B por ciudad y giro

Busca en el **directorio oficial de negocios de México** – el *Directorio Estadístico Nacional de Unidades Económicas* (DENUE) del INEGI, con **más de 5 millones de establecimientos** – por estado, municipio, código SCIAN, palabra clave, código postal y tamaño de empresa. Obtén una lista limpia con **nombre, giro, dirección, teléfono, sitio web, correo corporativo y coordenadas GPS**.

Sin login, sin proxies y sin raspar sitios privados: el Actor lee los **archivos oficiales de descarga masiva** del INEGI, publicados bajo los *Términos de Libre Uso de la Información del INEGI*, que permiten el uso comercial citando la fuente.

### ¿Para qué sirve?

- **Listas de prospectos B2B en México**: consultorios dentales en Monterrey, restaurantes en Guadalajara, ferreterías en Puebla, fábricas en Querétaro…
- **Dimensionar mercados**: cuántos negocios de un giro hay por municipio o código postal.
- **Ventas de campo y rutas**: cada registro trae latitud/longitud y liga a Google Maps.
- **Ubicación de sucursales y mapa de competidores** para retail, franquicias y servicios.
- **Enriquecer tu CRM** con el código SCIAN oficial y el rango de personal ocupado.

### Entrada

| Campo | Ejemplo | Notas |
|---|---|---|
| Estado | `19` (Nuevo León) | Obligatorio. 32 estados, incluidos CDMX (`09`) y Estado de México (`15`). |
| Códigos SCIAN | `6212` | Código o prefijo: `722` restaurantes, `4611` abarrotes, `6211` médicos, `484` autotransporte, `31`–`33` manufactura. |
| Palabras clave | `dental`, `ferreter` | Busca en nombre, razón social o actividad, sin importar acentos. |
| Municipio | `Monterrey` | Coincidencia parcial. |
| Códigos postales | `64000` | Códigos exactos de 5 dígitos. |
| Tamaño | `11 a 30 personas` | Rangos de personal ocupado del INEGI. |
| Solo con contacto / sitio web | `true` | Omite negocios sin teléfono, sitio web ni correo corporativo. |
| Máximo de resultados | `25` | Los primeros 20 de cada ejecución son gratis. |

### Salida – ejemplo real

De una ejecución real (`state: 19`, `scianCodes: ["6212"]`, `municipality: Monterrey`, `requireContact: true`):

| businessName | activity | employees | neighborhood | phone | website |
|---|---|---|---|---|---|
| 3 CLINICA DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | LA ESCONDIDA | 8183330813 |  |
| A DENTAL H | Consultorios dentales del sector privado | 0 a 5 personas | SAN BERNABÉ (FOMERREY 51) | 8112847702 |  |
| ALTAVIT DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | CENTRO | 8125855296 |  |
| AME ASOCIACION | Consultorios dentales del sector privado | 6 a 10 personas | CENTRO | 8113652466 | www.asociacioname.com |
| ARCEO CLINIC | Consultorios dentales del sector privado | 6 a 10 personas | LEONES | 8111769811 | maxilofacialmtynl.com |
| ARMONISA | Consultorios dentales del sector privado | 0 a 5 personas | CHEPEVERA |  | clinicaarmonisa.com.mx |
| ARTE DENTAL | Consultorios dentales del sector privado | 0 a 5 personas | VALLE DE SANTA LUCÍA (GRANJA SANITARIA) | 8114251583 |  |
| ARTE EN SONRISA | Consultorios dentales del sector privado | 0 a 5 personas | LOMAS DE SAN FRANCISCO | 8116181824 | www.arteensonrisa.com |

Descarga en JSON, CSV, Excel o por API.

### Precio – prueba gratis incluida

- **Los primeros 20 resultados de cada ejecución son gratis.**
- Después: **USD 2 por cada 1,000 resultados** (USD 0.002 por negocio). 1,000 consultorios ≈ USD 1.96.
- Solo pagas por los negocios entregados, nunca por los que se revisaron y no pasaron tus filtros.
- Configura el *costo máximo por ejecución* en Apify; el Actor se detiene limpiamente al llegar al límite.
- Las cuentas nuevas de Apify reciben además crédito mensual gratuito.

### Privacidad y fuente

- Fuente: **INEGI, DENUE 05/2026** (descarga masiva oficial). Cita al INEGI si publicas los resultados.
- Solo datos de establecimientos. **Nunca se entregan correos de proveedores gratuitos** (gmail, hotmail, yahoo…), la razón social solo se muestra para sociedades (S.A., S. de R.L., A.C.…) y **se omiten los establecimientos con nombre de persona** (Dr., Lic., Ing.…).
- Usa los datos conforme a la LFPDPPP y a las reglas contra el spam.

### Preguntas frecuentes

**¿Qué tan actuales son los datos?** El INEGI actualiza el DENUE periódicamente; el Actor descarga el archivo oficial más reciente en cada ejecución.
**¿Qué tan rápido es?** Un estado se revisa en 1 a 3 minutos aprox. (Estado de México y CDMX son los más grandes).
**¿Necesito token del INEGI?** No.

# Actor input Schema

## `state` (type: `string`):

Mexican state to search. One official INEGI file per state is read (Estado de México = 2 files).

## `scianCodes` (type: `array`):

Optional. Filter by SCIAN code or prefix, e.g. 722 = restaurants & bars, 4611 = grocery stores, 6211 = medical offices, 3361 = auto manufacturing, 484 = trucking.

## `keywords` (type: `array`):

Optional. Matches business name, legal name or activity description (accent-insensitive). Any keyword matches, e.g. 'dental', 'ferreter', 'hotel'.

## `municipality` (type: `string`):

Optional. Part of the municipality name, e.g. Monterrey, Zapopan, Benito Juárez.

## `postalCodes` (type: `array`):

Optional. Exact 5-digit postal codes.

## `employeeSizes` (type: `array`):

Optional. INEGI employee-size brackets (personal ocupado).

## `requireContact` (type: `boolean`):

Skip establishments without any usable contact (phone, website or corporate email).

## `requireWebsite` (type: `boolean`):

Return only establishments that list a website.

## `includeCompanyEmail` (type: `boolean`):

Emails on free providers (gmail, hotmail, yahoo…) are never returned.

## `maxResults` (type: `integer`):

The first 20 results of every run are free.

## Actor input object example

```json
{
  "state": "19",
  "scianCodes": [
    "6212"
  ],
  "municipality": "Monterrey",
  "requireContact": true,
  "requireWebsite": false,
  "includeCompanyEmail": true,
  "maxResults": 25
}
```

# Actor output Schema

## `businesses` (type: `string`):

One item per establishment.

## `runSummary` (type: `string`):

Scanned, matched, free and charged results.

# 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 = {
    "state": "19",
    "scianCodes": [
        "6212"
    ],
    "municipality": "Monterrey",
    "requireContact": true,
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("datatools-ai/mexico-business-directory-denue").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 = {
    "state": "19",
    "scianCodes": ["6212"],
    "municipality": "Monterrey",
    "requireContact": True,
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("datatools-ai/mexico-business-directory-denue").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 '{
  "state": "19",
  "scianCodes": [
    "6212"
  ],
  "municipality": "Monterrey",
  "requireContact": true,
  "maxResults": 25
}' |
apify call datatools-ai/mexico-business-directory-denue --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datatools-ai/mexico-business-directory-denue"
        }
    }
}
```

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/lL4Q3rLhXJICV1oZm/builds/8j0W0ffhGtDxqQluk/openapi.json
