{
  "openapi": "3.0.1",
  "info": {
    "title": "Portal Inmobiliario Scraper - Chile Property Listings",
    "description": "Property listings from Portal Inmobiliario (Chile) as clean JSON: price in UF or CLP, bedrooms, bathrooms, m², address, agency, new-project ranges. Search by commune, region or pasted URL. Monitoring mode returns only new listings, so you never pay twice for the same property. Unofficial.",
    "version": "0.1",
    "x-build-id": "tXvy5KUP6Old0PL2f"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~portal-inmobiliario-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-portal-inmobiliario-listings",
        "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/neverempty~portal-inmobiliario-listings/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-portal-inmobiliario-listings",
        "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/neverempty~portal-inmobiliario-listings/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-portal-inmobiliario-listings",
        "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": {
          "searchUrls": {
            "title": "Portal Inmobiliario search URLs (optional)",
            "type": "array",
            "description": "Paste one or more results pages from www.portalinmobiliario.com, e.g. https://www.portalinmobiliario.com/venta/departamento/las-condes-metropolitana . Filters and sort set on the site stay in the address. When this list is filled, the operation, property type, stage and location fields below are ignored.",
            "items": {
              "type": "string"
            }
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent",
              "vacation-rent"
            ],
            "type": "string",
            "description": "For sale (venta), for rent (arriendo) or holiday rental (arriendo de temporada). Empty means for sale."
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "apartment",
              "house",
              "office",
              "commercial",
              "warehouse",
              "industrial",
              "parking",
              "land",
              "lot",
              "rural-plot",
              "agricultural",
              "subdivision",
              "other"
            ],
            "type": "string",
            "description": "The Portal Inmobiliario category to search. Empty searches every property type."
          },
          "listingStage": {
            "title": "Used or new projects",
            "enum": [
              "",
              "used",
              "new-projects"
            ],
            "type": "string",
            "description": "used = resale properties only (propiedades usadas); new-projects = new developments sold off the plan or recently built (proyectos), with their price and size ranges. Empty = both."
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Commune and region, or a region alone: Las Condes, Metropolitana / Providencia, Metropolitana / Viña del Mar, Valparaíso / Concepción, Biobío / Metropolitana. Accents, spaces and RM for the Metropolitan Region are fine. One search runs per location. Empty searches the whole of Chile. A place Portal Inmobiliario does not know comes back as a free no-such-search row, never as listings from somewhere else.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "Order in which Portal Inmobiliario lists the results. Empty = the site's relevance order. Monitoring mode uses lowest price first unless you choose another order."
          },
          "maxListings": {
            "title": "Maximum listings to return",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many listing rows to return across all searches. You are charged only for the listing rows you receive, plus one small start fee per run. Portal Inmobiliario shows 48 listings per page.",
            "default": 50
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 0,
            "maximum": 42,
            "type": "integer",
            "description": "Cap on result pages read for each search (48 listings per page, up to 42 pages, so about 2,000 listings per search). 0 = read as many pages as needed to reach the maximum listings. For bigger areas, split the search by commune, property type or price range.",
            "default": 0
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only listings whose title, headline, property type, address, agency, delivery date or promotion text contains these words (not case-sensitive), e.g. piscina or metro. Empty = no keyword filter.",
            "items": {
              "type": "string"
            }
          },
          "keywordMatch": {
            "title": "Keyword match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = a listing needs one of the keywords; all = it needs every keyword.",
            "default": "any"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop listings whose text contains any of these words, e.g. remate or subsidio. Empty = nothing is excluded.",
            "items": {
              "type": "string"
            }
          },
          "agencyNames": {
            "title": "Agency or developer names",
            "type": "array",
            "description": "Keep only listings published by these real-estate agencies or developers (part of the name is enough). Only listings where Portal Inmobiliario shows the seller's name can match. Empty = every seller.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price, in the currency chosen below (UF for sale and CLP for rent when it is empty). Sent to Portal Inmobiliario and checked again on every row. Listings priced in the other currency are kept. 0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price, in the same currency as the minimum. 0 = no maximum.",
            "default": 0
          },
          "priceCurrency": {
            "title": "Price currency",
            "enum": [
              "",
              "UF",
              "CLP"
            ],
            "type": "string",
            "description": "Currency of the price range. UF (Unidad de Fomento, shown as CLF in the rows) or Chilean pesos (CLP). Empty = UF for sale, CLP for rent."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": -1,
            "type": "integer",
            "description": "Keep listings with at least this many bedrooms (dormitorios). For new projects the largest unit counts. -1 = no filter. Listings that do not show a bedroom count are kept.",
            "default": -1
          },
          "maxBedrooms": {
            "title": "Maximum bedrooms",
            "minimum": -1,
            "type": "integer",
            "description": "Keep listings with at most this many bedrooms. For new projects the smallest unit counts. -1 = no filter.",
            "default": -1
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings with at least this many bathrooms (baños). 0 = no filter. Listings that do not show bathrooms are kept.",
            "default": 0
          },
          "minAreaSqm": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings with at least this many square metres (built area, else total area, else land area; hectares are converted). 0 = no filter.",
            "default": 0
          },
          "maxAreaSqm": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings with at most this many square metres, measured the same way. 0 = no filter.",
            "default": 0
          },
          "excludeDevelopments": {
            "title": "Exclude new projects",
            "type": "boolean",
            "description": "Drop new-development projects (proyectos) and keep single properties only.",
            "default": false
          },
          "onlyDevelopments": {
            "title": "Only new projects",
            "type": "boolean",
            "description": "Keep only new-development projects, with their price range, size range, unit count and delivery date.",
            "default": false
          },
          "onlyOfficialStores": {
            "title": "Only verified agencies",
            "type": "boolean",
            "description": "Keep only listings from agencies and developers that Portal Inmobiliario marks with its official badge.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (only new listings)",
            "type": "boolean",
            "description": "Turn this on and schedule the Actor. The first run remembers every listing the search shows and is free. Each later run returns only listings it has not seen before, so you are never charged twice for the same property; a later run with nothing new costs only the small start fee. Listings removed by your filters are remembered too; listings that did not fit under the maximum listings or your spending limit are not, so they come back on the next run.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Reset monitoring memory",
            "type": "boolean",
            "description": "One-shot: forget every listing remembered for this exact input. With monitoring on, this run becomes a new free first run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}