{
  "openapi": "3.0.1",
  "info": {
    "title": "Portal Inmobiliario Scraper & Listing Alerts (Chile)",
    "description": "Search portalinmobiliario.com, Chile's biggest property portal: one row per listing for any operation (sale, rent), property type and comuna, with price in CLP/UF, previous price, bedrooms, bathrooms, area, location, seller and photo. Newest first, for new-listing and price-drop watches.",
    "version": "0.1",
    "x-build-id": "6h3ltcMfC4Fd9oKn8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/superslowsloth~portalinmobiliario/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-superslowsloth-portalinmobiliario",
        "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/superslowsloth~portalinmobiliario/runs": {
      "post": {
        "operationId": "runs-sync-superslowsloth-portalinmobiliario",
        "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/superslowsloth~portalinmobiliario/run-sync": {
      "post": {
        "operationId": "run-sync-superslowsloth-portalinmobiliario",
        "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": [
              "venta",
              "arriendo",
              "arriendo-de-temporada"
            ],
            "type": "string",
            "description": "What kind of listing to search: for sale (venta), long-term rent (arriendo) or holiday rent (arriendo de temporada). Applies to every location below, not to the start URLs.",
            "default": "venta"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "departamento",
              "casa",
              "oficina",
              "bodega",
              "estacionamiento",
              "comercial",
              "industrial",
              "agricola",
              "parcela",
              "sitio",
              "terreno-en-construccion",
              "loteo",
              "lotes-cementerio",
              "otros",
              "any"
            ],
            "type": "string",
            "description": "The kind of property, as the site's own Inmueble filter lists them. 'Any' searches every type. Applies to every location below, not to the start URLs.",
            "default": "departamento"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Where to search, one per line, written the way the site writes it in its address: a comuna followed by its region (las-condes-metropolitana, providencia-metropolitana, vina-del-mar-valparaiso), or just a region (metropolitana, valparaiso, biobio). Accents and spaces are fixed for you (Viña del Mar becomes vina-del-mar). Copy the slug from the address bar after choosing the place on the site. A slug the site does not know fails that search at no charge. Leave empty to search the whole country, or to search only the start URLs below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Any portalinmobiliario.com search URL copied from your browser's address bar, one per line, to use the site's filters: price range, bedrooms, new projects only, used only, official stores. Example: https://www.portalinmobiliario.com/venta/departamento/las-condes-metropolitana/2-dormitorios/_PriceRange_0CLF-5000CLF. The filters in the URL are kept; its paging and sort are replaced by this actor's own (unless Sort is 'As in the URL'). Only search pages on portalinmobiliario.com are accepted, not a single listing's page.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Read at most this many listings for each location and each URL. A page holds 48. The site serves only the first 2,000 or so results of any search, so a larger number reads to that limit; narrow the search with a smaller location or a filter to see the rest.",
            "default": 100
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "price-asc",
              "price-desc",
              "as-in-url"
            ],
            "type": "string",
            "description": "The order the site lists results in. 'Newest first' is the site's Más recientes and is the order to use for new-listing watches; it is not strictly by publication time (listings published today are interleaved with older ones on the first pages). 'Relevance' is the site's default order, which can be all new-build projects on a big sale search. 'As in the URL' keeps the sort of a start URL. The actor checks that the site really applied the sort asked for.",
            "default": "newest"
          },
          "includeSponsored": {
            "title": "Include sponsored listings",
            "type": "boolean",
            "description": "The site repeats a few paid placements, mostly new-build projects, above the first page of results. In the three pages measured each one was also among the normal results, so they are left out by default without losing a listing. Switch this on to return the paid copy at the top instead, flagged as sponsored. Either way each listing is returned and charged once.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy by default, which is what the site needs: it answers Apify datacenter addresses, and some residential exits, with a verification page instead of results (the actor retries those from a fresh address). Choose a different group, switch the proxy off or supply your own proxies and the actor uses exactly that and nothing else.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}