{
  "openapi": "3.0.1",
  "info": {
    "title": "Portalinmobiliario Scraper",
    "description": "Apartments, houses, offices, land and new projects on Portal Inmobiliario Chile, with price in UF and pesos, price per m² vs area average, common expenses, amenities, GPS and nearby metro/schools. Search comunas by name, 19 filters, past the 2,000 limit, alerts on new listings and price changes.",
    "version": "1.0",
    "x-build-id": "454YHSeSFQT14JE0H"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~portalinmobiliario-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-portalinmobiliario-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/normdata~portalinmobiliario-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-portalinmobiliario-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/normdata~portalinmobiliario-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-portalinmobiliario-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Caps how many listings this run writes. 10 is a quick sample; clear it to collect every match."
          },
          "operation": {
            "title": "Buy or rent",
            "enum": [
              "venta",
              "arriendo",
              "arriendo-de-temporada"
            ],
            "type": "string",
            "description": "Listings for sale, for long term rent, or for seasonal (holiday) rent.",
            "default": "venta"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "",
              "departamento",
              "casa",
              "oficina",
              "comercial",
              "bodega",
              "estacionamiento",
              "industrial",
              "parcela",
              "sitio",
              "terreno-en-construccion",
              "agricola",
              "loteo",
              "lotes-cementerio",
              "otros"
            ],
            "type": "string",
            "description": "Apartments, houses, offices, commercial premises, warehouses, parking, industrial, plots, land, and more.",
            "default": ""
          },
          "modality": {
            "title": "Existing or new development",
            "enum": [
              "",
              "propiedades-usadas",
              "proyectos"
            ],
            "type": "string",
            "description": "Existing properties only, or new development projects only. Projects come with their unit models, units still available, delivery date, and builder.",
            "default": ""
          },
          "comunas": {
            "title": "Comunas",
            "type": "array",
            "description": "Comunas as you would write them, e.g. \"Las Condes\", \"Providencia\", \"Viña del Mar\", \"Puerto Varas\". Accents and capitals do not matter. Add the region after a comma when a name exists in two regions. An unknown name stops the run with suggestions.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Search whole regions (clear the prefilled Comunas example first). When Comunas are filled too, only those comunas are searched, and the region settles a comuna name that exists in two regions. Leave both empty to search all of Chile.",
            "items": {
              "type": "string",
              "enum": [
                "metropolitana",
                "valparaiso",
                "biobio",
                "los-lagos",
                "la-araucania",
                "coquimbo",
                "bernardo-ohiggins",
                "maule",
                "de-los-rios",
                "antofagasta",
                "nuble",
                "aysen",
                "tarapaca",
                "atacama",
                "magallanes-y-antartica-chilena",
                "arica-y-parinacota"
              ],
              "enumTitles": [
                "Santiago Metropolitan (RM)",
                "Valparaíso",
                "Biobío",
                "Los Lagos",
                "La Araucanía",
                "Coquimbo",
                "Libertador B. O'Higgins",
                "Maule",
                "Los Ríos",
                "Antofagasta",
                "Ñuble",
                "Aysén",
                "Tarapacá",
                "Atacama",
                "Magallanes",
                "Arica y Parinacota"
              ]
            }
          },
          "startUrls": {
            "title": "Portal Inmobiliario links",
            "type": "array",
            "description": "Optional. Paste search result links (any filters you set on the site are kept) or single listing links. When links are pasted, only the links are used and Comunas and Regions are ignored. The filters below apply to search links; single listing links are always returned in full. A listing link that no longer opens is reported in the NOT_FOUND record and never charged.",
            "items": {
              "type": "string"
            }
          },
          "priceCurrency": {
            "title": "Price filter currency",
            "enum": [
              "UF",
              "CLP"
            ],
            "type": "string",
            "description": "The currency of the price filter below. Listings in the other currency are converted with the day's UF rate, so both kinds are compared fairly.",
            "default": "UF"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price, in the currency chosen above (monthly rent when renting). New development projects are compared by their \"from\" price."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price, in the currency chosen above (monthly rent when renting)."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "array",
            "description": "Only these bedroom counts. Pick every count you want: for 2 bedrooms or more, pick 2, 3, and 4 or more. Leave empty for any.",
            "items": {
              "type": "string",
              "enum": [
                "sin-dormitorios",
                "1-dormitorio",
                "2-dormitorios",
                "3-dormitorios",
                "mas-de-4-dormitorios"
              ],
              "enumTitles": [
                "Studio (no bedroom)",
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms",
                "4 bedrooms or more"
              ]
            }
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4"
            ],
            "type": "string",
            "description": "Fewest bathrooms.",
            "default": ""
          },
          "minParking": {
            "title": "Minimum parking spaces",
            "enum": [
              "",
              "1",
              "2",
              "3"
            ],
            "type": "string",
            "description": "Fewest parking spaces included.",
            "default": ""
          },
          "minCoveredArea": {
            "title": "Minimum usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest usable (útil) area in square metres."
          },
          "maxCoveredArea": {
            "title": "Maximum usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest usable (útil) area in square metres."
          },
          "minTotalArea": {
            "title": "Minimum total area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest total area in square metres, terraces and land included."
          },
          "maxTotalArea": {
            "title": "Maximum total area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest total area in square metres."
          },
          "maxAgeYears": {
            "title": "Maximum building age",
            "enum": [
              "",
              "0",
              "5",
              "10",
              "15",
              "20",
              "30"
            ],
            "type": "string",
            "description": "How old the building may be. New development projects count as brand new.",
            "default": ""
          },
          "maxMaintenanceFee": {
            "title": "Maximum common expenses (CLP)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest monthly common expenses (gastos comunes) in pesos. Listings that do not state them are left out when this is set."
          },
          "amenities": {
            "title": "Must have",
            "type": "array",
            "description": "Every amenity chosen must be present, e.g. swimming pool, gym, lift, concierge, pets allowed, furnished.",
            "items": {
              "type": "string",
              "enum": [
                "POOL",
                "GYM",
                "LIFT",
                "TERRACE",
                "BALCONY",
                "GUEST_PARKING",
                "CONCIERGE",
                "GATED_COMMUNITY",
                "PETS_ALLOWED",
                "FURNISHED",
                "AIR_CONDITIONING",
                "HEATING",
                "BARBECUE",
                "GARDEN",
                "PATIO",
                "PLAYGROUND",
                "MULTIPURPOSE_ROOM",
                "EN_SUITE",
                "WALK_IN_CLOSET",
                "GUEST_BATHROOM",
                "SERVICE_ROOM",
                "HOME_OFFICE",
                "JACUZZI",
                "LAUNDRY",
                "ALARM",
                "WHEELCHAIR_ACCESS",
                "POWER_GENERATOR",
                "SOLAR_POWER",
                "INTERNET"
              ],
              "enumTitles": [
                "Swimming pool (piscina)",
                "Gym (gimnasio)",
                "Lift (ascensor)",
                "Terrace (terraza)",
                "Balcony (balcón)",
                "Guest parking (estacionamiento de visitas)",
                "Concierge (conserjería, recepción)",
                "Gated community (en condominio cerrado, condominio cerrado)",
                "Pets allowed (admite mascotas)",
                "Furnished (amoblado)",
                "Air conditioning (aire acondicionado)",
                "Heating (calefacción, caldera)",
                "Barbecue area (quincho, parrilla)",
                "Garden or green area (jardín, con área verde)",
                "Patio (patio)",
                "Playground (área de juegos infantiles, parque infantil)",
                "Multipurpose room (salón de usos múltiples)",
                "En suite bedroom (dormitorio en suite)",
                "Walk-in closet (walk-in clóset)",
                "Guest bathroom (baño de visitas)",
                "Service bedroom and bathroom (dormitorio y baño de servicio)",
                "Home office or cowork (homeoffice, cowork)",
                "Jacuzzi (jacuzzi)",
                "Laundry room (lavandería, con logia)",
                "Alarm or automatic gate (alarma, portón automático)",
                "Wheelchair ramp (rampa para silla de ruedas)",
                "Power generator (generador eléctrico)",
                "Solar power (con energia solar, con energía solar)",
                "Internet access (acceso a internet)"
              ]
            }
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "",
              "profesional",
              "particular"
            ],
            "type": "string",
            "description": "Agencies and developers come with their name, logo, store link, and property code. Private sellers are listed without any personal details.",
            "default": ""
          },
          "officialStoresOnly": {
            "title": "Official stores only",
            "type": "boolean",
            "description": "Only listings from the site's verified official stores of agencies and developers.",
            "default": false
          },
          "alertMode": {
            "title": "What to return",
            "enum": [
              "all",
              "new",
              "newOrPriceChanged"
            ],
            "type": "string",
            "description": "Every match, or only what changed since the last run of this same search: new listings, or new listings plus price changes with the price before. The first run returns matches and sets the starting point.",
            "default": "all"
          },
          "detailLevel": {
            "title": "Detail level",
            "enum": [
              "full",
              "fast"
            ],
            "type": "string",
            "description": "Full detail opens every listing for all fields. Fast returns the search result fields only (price in UF and pesos, bedrooms, bathrooms, areas, address, project info, photo, and link) and is many times quicker for large market pulls. The bathroom, parking, area, age, common expenses, and amenity filters need full detail.",
            "default": "full"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}