{
  "openapi": "3.0.1",
  "info": {
    "title": "Propiedades.com Scraper: Mexico Real Estate Listings API",
    "description": "Propiedades.com scraper for casas, departamentos, terrenos, oficinas and naves en venta y renta across Mexico, plus bank-auction remates. Up to 10,000 listings per run with price in MXN or USD, m², recámaras, baños, map coordinates, photos and optional full descriptions.",
    "version": "0.1",
    "x-build-id": "c6EPfHXaaT98K1H5l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~propiedades-mx-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-propiedades-mx-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/automatic~propiedades-mx-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-propiedades-mx-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/automatic~propiedades-mx-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-propiedades-mx-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": "Places",
            "type": "array",
            "description": "Colonias, cities or states as you would type them in the site's search box, for example <code>polanco</code>, <code>Roma Norte</code>, <code>guadalajara</code>, <code>monterrey</code>, <code>queretaro</code> or <code>CDMX</code>. One search per place, up to 10. A place the site does not recognize is skipped (with the site's suggestions in the run summary) instead of searching somewhere else. Leave empty with no search URLs for a quick 20-listing sample from Ciudad de México.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Propiedades.com search URLs",
            "type": "array",
            "description": "Paste up to 10 search pages from propiedades.com with the filters you set on the site (several colonias, price, recámaras, baños, m², a feature such as alberca, sort order, remates). Every page keeps those filters. Example: <code>https://propiedades.com/polanco/departamentos-renta#precio-max=40000&recamaras=2</code>. Runs together with Places.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "renta"
            ],
            "type": "string",
            "description": "Used with Places. Pasted search URLs keep their own operation.",
            "default": "venta"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "departamentos",
              "casas",
              "casas-en-condominio",
              "terrenos-habitacionales",
              "cuartos",
              "ranchos",
              "desarrollos",
              "residencial",
              "oficinas",
              "locales",
              "bodegas-comerciales",
              "terrenos-comerciales",
              "edificios",
              "comercial",
              "bodegas-industriales",
              "terrenos-industriales",
              "naves-industriales",
              "industrial",
              "todos"
            ],
            "type": "string",
            "description": "Used with Places.",
            "default": "departamentos"
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Listings per run, up to 10,000 (default 100), shared equally between your searches; a search with fewer listings leaves the rest to the others. Listings are saved as they are found, so a run that hits its time limit keeps everything collected. Allow about 1 minute per 1,000 listings in the run timeout (about 8 minutes per 1,000 with full details)."
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Add each listing's complete description and its whole photo gallery at full size. Charged per listing on top of the listing price, and slower (about 8 minutes per 1,000 listings).",
            "default": false
          },
          "priceMin": {
            "title": "Minimum price (MXN)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in pesos, for example 3000000. Listings priced in dólares are compared at the site's own peso equivalent."
          },
          "priceMax": {
            "title": "Maximum price (MXN)",
            "minimum": 1,
            "type": "integer",
            "description": "Highest price in pesos, for example 5000000, or a monthly rent such as 25000."
          },
          "bedroomsMin": {
            "title": "Minimum recámaras",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Fewest bedrooms."
          },
          "bedroomsMax": {
            "title": "Maximum recámaras",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Most bedrooms."
          },
          "bathroomsMin": {
            "title": "Minimum baños",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Fewest bathrooms."
          },
          "bathroomsMax": {
            "title": "Maximum baños",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Most bathrooms."
          },
          "areaMinM2": {
            "title": "Minimum area (m²)",
            "minimum": 1,
            "type": "number",
            "description": "Smallest listed area in square metres."
          },
          "areaMaxM2": {
            "title": "Maximum area (m²)",
            "minimum": 1,
            "type": "number",
            "description": "Largest listed area in square metres."
          },
          "feature": {
            "title": "Must have",
            "enum": [
              "any",
              "pool",
              "garden",
              "terrace",
              "parking",
              "furnished",
              "pets-allowed",
              "fireplace",
              "laundry-area",
              "basement",
              "new-construction",
              "pre-owned"
            ],
            "type": "string",
            "description": "One feature, as the site's own search filter offers it.",
            "default": "any"
          },
          "bankAuctions": {
            "title": "Bank auctions (remates)",
            "enum": [
              "exclude",
              "only",
              "include"
            ],
            "type": "string",
            "description": "Remates bancarios are sales of repossessed homes, usually far below market price. Sales only.",
            "default": "exclude"
          },
          "sort": {
            "title": "Order",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "size-asc",
              "size-desc"
            ],
            "type": "string",
            "description": "The order listings are read in. With Maximum listings below the search's total, this decides which listings you get.",
            "default": "relevance"
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Result pages read per search (about 47 listings each). By default enough pages to reach Maximum listings."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}