{
  "openapi": "3.0.1",
  "info": {
    "title": "Portal Inmobiliario Scraper: Chile Real Estate & UF Prices",
    "description": "Propiedades en Chile from Portal Inmobiliario: departamentos, casas and parcelas for sale or rent, up to 2,000 per search. UF or peso prices plus UF per m², bedrooms, baths, m² útiles, comuna and advertiser. Filter by price, rooms, parking, area or owner, or paste any search URL.",
    "version": "0.3",
    "x-build-id": "IxdC8bnDd6J75yLv7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~portal-inmobiliario-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-portal-inmobiliario-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~portal-inmobiliario-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-portal-inmobiliario-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~portal-inmobiliario-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-portal-inmobiliario-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": "Search URLs (optional)",
            "type": "array",
            "description": "Paste one or more search pages from www.portalinmobiliario.com, with any filters you set in the browser (comuna, price range in UF or pesos, bedrooms, surface, sort order). When given, these searches run instead of the type, operation, region and comuna fields below, and the filter fields below must stay empty; Maximum pages and Maximum results apply to each URL. Leave empty to use the fields below.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "departamento",
              "casa",
              "parcela",
              "terreno",
              "oficina",
              "sitio",
              "local",
              "agricola",
              "industrial",
              "bodega",
              "otros",
              "estacionamiento",
              "loteo"
            ],
            "type": "string",
            "description": "Property type to search.",
            "default": "departamento"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "venta",
              "arriendo"
            ],
            "type": "string",
            "description": "Sale or rental search.",
            "default": "venta"
          },
          "region": {
            "title": "Region",
            "enum": [
              "",
              "metropolitana",
              "valparaiso",
              "biobio",
              "coquimbo",
              "la-araucania",
              "los-lagos",
              "bernardo-ohiggins",
              "antofagasta",
              "maule",
              "de-los-rios",
              "nuble",
              "tarapaca",
              "atacama",
              "arica-y-parinacota",
              "aysen",
              "magallanes-y-antartica-chilena"
            ],
            "type": "string",
            "description": "Optional region to scope the search. Empty searches all of Chile.",
            "default": ""
          },
          "comuna": {
            "title": "Comuna",
            "type": "string",
            "description": "Optional comuna inside the region, e.g. 'Las Condes', 'Providencia', 'Ñuñoa', 'Viña del Mar', 'Concepción'. Requires a region. If Portal Inmobiliario does not recognise the comuna, the run ends with no listings and says so, instead of returning listings from elsewhere.",
            "default": ""
          },
          "maxPages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 42,
            "type": "integer",
            "description": "Search-result pages per search, 1 to 42 (48 listings per page). Leave empty to fetch as many pages as Maximum results needs."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Listings per search, 1 to 2,000 (Portal Inmobiliario shows at most 2,000 results per search). The default 20 is a quick sample. Listings are saved page by page, so a run that stops early keeps everything collected. Big runs: about a minute per 500 listings (2,000 took 4.5 minutes in tests).",
            "default": 20
          },
          "requestDelaySecs": {
            "title": "Delay between page requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Minimum 1 second between fetches.",
            "default": 1
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional lower price bound, in Price currency. Portal Inmobiliario converts between UF and pesos itself, so a UF range also finds listings priced in pesos."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Optional upper price bound, in Price currency. Must be at least the minimum."
          },
          "priceCurrency": {
            "title": "Price currency",
            "enum": [
              "UF",
              "CLP",
              "USD"
            ],
            "type": "string",
            "description": "Currency of the price bounds. Empty: UF for sales, pesos for rentals."
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum number of bedrooms (dormitorios). 0 includes studios (monoambientes)."
          },
          "bedroomsMax": {
            "title": "Maximum bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum number of bedrooms."
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional minimum number of bathrooms (baños)."
          },
          "bathroomsMax": {
            "title": "Maximum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Optional maximum number of bathrooms."
          },
          "parkingsMin": {
            "title": "Minimum parking spaces",
            "minimum": 1,
            "type": "integer",
            "description": "Optional minimum number of parking spaces (estacionamientos)."
          },
          "areaMinM2": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum surface in m², on the basis chosen below."
          },
          "areaMaxM2": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum surface in m²."
          },
          "areaBasis": {
            "title": "Surface basis",
            "enum": [
              "covered",
              "total"
            ],
            "type": "string",
            "description": "Which surface the m² bounds use: usable (útil, the usual figure for apartments) or total.",
            "default": "covered"
          },
          "publisherType": {
            "title": "Published by",
            "enum": [
              "",
              "agency",
              "owner"
            ],
            "type": "string",
            "description": "Optional: only listings from agencies and developers, or only from private owners.",
            "default": ""
          },
          "publishedToday": {
            "title": "Published today only",
            "type": "boolean",
            "description": "Only listings published today (Publicados hoy). Useful for a daily new-listings feed.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy. Defaults to Chile when Apify Proxy is used."
          },
          "apifyProxyGroups": {
            "title": "Apify proxy groups (advanced)",
            "type": "array",
            "description": "Optional platform proxy groups.",
            "items": {
              "type": "string"
            }
          },
          "apifyProxyCountry": {
            "title": "Apify proxy country (advanced)",
            "type": "string",
            "description": "Optional two-letter country override. Defaults to CL."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}