# Mexico Business Directory (INEGI DENUE) (`darikami/mexico-business-directory`) Actor

Mexican businesses from INEGI's official DENUE directory for companies and organizations: name, activity (SCIAN), size band, address, municipality, coordinates, phone, website, role mailbox. Filter by state, activity, size, postal code and registration month.

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

## Pricing

from $1.00 / 1,000 establishment delivereds

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)

**Mexican companies and organizations from INEGI's official DENUE directory, in all 32 states (no INEGI account, no API key).**
Main fields: trade name, legal name, activity (SCIAN 2018 code and name), size band, address, municipality, coordinates, telephone, website and role mailbox.
**USD 0.001 per establishment, plus USD 0.005 per run** (the state file download). A run that finds nothing pays the run fee only.

| Name | Legal name | Activity | Size | Municipality | Postal code |
|---|---|---|---|---|---|
| 11004 DOMINOS PIZZA SAN ANGEL | OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION | Restaurantes de autoservicio | 11 a 30 personas | Álvaro Obregón | 01000 |
| 11009 DOMINOS PIZZA CAFETALES | OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION | Restaurantes de autoservicio | 11 a 30 personas | Coyoacán | 04970 |
| 11011 DOMINOS PIZZA PRADO NORTE | OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION | Restaurantes de autoservicio | 11 a 30 personas | Miguel Hidalgo | 11000 |
| 11012 DOMINOS PIZZA CENTRO | OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION | Restaurantes de autoservicio | 11 a 30 personas | Cuauhtémoc | 06010 |
| 11013 DOMINOS PIZZA GUADALUPE INN | OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION | Restaurantes de autoservicio | 11 a 30 personas | Benito Juárez | 03940 |

The rows come from a real run of 6 November 2026 on the file of 20 May 2026, with the input `{"states": ["09"], "activityPrefixes": ["722"], "maxEstablishments": 5}`. The full item is under Output.

### Who uses it

- **Sales teams and agencies:** companies by state, municipality, postal code and activity, with telephone, website and role mailbox.
- **Suppliers, franchisors and site planners:** where the restaurants, pharmacies or workshops are, with size band and coordinates.
- **Lenders, insurers and market analysts:** where companies and organizations operate, by activity and size.

### What it does not do

- It returns what INEGI publishes. The directory is updated in steps (the files of 6 November 2026 date from 20 May 2026), so a business that opened last week is not in it.
- **It is not the full directory.** DENUE holds about 6 million establishments. This actor delivers only those whose legal name places them as a company or an organization. In the Colima file, that is 4,639 of 42,073 establishments (11 %). Personal data, below, has the rule.
- It delivers no market stalls or shops without a legal name, and no company whose legal name the rule cannot place.
- It delivers no e-mail address other than a role mailbox such as `ventas@`. In the Colima file, 409 of the 2,064 addresses on delivered rows pass.
- It returns no tax numbers (RFC) and no financial data.

### Input

```json
{
  "states": ["09", "15"],
  "activityPrefixes": ["722"],
  "sizeBands": ["11-30", "31-50"],
  "registeredSince": "2025-01",
  "maxEstablishments": 1000
}
```

All fields are optional.
An empty input returns the first 1,000 establishments in the files in state order.

| Field | What it does |
|---|---|
| `states` | State codes `01` to `32` (`09` = Ciudad de México, `14` = Jalisco, `19` = Nuevo León). The files are read in this order. Empty = all 32. |
| `activityPrefixes` | The start of the SCIAN 2018 code, 2 to 6 digits (`722` restaurants, `4641` pharmacies, `236` building construction). |
| `sizeBands` | `0-5`, `6-10`, `11-30`, `31-50`, `51-100`, `101-250`, `251+` persons employed. |
| `municipality` | The municipality as INEGI writes it (for Mexico City the alcaldía). Accents and case do not matter. |
| `postalCode` | A postal code of 5 digits. |
| `nameContains` | A word in the trade name or the legal name. |
| `registeredSince` | A month `YYYY-MM`: establishments that INEGI added to DENUE in that month or later. |
| `onlyWithEmail` | `true`: only establishments with a role mailbox. |
| `maxEstablishments` | The run stops after this number. Default 1,000, at most 100,000. |

An establishment must pass every filter that you set.
A run reads the state files one after the other and stops when it has enough.

### Output

One item per establishment:

```json
{
  "type": "establishment",
  "id": 9453833,
  "clee": "09010722516001663000003286S6",
  "name": "11004 DOMINOS PIZZA SAN ANGEL",
  "legalName": "OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION",
  "activityCode": "722516",
  "activity": "Restaurantes de autoservicio",
  "sizeBand": "11 a 30 personas",
  "unitType": "Fijo",
  "street": "AVENIDA INSURGENTES SUR 2375",
  "neighbourhood": "COLONIA SAN ANGEL",
  "postalCode": "01000",
  "municipality": "Álvaro Obregón",
  "locality": "Álvaro Obregón",
  "state": "Ciudad de México",
  "stateCode": "09",
  "phone": null,
  "email": null,
  "website": "WWW.DOMINOS.COM.MX",
  "latitude": 19.34188365,
  "longitude": -99.18971818,
  "registeredOn": "2024-05",
  "personalDataRemoved": true,
  "sourceFileDate": "2026-05-20",
  "sourceUrl": "https://www.inegi.org.mx/app/descarga/?ti=6",
  "retrievedAt": "2026-11-06T20:42:00.416Z"
}
```

- `id`: the DENUE number. `clee`: INEGI's unique statistical key.
- `activityCode`, `activity`: SCIAN 2018, in Spanish as INEGI writes it. `sizeBand`: persons employed.
- `unitType`: `Fijo` (fixed) or `Semifijo` (semi-fixed, for example a market stall).
- `registeredOn`: the month INEGI added the establishment to DENUE.
- `email`: a role mailbox, or `null`. `personalDataRemoved: true` marks an item that lost an address or a number.

### Pricing (pay per event)

| Event | Price | When |
|---|---|---|
| `establishment` | **USD 0.001** | one establishment that matched your filters, pushed to the dataset |
| `run` | **USD 0.005** | once per run, when the first state file starts to arrive. It is not charged when INEGI cannot be reached. |

Free: rows that the filters or the privacy rule drop, and the note "nothing matched".
A run that finds nothing pays the run fee, because the actor has read the files.
A download that breaks off after its start also keeps the run fee.
1,000 establishments cost USD 1.005.
You can set a maximum charge for a run.

### Personal data

DENUE lists persons as well as companies. A filled legal name does not prove a company: the file also holds persons' names there, and INEGI removes most legal forms.
The actor's filter withholds an establishment with no legal name, or with one that has no legal form (S.A. de C.V., A.C.) and no organization's word (Grupo, Instituto, Ayuntamiento and others). It also withholds a row with a person's title (Dr, Lic) in a name. This also withholds real companies. `withheld` in `STATS` counts these rows, and they are free.
It delivers an e-mail address when the part before the `@` names a function (`ventas`, `contacto`, `info` and others), and drops other addresses.
It removes e-mail addresses and telephone numbers from names and activity texts.
`personalDataRemoved: true` marks an establishment that the filter changed.

The filter works on patterns. A person's name can remain inside a legal name, a trade name or the domain of a role mailbox. The telephone, website, street and coordinates of a small company can be its owner's.

### Data source and terms

- **Source:** "Directorio Estadístico Nacional de Unidades Económicas (DENUE)", the bulk files `denue_<state>_csv.zip` of INEGI (Instituto Nacional de Estadística y Geografía), file date 20 May 2026.
- **Terms** (INEGI, "Términos de libre uso de la información", inegi.org.mx/inegi/terminos.html, read 6 November 2026): "Puede explotar comercialmente la información, utilizándola como insumo para generar otros productos o servicios." The user must credit INEGI: **Fuente: INEGI, Directorio Estadístico Nacional de Unidades Económicas (DENUE)**, with the update date (`sourceFileDate`).
- The actor downloads the public files and reads them as a stream.

### Run summary

The run summary is in the default key-value store under `SUMMARY`, the counts under `STATS`.
The data comes as the source publishes it, without warranty.

**More official-data actors by darikami:** [US business entities](https://apify.com/darikami/us-business-entities) · [Canada corporations](https://apify.com/darikami/canada-corporations) · [French company search](https://apify.com/darikami/french-company-search) · [European company registers](https://apify.com/darikami/european-company-registers).
In an AI agent: ask the Apify MCP server (`mcp.apify.com`) for `darikami/mexico-business-directory`.

# Actor input Schema

## `states` (type: `array`):

The states to read, one file each (the State of Mexico has two). Empty = all 32 states, in order, until the maximum is reached.

## `activityPrefixes` (type: `array`):

The start of the SCIAN 2018 activity code, 2 to 6 digits. For example 722 restaurants, 4641 pharmacies, 541 professional services, 236 building construction. An establishment matches when its code starts with one of them.

## `sizeBands` (type: `array`):

INEGI's size band. An establishment matches when it is in one of them.

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

The municipality exactly as INEGI writes it (for Mexico City, the alcaldía, for example Coyoacán). Accents and case do not matter.

## `postalCode` (type: `string`):

A postal code of 5 digits.

## `nameContains` (type: `string`):

A word or part of a word in the trade name or the legal name (2 to 60 characters).

## `registeredSince` (type: `string`):

A month YYYY-MM (or a date; the day is ignored): establishments that INEGI added to DENUE in that month or later.

## `onlyWithEmail` (type: `boolean`):

On: only establishments with a role mailbox such as ventas@ or contacto@. The actor delivers no other e-mail address.

## `maxEstablishments` (type: `integer`):

The run stops after this number of establishments. Each establishment is one charged result.

## Actor input object example

```json
{
  "states": [
    "09"
  ],
  "registeredSince": "2026-01",
  "onlyWithEmail": false,
  "maxEstablishments": 100
}
```

# Actor output Schema

## `results` (type: `string`):

One item per establishment: name, activity, size band, address, municipality, state, contact data of companies, coordinates.

## `stats` (type: `string`):

STATS record: files read, rows, matched, emitted, rows withheld by the privacy rule, personalDataRemoved.

## `summary` (type: `string`):

SUMMARY record: pushed, charged, attempts, errors, stoppedByBudget, ok, message.

# 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 = {
    "states": [
        "09"
    ],
    "registeredSince": "2026-01",
    "maxEstablishments": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("darikami/mexico-business-directory").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 = {
    "states": ["09"],
    "registeredSince": "2026-01",
    "maxEstablishments": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("darikami/mexico-business-directory").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 '{
  "states": [
    "09"
  ],
  "registeredSince": "2026-01",
  "maxEstablishments": 100
}' |
apify call darikami/mexico-business-directory --silent --output-dataset

```

## MCP server setup

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

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/pCLf8UGgGos77w2k1/builds/WdioLK3pfeBJxSsNX/openapi.json
