{
  "openapi": "3.0.1",
  "info": {
    "title": "Mexico Company Finder (DENUE, legal entities, English labels)",
    "description": "Search 846k Mexican legal entities from INEGI DENUE by SCIAN industry, state, municipality and employee size. English labels, +52 phones, websites and corporate e-mails. Public sector and natural persons filtered out. Fuente: INEGI.",
    "version": "0.1",
    "x-build-id": "7Wvn0g0kWSqM23bJU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/latsouth~mexico-company-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-latsouth-mexico-company-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/latsouth~mexico-company-finder/runs": {
      "post": {
        "operationId": "runs-sync-latsouth-mexico-company-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/latsouth~mexico-company-finder/run-sync": {
      "post": {
        "operationId": "run-sync-latsouth-mexico-company-finder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "scian_sectors": {
            "title": "Industry sectors (SCIAN 2-digit)",
            "type": "array",
            "description": "SCIAN sectors of the establishment's main activity (SCIAN is Mexico's version of NAICS). Combined with industry codes using OR.",
            "items": {
              "type": "string",
              "enum": [
                "11",
                "21",
                "22",
                "23",
                "31-33",
                "43",
                "46",
                "48-49",
                "51",
                "52",
                "53",
                "54",
                "55",
                "56",
                "61",
                "62",
                "71",
                "72",
                "81",
                "93"
              ],
              "enumTitles": [
                "11 - Agriculture, animal production, forestry, fishing",
                "21 - Mining, oil and gas",
                "22 - Utilities (electricity, water, gas)",
                "23 - Construction",
                "31-33 - Manufacturing",
                "43 - Wholesale trade",
                "46 - Retail trade",
                "48-49 - Transportation, postal and warehousing",
                "51 - Information and mass media (software publishing, telecom, data/hosting)",
                "52 - Finance and insurance",
                "53 - Real estate, rental and leasing",
                "54 - Professional, scientific and technical services",
                "55 - Corporate offices / management of companies",
                "56 - Business support and waste management",
                "61 - Educational services",
                "62 - Health care and social assistance",
                "71 - Arts, entertainment and recreation",
                "72 - Accommodation and food services",
                "81 - Other services (repair, personal, associations)",
                "93 - Government and international organizations"
              ]
            }
          },
          "scian_codes": {
            "title": "Industry codes (SCIAN class or prefix)",
            "type": "array",
            "description": "6-digit SCIAN classes (e.g. 541510 = computer systems design services) or shorter prefixes (3 digits = subsector, 4 = industry group, 5 = industry).",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Case- and accent-insensitive substring searched in the English and Spanish activity labels and in the legal and trade names (e.g. software, logistics, clinica)."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Leave empty for all of Mexico. Selecting states makes runs faster.",
            "items": {
              "type": "string",
              "enum": [
                "01",
                "02",
                "03",
                "04",
                "05",
                "06",
                "07",
                "08",
                "09",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "20",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32"
              ],
              "enumTitles": [
                "01 - Aguascalientes",
                "02 - Baja California",
                "03 - Baja California Sur",
                "04 - Campeche",
                "05 - Coahuila",
                "06 - Colima",
                "07 - Chiapas",
                "08 - Chihuahua",
                "09 - Ciudad de Mexico (CDMX)",
                "10 - Durango",
                "11 - Guanajuato",
                "12 - Guerrero",
                "13 - Hidalgo",
                "14 - Jalisco",
                "15 - Estado de Mexico",
                "16 - Michoacan",
                "17 - Morelos",
                "18 - Nayarit",
                "19 - Nuevo Leon",
                "20 - Oaxaca",
                "21 - Puebla",
                "22 - Queretaro",
                "23 - Quintana Roo",
                "24 - San Luis Potosi",
                "25 - Sinaloa",
                "26 - Sonora",
                "27 - Tabasco",
                "28 - Tamaulipas",
                "29 - Tlaxcala",
                "30 - Veracruz",
                "31 - Yucatan",
                "32 - Zacatecas"
              ]
            }
          },
          "municipalities": {
            "title": "Municipalities / alcaldias",
            "type": "array",
            "description": "Municipality names as in DENUE, accents optional (e.g. Monterrey, Zapopan, Miguel Hidalgo, Benito Juarez).",
            "items": {
              "type": "string"
            }
          },
          "size_brackets": {
            "title": "Employee size brackets",
            "type": "array",
            "description": "INEGI personnel brackets (personal ocupado) of the establishment. Leave empty for all sizes.",
            "items": {
              "type": "string",
              "enum": [
                "0-5",
                "6-10",
                "11-30",
                "31-50",
                "51-100",
                "101-250",
                "251+"
              ],
              "enumTitles": [
                "0-5 employees",
                "6-10 employees",
                "11-30 employees",
                "31-50 employees",
                "51-100 employees",
                "101-250 employees",
                "251+ employees"
              ]
            }
          },
          "min_employees": {
            "title": "Minimum employees",
            "minimum": 0,
            "type": "integer",
            "description": "Keep establishments whose whole size bracket is at or above this number (e.g. 11 keeps 11-30 and larger)."
          },
          "exclude_public_sector": {
            "title": "Exclude public sector",
            "type": "boolean",
            "description": "Leave out government offices, public schools and hospitals, and other public-sector establishments.",
            "default": true
          },
          "only_with_website": {
            "title": "Only with a website (declared or guessed)",
            "type": "boolean",
            "description": "Keep establishments with a `website` declared to INEGI OR a `website_guess` (the domain of a corporate e-mail, NOT checked over HTTP). Free-mail, ISP and placeholder domains (gmail, prodigy.net.mx, contacto.com, ...) never count. Mexico has no HTTP-verified website filter yet.",
            "default": false
          },
          "only_with_email": {
            "title": "Only with an e-mail",
            "type": "boolean",
            "description": "Keep only establishments with a syntactically valid e-mail.",
            "default": false
          },
          "only_with_phone": {
            "title": "Only with a phone",
            "type": "boolean",
            "description": "Keep only establishments with a valid +52 phone number.",
            "default": false
          },
          "registered_after": {
            "title": "Added to DENUE on or after",
            "type": "string",
            "description": "YYYY-MM-DD. DENUE records the month the establishment entered the directory (a proxy for new businesses)."
          },
          "one_per_company": {
            "title": "One row per company",
            "type": "boolean",
            "description": "Collapse branches: keep only the largest establishment of each legal name.",
            "default": false
          },
          "sort_by": {
            "title": "Sort by",
            "enum": [
              "size_desc",
              "registration_date_desc",
              "registration_date_asc",
              "denue_id"
            ],
            "type": "string",
            "description": "Order of results. Largest first is a good default for B2B prospecting.",
            "default": "size_desc"
          },
          "max_results": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500000,
            "type": "integer",
            "description": "You pay per company returned (US$0.003 each: 1,000 companies = US$3). The run also stops at your spending limit. Default 1,000 when called via API without this field.",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}