{
  "openapi": "3.0.1",
  "info": {
    "title": "Lamudi México Real Estate Scraper & Monitor",
    "description": "Extract Lamudi México listings for sale or rent by colonia, city or state: price in MXN and USD, price per m², price drops, maintenance fee, rooms, area, GPS, amenities, agency and WhatsApp. Filter out bank foreclosures, monitor new listings.",
    "version": "1.0",
    "x-build-id": "lIUZjWu9awbIRPYf0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datamole~lamudi-mexico-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datamole-lamudi-mexico-scraper",
        "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/datamole~lamudi-mexico-scraper/runs": {
      "post": {
        "operationId": "runs-sync-datamole-lamudi-mexico-scraper",
        "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/datamole~lamudi-mexico-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-datamole-lamudi-mexico-scraper",
        "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": {
          "locations": {
            "title": "Ubicaciones",
            "type": "array",
            "description": "Colonias, alcaldías, municipios, ciudades o estados, por ejemplo Polanco, Roma Norte, Benito Juárez, Zapopan, Cancún o Querétaro. Si un nombre se repite en varios estados, agrega el estado después de una coma: \"Benito Juárez, Quintana Roo\". Vacío = todo México.",
            "items": {
              "type": "string"
            }
          },
          "operation": {
            "title": "Operación",
            "enum": [
              "venta",
              "renta"
            ],
            "type": "string",
            "description": "Venta o renta.",
            "default": "venta"
          },
          "propertyTypes": {
            "title": "Tipo de inmueble",
            "type": "array",
            "description": "Uno o varios tipos (cada uno es una búsqueda). Vacío = todos los tipos.",
            "items": {
              "type": "string",
              "enum": [
                "casa",
                "casa/casa-unifamiliar",
                "casa/townhouse",
                "casa/casa-en-condominio",
                "casa/casa-multifamiliar",
                "casa/granja-estancia",
                "departamento",
                "departamento/departamentos",
                "departamento/penthouse",
                "departamento/condominio-horizontal",
                "departamento/desvan",
                "departamento/estudio",
                "departamento/duplex",
                "terreno",
                "terreno/lote-terreno",
                "terreno/superficie-en-acres",
                "comercial",
                "comercial/venta-al-por-menor",
                "comercial/industria-almacen",
                "comercial/showrooms-mercancias-voluminosas",
                "comercial/comercial-agricultura",
                "comercial/hotel-ocio",
                "offices",
                "offices/oficinas",
                "offices/edificio",
                "offices/medico-consulting"
              ],
              "enumTitles": [
                "Casa",
                "Casa unifamiliar",
                "Casa en fraccionamiento",
                "Casa en condominio",
                "Casa multifamiliar",
                "Rancho / granja",
                "Departamento",
                "Departamento (solo departamentos)",
                "Penthouse",
                "Condominio horizontal",
                "Loft",
                "Estudio",
                "Dúplex",
                "Terreno",
                "Lote",
                "Terreno de gran superficie",
                "Comercial",
                "Local comercial",
                "Bodega / nave industrial",
                "Showroom",
                "Agrícola",
                "Hotel",
                "Oficina",
                "Oficina (solo oficinas)",
                "Edificio",
                "Consultorio"
              ]
            }
          },
          "searchUrls": {
            "title": "URLs de Lamudi",
            "type": "array",
            "description": "Opcional. Pega una búsqueda de lamudi.com.mx con tus filtros ya aplicados (se recorren todas sus páginas) o el link de un anuncio (/detalle/...).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Máximo de anuncios",
            "minimum": 1,
            "type": "integer",
            "description": "Tope para toda la corrida. Vacío = sin tope."
          },
          "maxPagesPerSearch": {
            "title": "Máximo de páginas por búsqueda",
            "minimum": 1,
            "type": "integer",
            "description": "Cada página trae 30 anuncios. Vacío = todas."
          },
          "minPrice": {
            "title": "Precio mínimo",
            "minimum": 0,
            "type": "integer",
            "description": "En la moneda elegida abajo. Para renta es el precio mensual."
          },
          "maxPrice": {
            "title": "Precio máximo",
            "minimum": 0,
            "type": "integer",
            "description": "En la moneda elegida abajo."
          },
          "priceCurrency": {
            "title": "Moneda del filtro de precio",
            "enum": [
              "MXN",
              "USD"
            ],
            "type": "string",
            "description": "Lamudi convierte los anuncios publicados en la otra moneda.",
            "default": "MXN"
          },
          "bedrooms": {
            "title": "Recámaras",
            "type": "array",
            "description": "Una o varias. Por ejemplo 2 y 3 = anuncios con 2 o con 3 recámaras.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5 o más"
              ]
            }
          },
          "bathrooms": {
            "title": "Baños",
            "type": "array",
            "description": "Uno o varios.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1",
                "2",
                "3",
                "4",
                "5 o más"
              ]
            }
          },
          "minArea": {
            "title": "Superficie mínima (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Superficie mínima."
          },
          "maxArea": {
            "title": "Superficie máxima (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Superficie máxima."
          },
          "amenities": {
            "title": "Amenidades",
            "type": "array",
            "description": "Si eliges varias, cada anuncio debe tener todas.",
            "items": {
              "type": "string",
              "enum": [
                "security",
                "guardhouse",
                "cctv",
                "concierge",
                "security-door",
                "alarm",
                "24-hour-security",
                "roof-garden",
                "swimming_pool",
                "gym",
                "sauna",
                "jacuzzi",
                "tennis-court",
                "children-s-area",
                "multiuse-room",
                "deck",
                "balcony",
                "garden",
                "grill",
                "green-area",
                "courtyard",
                "garage",
                "internet",
                "wi-fi",
                "video-cable",
                "air-conditioning",
                "heating",
                "fireplace",
                "natural-gas",
                "intercom",
                "water-tank",
                "water",
                "electricity",
                "built-in-wardrobe",
                "library",
                "panoramic-view",
                "lift",
                "disabled-access",
                "furnished",
                "equipped-kitchen",
                "integral-kitchen",
                "ensuite",
                "cleaning-room",
                "cellar",
                "storage-room",
                "office"
              ],
              "enumTitles": [
                "Seguridad",
                "Caseta de vigilancia",
                "Circuito cerrado (CCTV)",
                "Conserje",
                "Puerta de seguridad",
                "Alarma",
                "Vigilancia 24 horas",
                "Roof garden",
                "Alberca",
                "Gimnasio",
                "Sauna",
                "Jacuzzi",
                "Cancha de tenis",
                "Área infantil",
                "Salón de usos múltiples",
                "Terraza",
                "Balcón",
                "Jardín",
                "Asador",
                "Áreas verdes",
                "Patio",
                "Estacionamiento",
                "Internet",
                "Wi-Fi",
                "TV por cable",
                "Aire acondicionado",
                "Calefacción",
                "Chimenea",
                "Gas natural",
                "Interfón",
                "Cisterna",
                "Agua",
                "Electricidad",
                "Clóset",
                "Biblioteca",
                "Vista panorámica",
                "Elevador",
                "Acceso para discapacitados",
                "Amueblado",
                "Cocina equipada",
                "Cocina integral",
                "Baño en recámara principal",
                "Cuarto de lavado",
                "Sótano",
                "Bodega",
                "Estudio / oficina"
              ]
            }
          },
          "foreclosures": {
            "title": "Remates bancarios (solo venta)",
            "enum": [
              "included",
              "excluded",
              "only"
            ],
            "type": "string",
            "description": "En CDMX más de la mitad de los anuncios en venta son remates o cesiones de derechos. Exclúyelos para ver solo ventas tradicionales.",
            "default": "included"
          },
          "infonavit": {
            "title": "Acepta crédito Infonavit (solo venta)",
            "type": "boolean",
            "description": "Solo anuncios que aceptan crédito Infonavit.",
            "default": false
          },
          "publishedWithinDays": {
            "title": "Fecha de publicación",
            "enum": [
              "any",
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Solo anuncios recientes.",
            "default": "any"
          },
          "sort": {
            "title": "Orden",
            "enum": [
              "popularity",
              "newest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "Orden de Lamudi.",
            "default": "popularity"
          },
          "includeDetails": {
            "title": "Detalle completo (con costo extra)",
            "type": "boolean",
            "description": "Abre cada anuncio para sumar mantenimiento, año de construcción, piso, estado de conservación, superficie de terreno, medios baños, todas las amenidades, formas de pago, todas las fotos, dirección con código postal, fecha de publicación, días en el mercado, teléfono de la inmobiliaria y calificación de la zona. Más lento y con costo adicional por anuncio.",
            "default": false
          },
          "monitorMode": {
            "title": "Modo monitoreo",
            "type": "boolean",
            "description": "Recuerda los anuncios entre corridas y devuelve solo los nuevos y los que cambiaron de precio, con el precio anterior y el % de cambio. La primera corrida devuelve todo.",
            "default": false
          },
          "monitorName": {
            "title": "Nombre del monitoreo",
            "type": "string",
            "description": "Opcional. Usa el mismo nombre para compartir la memoria entre configuraciones. Vacío = se identifica por los filtros."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Se usa solo si Lamudi rechaza la conexión directa. Déjalo como está.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "MX"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}