{
  "openapi": "3.0.1",
  "info": {
    "title": "Inmuebles24 Scraper - Mexico Real Estate Listings",
    "description": "Scrape Inmuebles24 (Mexico) real estate listings for sale or rent: price, m², rooms, GPS, photos, with optional full page (amenities, agency rating) and agency phone and email. Many searches per run, no 20,000 cap. JSON, CSV, Excel.",
    "version": "0.0",
    "x-build-id": "26NccXird9EnIOY8j"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~inmuebles24-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-inmuebles24-listings-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/nice_dev~inmuebles24-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-inmuebles24-listings-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/nice_dev~inmuebles24-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-inmuebles24-listings-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": {
          "startUrls": {
            "title": "Start URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "inmuebles24.com search-result URLs (operation, property type, place and price written in the URL are kept; pagination is automatic) or single listing URLs (`https://www.inmuebles24.com/propiedades/clasificado/...-151094498.html`). When this list is not empty, the search fields below (operation, property types, locations) are ignored; the filters, caps and monitoring still apply. Max 1 000 URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent",
              "temporary_rent",
              "transfer"
            ],
            "type": "string",
            "description": "Buy, rent, holiday / short-term rent, or lease transfer (traspaso).",
            "default": "sale"
          },
          "propertyTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "One search per type chosen (times each location). Empty = every type in one search.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "condo_house",
                "duplex",
                "shared_apartment",
                "land",
                "commercial_land",
                "industrial_land",
                "office",
                "commercial_space",
                "mall_space",
                "commercial_warehouse",
                "industrial_warehouse",
                "building",
                "house_commercial_use",
                "country_house",
                "ranch",
                "villa",
                "orchard",
                "urban_productive",
                "vertical_development",
                "horizontal_development",
                "mixed_development"
              ],
              "enumTitles": [
                "Apartment (departamento)",
                "House (casa)",
                "House in a gated community (casa en condominio)",
                "Duplex",
                "Shared apartment",
                "Land / lot (terreno)",
                "Commercial land",
                "Industrial land",
                "Office",
                "Retail space (local comercial)",
                "Space in a shopping centre",
                "Commercial warehouse (bodega)",
                "Industrial building (nave industrial)",
                "Whole building (edificio)",
                "House with commercial use",
                "Country house (quinta)",
                "Ranch (rancho)",
                "Villa",
                "Orchard (huerta)",
                "Urban productive property",
                "New development — vertical",
                "New development — horizontal",
                "New development — horizontal / vertical"
              ]
            },
            "default": []
          },
          "location": {
            "title": "Location",
            "maxLength": 200,
            "type": "string",
            "description": "A state, city, municipality or neighbourhood of Mexico, as typed on the site (e.g. `Polanco`, `Guadalajara`, `Quintana Roo`), its state after a comma if you like (`Monterrey, NL`). Inmuebles24 matches the first words to one of its places and searches any other word in the listings' text, which narrows the search; the run log says which place. Empty = all of Mexico."
          },
          "locations": {
            "title": "More locations",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several locations in one run: every property type is searched in every location (3 types × 4 locations = 12 searches, max 500). Added to **Location**.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "address": {
            "title": "Address contains",
            "maxLength": 200,
            "type": "string",
            "description": "Text searched in the listing address by the site (a street or a building name, e.g. `Lope de Vega`). Only the part before a comma is searched: put the neighbourhood in **Location**. Empty = no address filter."
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of listings to save for the whole run (after deduplication and filters). 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max listings per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH search (property type × location, or search URL), so that the first search cannot use up the whole **Max listings** budget. 0 = no per-search cap.",
            "default": 0
          },
          "splitLargeSearches": {
            "title": "Get every listing of large searches",
            "type": "boolean",
            "description": "Inmuebles24 serves at most about 20 000 listings per search. On: a larger search is cut into price ranges that each fit, so that nothing is left out (the very few listings without a price excepted). Off: the first 20 000 only.",
            "default": true
          },
          "extractDetails": {
            "title": "Extract details",
            "type": "boolean",
            "description": "Open each listing (1 extra request per listing) for the full description, the neighbourhood, the agency name, every photo, floor plans, 360° tours, amenities by category, floor, condition, maintenance fee, view count and advertiser code. Off = search-card fields only (description cut at 150 characters), much faster.",
            "default": false
          },
          "fetchContacts": {
            "title": "Agency phone & email",
            "type": "boolean",
            "description": "Add the phone number(s), WhatsApp number, email and contact name of the advertiser (1 extra request per listing, charged per listing that returns a phone or an email).",
            "default": false
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "In the currency below."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "In the currency below."
          },
          "currency": {
            "title": "Price currency",
            "enum": [
              "MXN",
              "USD"
            ],
            "type": "string",
            "description": "Currency of Min / Max price. Listings priced in the other currency are compared by the site.",
            "default": "MXN"
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many recámaras."
          },
          "maxBedrooms": {
            "title": "Max bedrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At most this many recámaras."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many full bathrooms."
          },
          "maxBathrooms": {
            "title": "Max bathrooms",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At most this many full bathrooms."
          },
          "minParking": {
            "title": "Min parking spaces",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At least this many parking spaces."
          },
          "maxParking": {
            "title": "Max parking spaces",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "At most this many parking spaces."
          },
          "minArea": {
            "title": "Min total area (m²)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Land / total surface."
          },
          "maxArea": {
            "title": "Max total area (m²)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Land / total surface."
          },
          "minCoveredArea": {
            "title": "Min built area (m²)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Built (covered) surface."
          },
          "maxCoveredArea": {
            "title": "Max built area (m²)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Built (covered) surface."
          },
          "minExpenses": {
            "title": "Min maintenance fee",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Monthly maintenance fee (mantenimiento), in pesos."
          },
          "maxExpenses": {
            "title": "Max maintenance fee",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Monthly maintenance fee (mantenimiento), in pesos."
          },
          "publicationDate": {
            "title": "Published within",
            "enum": [
              "any",
              "today",
              "since_yesterday",
              "last_week",
              "last_15_days",
              "last_30_days",
              "last_45_days"
            ],
            "type": "string",
            "description": "Only listings published in this period (the site's own filter; for any other period use **Posted after** below).",
            "default": "any"
          },
          "publisherType": {
            "title": "Advertiser",
            "enum": [
              "any",
              "private",
              "agency"
            ],
            "type": "string",
            "description": "Private owners (trato directo) or real-estate agencies only.",
            "default": "any"
          },
          "multimedia": {
            "title": "Must have",
            "enum": [
              "any",
              "video",
              "photos",
              "virtual_tour",
              "floor_plans"
            ],
            "type": "string",
            "description": "Only listings with this media (the site filters on one at a time).",
            "default": "any"
          },
          "projectStage": {
            "title": "New development stage",
            "enum": [
              "any",
              "presale",
              "ready"
            ],
            "type": "string",
            "description": "New developments only: pre-sale (preventa, not built yet) or ready to sell. Any = no filter.",
            "default": "any"
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "Only listings published on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month` (API: `24 hours` and full ISO date-times work too). Reads the publication date of the listing (`publishedAt`)."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "Only listings published on or before this date (the whole day is included), or older than a period such as `30 days`."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the listings whose title or description contains one of these WHOLE words (case and accents ignored): `venta` drops \"Casa en venta\" but keeps \"Preventa\". Several words in one entry (`remate bancario`) must appear together, in that order. Chinese, Japanese, Korean, Thai, Lao, Khmer and Burmese words are found anywhere in the text (no spaces there).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeKeywords": {
            "title": "Include keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only the listings whose title or description contains at least one of these words (case and accents ignored), e.g. `alberca`, `roof garden`. With **Extract details** off, only the first 150 characters of the description are read.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "propertyAge": {
            "title": "Property age",
            "enum": [
              "any",
              "under_construction",
              "brand_new",
              "up_to_5_years",
              "5_to_10_years",
              "10_to_20_years",
              "20_to_50_years",
              "over_50_years"
            ],
            "type": "string",
            "description": "Age of the building as given in the listing (applied by the Actor on the age the listing states; a listing that states none is dropped when set).",
            "default": "any"
          },
          "requirePhone": {
            "title": "Only listings with a phone",
            "type": "boolean",
            "description": "Drop the listings whose advertiser shows no phone number. Needs **Agency phone & email**.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Skip the listings that a previous run (same **Memory key**) already delivered: they are not saved and not charged, and their page is not even opened. First run = everything is new.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new listings**. Give each schedule / task its own key (e.g. `cdmx-rentals`) so that they do not share their memory. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every listing again. Untick it afterwards.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (included in the price) or your own proxies. Keep the default. The residential Apify proxy is not available in this Actor.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of requests processed in parallel.",
            "default": 4
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 10,
            "maximum": 2000,
            "type": "integer",
            "description": "Most requests to the site in any 60 seconds, all of them counted: results pages, listing pages and the extra page read for a listing. A budget, not an even pace: up to this many can leave at once when the minute starts (spread them with the minimum delay below). Lower it if the site answers HTTP 403 in the log.",
            "default": 180
          },
          "minRequestIntervalMs": {
            "title": "Min delay between requests",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Smallest gap between two requests, in milliseconds. Unlike the per-minute rate, this spreads the requests evenly instead of letting them go out in a burst. 0 = no gap.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per request before it is marked as failed. Behind a proxy, a request the site turns away is also retried on a new proxy session up to 10 times without using up these retries.",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Include debug messages in the run log.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}