{
  "openapi": "3.0.1",
  "info": {
    "title": "Lamudi Scraper — Mexico Real Estate Listings",
    "description": "Scrape Lamudi Mexico (lamudi.com.mx) property listings: price MXN/USD, m², bedrooms, bathrooms, parking, colonia, city, state, GPS, agency, photos, description. Filter by sale/rent, type, location, price, area. From US$2.00 per 1,000 properties.",
    "version": "0.1",
    "x-build-id": "mN4LrTqOypzKkJgZg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~lamudi-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-lamudi-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/fabrikit~lamudi-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-lamudi-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/fabrikit~lamudi-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-lamudi-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": {
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings for sale (Venta) or for rent (Renta).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "departamento",
              "casa",
              "terreno",
              "oficina",
              "comercial",
              "penthouse",
              "loft",
              "estudio",
              "duplex",
              "casa-en-condominio",
              "casa-en-fraccionamiento",
              "lote-terreno",
              "rancho",
              "bodega",
              "local",
              "edificio",
              "consultorio"
            ],
            "type": "string",
            "description": "Main groups (departamento, casa, terreno, oficina, comercial) include all their sub-types. Pick a sub-type to narrow the search.",
            "default": "departamento"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "State, city/municipality or colonia as written on lamudi.com.mx — e.g. `Ciudad de México`, `Jalisco`, `Zapopan`, `Polanco, Miguel Hidalgo`, `Mérida`. Add the city after a comma to disambiguate colonias. You can also paste a URL slug such as `jalisco/zapopan` or `distrito-federal/miguel-hidalgo/polanco-7`. Leave empty for all of Mexico.",
            "default": "Ciudad de México"
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound in the currency below (0 = no minimum). Rent prices are monthly.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound in the currency below (0 = no maximum).",
            "default": 0
          },
          "priceCurrency": {
            "title": "Price filter currency",
            "enum": [
              "MXN",
              "USD"
            ],
            "type": "string",
            "description": "Currency used by the price filter (the site converts listings priced in the other currency).",
            "default": "MXN"
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms (recámaras)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 = any. 5 means 5 or more.",
            "default": 0
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 = any. 5 means 5 or more.",
            "default": 0
          },
          "areaMinM2": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no minimum.",
            "default": 0
          },
          "areaMaxM2": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no maximum.",
            "default": 0
          },
          "newDevelopmentsOnly": {
            "title": "New developments only",
            "type": "boolean",
            "description": "Return developer projects (desarrollos / preventa) instead of individual listings. Each project comes with its price-from, bedroom/bathroom ranges, construction status, developer and the unit types shown on the card.",
            "default": false
          },
          "postedWithinDays": {
            "title": "Published within",
            "enum": [
              "any",
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings published in the last day, week or month.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "`relevance` is the site default (promoted listings first). Use `newest` for monitoring pipelines.",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Direct URLs (optional)",
            "type": "array",
            "description": "Lamudi search result URLs (any page of lamudi.com.mx ending in /for-sale/ or /for-rent/, with or without filters) and/or listing URLs (/detalle/… or /desarrollo/…). When set, the filter fields above are ignored. Listing URLs are always fetched in full (billed as result + details).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many properties. Lamudi shows at most 5,000 results per search; bigger runs are split into price bands automatically (see below).",
            "default": 50
          },
          "fetchDetails": {
            "title": "Fetch detail pages (add-on)",
            "type": "boolean",
            "description": "Visit each listing page (1 extra request per property) to add: publication and update dates, the full photo gallery, the complete amenities list, maintenance fee, built vs land area, construction year, condition, floor, half bathrooms, the publisher's own headline and the agency profile link. Billed as an extra `property-details` event per property.",
            "default": false
          },
          "splitByPrice": {
            "title": "Split large searches by price",
            "type": "boolean",
            "description": "When a search has more than 5,000 results and you ask for more than that, run it as several price bands so you are not stuck at the site's 5,000-result limit. Listings without a published price are not reachable in split mode.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Lamudi rejects requests from cloud/datacenter IP ranges that look automated, so the Actor uses Apify Proxy by default. If the site still answers with its security-verification page, the Actor automatically switches to Mexican RESIDENTIAL proxy for the rest of the run (see the SUMMARY record for the tier used).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}