{
  "openapi": "3.0.1",
  "info": {
    "title": "Economicos Scraper — Chile Real Estate & Vehicles",
    "description": "Scrape Economicos.cl, El Mercurio's classifieds: Chilean property listings (sale/rent) and used vehicles with price in CLP/UF, normalized CLP, m², rooms, comuna, broker and photos. From US$2 per 1,000 listings.",
    "version": "0.1",
    "x-build-id": "Bzc0lARJxmOxiFl5O"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~economicos-cl-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-economicos-cl-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/fabrikit~economicos-cl-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-economicos-cl-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/fabrikit~economicos-cl-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-economicos-cl-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": {
          "category": {
            "title": "Category",
            "enum": [
              "properties",
              "vehicles"
            ],
            "type": "string",
            "description": "`properties` = real estate (Propiedades, ~138,000 ads). `vehicles` = cars, pickups, motorcycles, trucks and more (Vehículos, ~21,000 ads). Each category is billed with its own result event.",
            "default": "properties"
          },
          "operation": {
            "title": "Operation (real estate)",
            "enum": [
              "sale",
              "rent",
              "any"
            ],
            "type": "string",
            "description": "`sale` = Venta, `rent` = Arriendo. `any` also returns \"wanted\" ads (Busco arriendo / Compro). Ignored for vehicles.",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "apartment",
              "furnished_apartment",
              "house",
              "furnished_house",
              "office",
              "retail",
              "land",
              "plot",
              "warehouse",
              "parking",
              "industrial",
              "business",
              "room",
              "hotel"
            ],
            "type": "string",
            "description": "Economicos.cl property category. Ignored for vehicles.",
            "default": "apartment"
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "any",
              "car",
              "pickup",
              "suv",
              "motorcycle",
              "van",
              "truck",
              "bus",
              "taxi",
              "heavy_machinery",
              "trailer_rv",
              "other"
            ],
            "type": "string",
            "description": "Economicos.cl vehicle category. Only used when Category = vehicles.",
            "default": "any"
          },
          "region": {
            "title": "Region",
            "enum": [
              "all",
              "rm",
              "valparaiso",
              "biobio",
              "coquimbo",
              "ohiggins",
              "maule",
              "araucania",
              "los_lagos",
              "los_rios",
              "antofagasta",
              "atacama",
              "tarapaca",
              "arica",
              "aysen",
              "magallanes"
            ],
            "type": "string",
            "description": "Chilean region. The site groups Ñuble under Biobío.",
            "default": "rm"
          },
          "comuna": {
            "title": "Comuna",
            "type": "string",
            "description": "Optional comuna inside the region, e.g. `Las Condes`, `Ñuñoa`, `Viña del Mar`, `Concepción`. Matched against the site's own comuna list for the region (accents optional); the run fails with the list of valid names if it can't be matched. With region `All of Chile` the Actor finds the region for you.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text search over titles and descriptions, e.g. `piscina`, `vista al mar`, `hilux`.",
            "default": ""
          },
          "priceMin": {
            "title": "Minimum price (CLP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in Chilean pesos. Listings published in UF or USD are matched on the site's own CLP conversion. 0 = no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum price (CLP)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in Chilean pesos (e.g. `150000000` for 150 million). 0 = no maximum.",
            "default": 0
          },
          "bedroomsMin": {
            "title": "Bedrooms from",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Minimum bedrooms (1–3; the site's filter tops out at 3). 0 = any. Real estate only.",
            "default": 0
          },
          "bedroomsMax": {
            "title": "Bedrooms up to",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "Maximum bedrooms (1–3, or 4 = four or more). 0 = any. Real estate only.",
            "default": 0
          },
          "make": {
            "title": "Vehicle make",
            "type": "string",
            "description": "Vehicles only: make as listed on the site, e.g. `Toyota`, `Chevrolet`, `Hyundai`, `Nissan`, `Suzuki`.",
            "default": ""
          },
          "yearMin": {
            "title": "Vehicle year from",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles only: minimum model year. 0 = any.",
            "default": 0
          },
          "yearMax": {
            "title": "Vehicle year up to",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles only: maximum model year. 0 = any.",
            "default": 0
          },
          "publishedWithin": {
            "title": "Published within",
            "enum": [
              "any",
              "7d",
              "1m",
              "3m",
              "6m",
              "1y"
            ],
            "type": "string",
            "description": "Only ads published in this time window. Results are always ordered newest first (the site's only order).",
            "default": "any"
          },
          "startUrls": {
            "title": "Direct URLs (optional)",
            "type": "array",
            "description": "Economicos.cl search URLs copied from your browser (e.g. `https://www.economicos.cl/rm/casa?operacion=Arriendo`) and/or single listing URLs (`.../propiedades/...-codXXXX.html`). When set, the filters above are ignored. Only real-estate and vehicle ads are returned.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Stop after this many listings. The site serves 40 ads per page, newest first.",
            "default": 50
          },
          "fetchDetails": {
            "title": "Fetch detail pages (add-on)",
            "type": "boolean",
            "description": "Open each listing's own page (1 extra request per ad) to add: built and total m², exact bedrooms/bathrooms, street/sector, full photo gallery, full description (phones and e-mails removed), exact publication time, broker/dealer name, and for vehicles make, model, fuel, transmission, condition and mileage. Charged as a `listing-details` event (US$1 per 1,000).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Economicos.cl answers plain requests from Apify's servers, so no proxy is needed. If the site ever returns 403, the Actor switches to Apify RESIDENTIAL proxies in Chile automatically.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}