{
  "openapi": "3.0.1",
  "info": {
    "title": "Enlace Inmobiliario Property Scraper",
    "description": "Scrape new housing projects across Chile from enlaceinmobiliario.cl: developer, comuna, UF and CLP prices, and every unit model with m², bedrooms and baths.",
    "version": "1.0",
    "x-build-id": "AmgpmcVFLLglGmlkR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~enlaceinmobiliario-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-enlaceinmobiliario-property-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/sian.agency~enlaceinmobiliario-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-enlaceinmobiliario-property-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/sian.agency~enlaceinmobiliario-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-enlaceinmobiliario-property-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search"
            ],
            "type": "string",
            "description": "The search returns new housing projects (proyectos inmobiliarios) published on Enlace Inmobiliario for the whole of Chile, one or more regions, or a list of comunas, with optional filters for property type, bedrooms, bathrooms, UF price, size, delivery type and housing subsidy. Each project row carries every unit model the developer listed, so one row tells you what is for sale in the building and at what price.",
            "default": "search"
          },
          "regions": {
            "title": "🗺️ Regions",
            "uniqueItems": true,
            "type": "array",
            "description": "Chilean regions to search. Pick one or more; leave the list empty to search the whole country. Enlace Inmobiliario lists about 1,240 new projects nationally, 517 of them in the Región Metropolitana and about 140 each in Biobío and Valparaíso.",
            "items": {
              "type": "string",
              "enum": [
                "arica-parinacota",
                "tarapaca",
                "antofagasta",
                "atacama",
                "coquimbo",
                "valparaiso",
                "metropolitana",
                "ohiggins",
                "maule",
                "nuble",
                "biobio",
                "araucania",
                "los-rios",
                "los-lagos",
                "aysen",
                "magallanes"
              ],
              "enumTitles": [
                "Arica y Parinacota",
                "Tarapacá",
                "Antofagasta",
                "Atacama",
                "Coquimbo",
                "Valparaíso",
                "Región Metropolitana",
                "O'Higgins",
                "Maule",
                "Ñuble",
                "Biobío",
                "La Araucanía",
                "Los Ríos",
                "Los Lagos",
                "Aysén",
                "Magallanes"
              ]
            }
          },
          "comunas": {
            "title": "📍 Comunas",
            "type": "array",
            "description": "Comuna names, one per line, for example Ñuñoa, La Florida, Concepción, Viña del Mar. Accents and capitals are optional. A comuna that cannot be matched stops the run before anything is charged, so a typo never widens the search to a whole region.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "🏠 Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these property types. Leave empty for all. Most new projects are apartments (departamentos) or houses (casas); a few are offices or lots.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "office",
                "lot",
                "land",
                "commercial",
                "parcela",
                "storage",
                "parking"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Office",
                "Lot",
                "Land",
                "Commercial premises",
                "Country plot (parcela)",
                "Storage unit",
                "Parking space"
              ]
            }
          },
          "bedrooms": {
            "title": "🛏️ Bedrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep projects that offer at least one unit model with this many bedrooms. Pick several to widen the match, for example 2 and 3.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms",
                "4 bedrooms",
                "5 bedrooms"
              ]
            }
          },
          "bathrooms": {
            "title": "🛁 Bathrooms",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep projects that offer at least one unit model with this many bathrooms.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "1 bathroom",
                "2 bathrooms",
                "3 bathrooms",
                "4 bathrooms"
              ]
            }
          },
          "minPriceUf": {
            "title": "💵 Min price (UF)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price to include, in Unidades de Fomento (UF). Leave empty for no lower bound."
          },
          "maxPriceUf": {
            "title": "💵 Max price (UF)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price to include, in UF. Leave empty for no upper bound. For example 3000 keeps projects with a unit at or under 3,000 UF."
          },
          "minAreaM2": {
            "title": "📐 Min size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest unit size to include, in square metres. Leave empty for no lower bound."
          },
          "maxAreaM2": {
            "title": "📐 Max size (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest unit size to include, in square metres. Leave empty for no upper bound."
          },
          "delivery": {
            "title": "🔑 Delivery",
            "enum": [
              "any",
              "immediate",
              "future"
            ],
            "type": "string",
            "description": "Ready-to-move-in projects, off-plan projects, or both.",
            "default": "any"
          },
          "subsidies": {
            "title": "🏛️ Housing subsidy",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep projects that accept one of these state housing subsidies (DS19 or a DS1 tramo). Leave empty to ignore subsidies.",
            "items": {
              "type": "string",
              "enum": [
                "ds19",
                "ds1-tramo-2",
                "ds1-tramo-3",
                "ds1-tramo-4",
                "ds1-3000-uf"
              ],
              "enumTitles": [
                "DS19",
                "DS1 Tramo 2",
                "DS1 Tramo 3",
                "DS1 Tramo 4",
                "DS1 up to 3,000 UF"
              ]
            }
          },
          "maxResults": {
            "title": "🔢 Max projects",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many projects. The whole of Chile is about 1,240 projects, so 1,500 covers everything in one run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}