DENUE Mexico Business Directory Scraper (INEGI) avatar

DENUE Mexico Business Directory Scraper (INEGI)

Pricing

from $3.00 / 1,000 business (establishment) results

Go to Apify Store
DENUE Mexico Business Directory Scraper (INEGI)

DENUE Mexico Business Directory Scraper (INEGI)

Extract Mexican businesses from INEGI's official DENUE directory (6.1M establishments): name, legal name, SCIAN activity, employee size, full address, GPS, phone, e-mail and website. Filter by keyword, state, municipality, SCIAN code, size or radius. No key needed. From US$3 per 1,000 businesses.

Pricing

from $3.00 / 1,000 business (establishment) results

Rating

0.0

(0)

Developer

Fabrikit

Fabrikit

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Features

Limited permissions

Share

Extract Mexican businesses from DENUE — the Directorio Estadístico Nacional de Unidades Económicas published by INEGI, Mexico's national statistics institute — into clean, analysis-ready JSON, CSV or Excel. DENUE is the official register of ~6.1 million establishments across all 32 states: shops, restaurants, clinics, factories, offices, schools, workshops and government units, each with its SCIAN activity code, employee size bracket, full street address, GPS coordinates and, when the business reported them, its phone, e-mail and website.

Filter by keyword, state, municipality, SCIAN code, employee size, contact availability, registration date or radius around a point (nearest first). It works out of the box with no API key: the Actor streams INEGI's official bulk files and filters them on the fly. If you have a free INEGI token, it uses INEGI's official DENUE API instead, which is faster for narrow searches in big states.

What you get from a single run:

  • Lead lists by industry and place: every dentist in Cuauhtémoc, every hotel in Quintana Roo, every manufacturer with 251+ employees in Nuevo León — with address, coordinates, phone, e-mail and website when INEGI publishes them.
  • Market sizing and site selection: count competitors by SCIAN class, municipality and size bracket, or pull everything within 1 km of a location, sorted by distance.
  • Clean, stable data: one row per establishment, the official DENUE id and CLEE key for cross-run diffing, SCIAN 2018 codes, numeric employee ranges, AGEB/manzana keys to join with census data.

Example output item (real record)

{
"id": "6795279",
"clee": "06002722212003941011003286S0",
"name": "11218 DOMINOS PIZZA COLIMA",
"legalName": "OPERADORA Y PROCESADORA DE PRODUCTOS DE PANIFICACION",
"scianCode": "722516",
"activity": "Restaurantes de autoservicio",
"employeeSize": "11 a 30 personas",
"employeeSizeCode": 3,
"employeesMin": 11,
"employeesMax": 30,
"establishmentType": "Fijo",
"streetType": "AVENIDA",
"street": "FELIPE SEVILLA DEL RÍO",
"exteriorNumber": "52",
"interiorNumber": null,
"settlementType": "COLONIA",
"colonia": "VISTA HERMOSA",
"postalCode": "28016",
"locality": "Colima",
"municipality": "Colima",
"municipalityCode": "002",
"state": "Colima",
"stateCode": "06",
"ageb": "0322",
"block": "049",
"shoppingCenter": null,
"shoppingCenterType": null,
"unitNumber": null,
"fullAddress": "AVENIDA FELIPE SEVILLA DEL RÍO 52, COLONIA VISTA HERMOSA, C.P. 28016, Colima, Colima",
"latitude": 19.25573232,
"longitude": -103.71640274,
"phone": null,
"email": "DOMINOSPIZZA@ALSEA.NET",
"website": "WWW.DOMINOS.COM.MX",
"registrationDate": "2017-03",
"distanceMeters": null,
"source": "inegi-bulk-csv",
"scrapedAt": "2026-10-12T19:16:40.364Z"
}

How to use it

  1. Type a keyword (hotel, dentista, farmacia, taller mecánico) or leave it empty.
  2. Pick a state and, optionally, municipalities, SCIAN codes, employee sizes, a contact requirement or a registration date.
  3. Or search around a point: paste latitude,longitude from Google Maps and a radius in meters — results come back nearest first with distanceMeters.
  4. Set max establishments and press Start. Export as JSON, CSV, Excel or HTML, or push the results to Google Sheets, webhooks, Zapier, Make, n8n or the Apify API.

Input examples

Dentists with a phone, e-mail or website in Cuauhtémoc (Mexico City):

{
"state": "09",
"municipalities": ["Cuauhtémoc"],
"scianCodes": ["621211"],
"contactFilter": "any_contact",
"maxItems": 500
}

Restaurants within 1 km of the Zócalo, nearest first:

{
"keyword": "restaurante",
"coordinates": "19.4326,-99.1332",
"radiusMeters": 1000,
"maxItems": 200
}

Large manufacturers (251+ employees) anywhere in Mexico, via the API:

{
"scianCodes": ["31-33"],
"employeeSizes": ["7"],
"maxItems": 5000,
"inegiToken": "your-free-inegi-token"
}

Businesses added to DENUE since 2025 in Monterrey:

{
"state": "19",
"municipalities": ["Monterrey"],
"registeredFrom": "2025",
"maxItems": 1000
}

Input fields

FieldWhat it does
keywordWords to find in the business name, legal name, activity description or address (accents optional). All words of a phrase must appear; separate alternatives with commas: motel,hostal.
stateOne of the 32 states (01 Aguascalientes … 32 Zacatecas; 09 Ciudad de México, 14 Jalisco, 19 Nuevo León, 15 Estado de México). 00 = all of Mexico.
municipalitiesOfficial municipality / alcaldía names (Zapopan, Benito Juárez) or 5-digit codes (09015). A name that exists in several states matches all of them unless you pick a state.
scianCodesSCIAN 2018 prefixes of 2–6 digits: 72 accommodation & food, 7225 restaurants, 621211 dentists, 4611 groceries, 31-33 all manufacturing.
employeeSizesINEGI size brackets: 1 0–5, 2 6–10, 3 11–30, 4 31–50, 5 51–100, 6 101–250, 7 251+ employees.
contactFilterany, phone, email, website or any_contact — keep only records where INEGI publishes that field.
registeredFromYYYY or YYYY-MM: keep establishments added to DENUE in or after that month.
coordinates + radiusMetersSearch around a point, nearest first. Up to 5,000 m via the API; any radius via the bulk files.
maxItemsStop after this many establishments.
inegiTokenOptional free INEGI API token (see below). Stored as a secret input.
sourceauto (default), api or bulk.

Data sources: no key needed, API optional

Both sources are official INEGI open data and return the same records and the same output fields.

  • Bulk files (default, no token) — INEGI's descarga masiva zips, one per state (Estado de México comes in two parts) and one per SCIAN sector. The Actor reads the zip directory with HTTP range requests and streams only the CSV, filtering row by row, so memory stays flat and a run with enough results stops downloading early. When you filter by SCIAN code it automatically picks whichever is smaller to download: the state files or the national sector files.
  • INEGI DENUE API (with your token) — server-side filtering by state, municipality, SCIAN level and size bracket, paginated 1,000 records at a time; radius searches use INEGI's own radius method. Ideal for narrow searches in very large states (CDMX, Estado de México, Jalisco).

How to get a free INEGI token (1 minute)

  1. Open https://www.inegi.org.mx/app/desarrolladores/generaToken/Usuarios/token_Verify (also linked as "Generar token" on INEGI's DENUE API page).
  2. Enter your e-mail address and submit.
  3. INEGI e-mails you the token (a UUID like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). Paste it into INEGI API token. It is stored encrypted as a secret input and never written to the dataset or logs.

If the token is rejected or the API is down, the Actor logs a warning and falls back to the bulk files automatically (unless you forced source: "api").

Output fields

FieldTypeDescription
idstringDENUE establishment ID (stable across releases)
cleestringCLEE, INEGI's unique establishment key
namestringBusiness / trade name (nombre del establecimiento)
legalNamestringLegal name (razón social) when published
scianCodestringSCIAN 2018 class code (6 digits)
activitystringSCIAN class description
employeeSizestringSize bracket as published (11 a 30 personas)
employeeSizeCode / employeesMin / employeesMaxintegerBracket code 1–7 and its numeric bounds (employeesMax is null for 251+)
establishmentTypestringFijo (fixed premises) or Semifijo (semi-fixed stall)
streetType, street, exteriorNumber, interiorNumberstringStreet address as published
settlementType, colonia, postalCodestringColonia (neighbourhood) and 5-digit postal code
locality, municipality, municipalityCode, state, stateCodestringGeography with INEGI codes
ageb, blockstringAGEB and manzana keys (join with census data)
shoppingCenter, shoppingCenterType, unitNumberstringShopping centre / industrial corridor and unit, when applicable
fullAddressstringOne-line address built from the fields above
latitude, longitudenumberWGS84 coordinates
phone, email, websitestringExactly as INEGI publishes them (often empty for micro-businesses)
registrationDatestringYYYY-MM the establishment was added to DENUE
distanceMetersintegerDistance from your center point (radius searches only)
sourcestringinegi-bulk-csv or inegi-api
scrapedAtstringISO timestamp of the run

A SUMMARY record in the run's key-value store lists the source used, files or API requests, rows scanned, megabytes downloaded and whether the run stopped at maxItems or at your spending limit.

Pricing

Pay per event — you pay only for establishments delivered:

EventPrice
Actor startUS$0.00005 per run (per GB of memory)
business-result — one establishment saved to the datasetUS$0.003 (US$3 per 1,000)

Examples: 50 establishments ≈ US$0.15 · 1,000 ≈ US$3 · all ~42,000 in Colima ≈ US$126. The Actor respects your run's maximum total charge: it never saves more items than the limit allows and stops cleanly when it is reached.

Use cases

  • B2B lead generation — build prospect lists by SCIAN activity, municipality and company size, then enrich them in your CRM.
  • Market sizing — count clinics, gyms, pharmacies or restaurants per municipality and size bracket.
  • Site selection and retail analytics — map competitors around a candidate location, nearest first, with coordinates.
  • Sales territory planning — split Mexico by municipality and employee size.
  • New-business monitoring — registeredFrom finds establishments recently added to DENUE.
  • Research and journalism — join DENUE with census data through state/municipality codes, AGEB and manzana.

FAQ

Do I need an INEGI token? No. Without a token the Actor uses INEGI's bulk files. A token only makes narrow searches in big states faster.

How fresh is the data? DENUE is updated by INEGI periodically; the current bulk release is 05/2026 (files dated 20 May 2026), and the API serves INEGI's current version. Each run's SUMMARY shows the file dates.

How fast is it? A state-level search with a few hundred results takes seconds. A radius search without a token scans the whole state file (Mexico City: ~45 MB, about 30 seconds). Without filters, the run streams states one by one until maxItems is reached.

Why are phone, e-mail or website empty? INEGI only publishes contact data the establishment reported; most micro-businesses report none. Use contactFilter to keep only records that have them. The Actor never adds contact data from other sources.

How does keyword search work? Words are matched accent- and case-insensitively against the start of words in the name, legal name, activity, street, colonia and place names, so hotel also finds HOTELES but bar does not match abarrotes. With a token, keyword matching is done by INEGI's API.

Can I get all of Mexico? Yes — leave the filters empty and set a high maxItems. ~6.1 million establishments; budget accordingly.

Responsible use (please read)

DENUE is official open data published by INEGI under its Términos de Libre Uso de la Información del INEGI. The Actor returns records exactly as INEGI publishes them and does not enrich them with data from any other source. Note that many micro-businesses are run by sole traders (personas físicas), so a business name, legal name, phone or e-mail can identify a person. You are responsible for using the data lawfully: follow Mexico's Ley Federal de Protección de Datos Personales en Posesión de los Particulares, honour opt-outs, respect PROFECO's REPEP (do-not-call register) for telemarketing, and comply with anti-spam rules and the laws of your own jurisdiction. Do not use the data for unsolicited bulk messaging.


En español

Extrae negocios de México del DENUE del INEGI (Directorio Estadístico Nacional de Unidades Económicas, ~6.1 millones de establecimientos) en JSON, CSV o Excel: nombre del establecimiento, razón social, código y actividad SCIAN, estrato de personal ocupado, domicilio completo (vialidad, número, colonia, código postal, localidad, municipio, entidad), latitud y longitud, y teléfono, correo electrónico y sitio web cuando el INEGI los publica, además de la fecha de alta en el DENUE.

Filtros: palabra clave (actividad o nombre; alternativas separadas por coma), entidad federativa, municipios o alcaldías (por nombre o clave de 5 dígitos), códigos SCIAN de 2 a 6 dígitos, estratos de personal ocupado (1 = 0 a 5 … 7 = 251 y más), solo registros con teléfono / correo / sitio web, fecha de alta mínima y búsqueda por radio alrededor de un punto (resultados del más cercano al más lejano, con distanceMeters).

Sin token funciona igual: el Actor lee en streaming los archivos de descarga masiva oficiales del INEGI (uno por entidad, o por sector SCIAN si así se descarga menos) y filtra fila por fila. Con un token gratuito del INEGI usa la API oficial del DENUE, más rápida para búsquedas acotadas en entidades grandes (CDMX, Estado de México, Jalisco). Para obtener el token: entra a https://www.inegi.org.mx/app/desarrolladores/generaToken/Usuarios/token_Verify, escribe tu correo y el INEGI te lo envía; pégalo en el campo INEGI API token (se guarda cifrado como entrada secreta).

Precio: US$3 por cada 1,000 establecimientos (evento business-result), más un cargo mínimo de inicio. El Actor respeta el límite de cargo máximo de tu corrida.

Uso responsable: son datos abiertos oficiales del INEGI y se entregan tal como el INEGI los publica, sin enriquecerlos con otras fuentes. Muchos micronegocios pertenecen a personas físicas: cumple la LFPDPPP, respeta el REPEP de PROFECO y las reglas contra el spam. No uses estos datos para envíos masivos no solicitados.

Ejemplo: consultorios dentales (SCIAN 621211) con algún dato de contacto en la alcaldía Cuauhtémoc → {"state": "09", "municipalities": ["Cuauhtémoc"], "scianCodes": ["621211"], "contactFilter": "any_contact"}.