{
  "openapi": "3.0.1",
  "info": {
    "title": "Plusvalia Scraper - Ecuador Property Listings for Sale and Rent",
    "description": "Scrape Plusvalia, Ecuador's busiest property portal: USD price, m², bedrooms, GPS, agency and WhatsApp. Quito, Guayaquil, Cuenca, Cumbayá, sale and rent.",
    "version": "1.0",
    "x-build-id": "1h8UFes6RvwQmoOm3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~plusvalia-property-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-plusvalia-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~plusvalia-property-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-plusvalia-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~plusvalia-property-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-plusvalia-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": "🎯 Mode",
            "enum": [
              "search",
              "detail"
            ],
            "type": "string",
            "description": "Property Search reads Plusvalia search results. Property Detail opens the listing addresses you paste in the Listing URLs field.",
            "default": "search"
          },
          "dealType": {
            "title": "🏷️ Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Which side of the market to read. For rentals every price is the monthly rent in US dollars.",
            "default": "sale"
          },
          "propertyType": {
            "title": "🏠 Property type",
            "enum": [
              "all",
              "apartment",
              "house",
              "land",
              "office",
              "shop",
              "suite",
              "warehouse",
              "farm",
              "medical-office",
              "parking",
              "room",
              "project-vertical",
              "project-horizontal"
            ],
            "type": "string",
            "description": "Which kind of property. Apartments for sale in Quito is the largest single slice, with about 5,500 live listings.",
            "default": "apartment"
          },
          "location": {
            "title": "📍 Where",
            "enum": [
              "ecuador",
              "pichincha",
              "quito",
              "quito-norte",
              "quito-centro-norte",
              "quito-sur",
              "cumbaya",
              "tumbaco",
              "los-chillos",
              "conocoto",
              "nayon",
              "puembo",
              "calderon",
              "guayas",
              "guayaquil",
              "samborondon",
              "via-a-la-costa",
              "la-puntilla",
              "centro-de-guayaquil",
              "la-aurora",
              "daule",
              "playas",
              "azuay",
              "cuenca",
              "manabi",
              "manta",
              "montecristi",
              "portoviejo",
              "santa-elena-province",
              "salinas",
              "santa-elena",
              "tungurahua",
              "ambato",
              "imbabura",
              "ibarra",
              "cotacachi",
              "el-oro",
              "machala",
              "chimborazo",
              "riobamba",
              "loja-province",
              "loja",
              "santo-domingo-province",
              "santo-domingo",
              "esmeraldas",
              "cotopaxi",
              "los-rios"
            ],
            "type": "string",
            "description": "A neighbourhood, a city, a province or the whole country. Quito holds about 17,700 listings for sale. For a place not listed here, open it on plusvalia.com and paste the results address into Search page URLs.",
            "default": "quito"
          },
          "minPrice": {
            "title": "💵 Price from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price in US dollars; for rentals, the monthly rent. Plusvalia applies it itself, so the row count you pay for already reflects it. Leave empty for no floor."
          },
          "maxPrice": {
            "title": "💰 Price up to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in US dollars; for rentals, the monthly rent. Leave empty for no ceiling."
          },
          "minBedrooms": {
            "title": "🛏️ Bedrooms, at least",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Only properties with at least this many bedrooms. Leave empty to include every size, including land and offices that list none."
          },
          "sort": {
            "title": "↕️ Order",
            "enum": [
              "relevance",
              "newest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "The order results come back in. Newest first suits a daily or weekly monitor that stops early.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "🔢 Properties to collect",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "How many properties to return. Each request reads 30, so a run stops on the request that reaches this number.",
            "default": 100
          },
          "includeDetails": {
            "title": "📄 Open each listing in full",
            "type": "boolean",
            "description": "Also open every listing page for every photo in full size, the amenity list, the view count and the publication date. Billed as one Property Detail on top of the search row.",
            "default": false
          },
          "searchUrls": {
            "title": "🔗 Search page URLs",
            "type": "array",
            "description": "Paste Plusvalia results pages instead of using the fields above, for example https://www.plusvalia.com/venta/departamentos/pichincha/quito/cumbaya . Sale or rent, property type, place and bedroom count in the address are kept. An address carrying any other filter is refused before anything is charged, so you never pay for a wider search than the one you pasted. Ignored in Property Detail mode.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingUrls": {
            "title": "🔗 Listing URLs",
            "type": "array",
            "description": "Plusvalia listing addresses for Property Detail, one per line, for example https://www.plusvalia.com/propiedades/clasificado/alclcain-casa-en-alquiler-en-urbanizacion-camino-del-rio-151094678.html .",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}