{
  "openapi": "3.0.1",
  "info": {
    "title": "Properati Scraper — Peru, Colombia & Ecuador Real Estate",
    "description": "Scrape Properati listings in Peru, Colombia and Ecuador: price (PEN/COP/USD), m², bedrooms, bathrooms, district, city, GPS, agency, photos, publish date. Filter by sale/rent, type, location, price, area.",
    "version": "0.1",
    "x-build-id": "atTMV5KWb0PWXLGWv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~properati-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-properati-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~properati-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-properati-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~properati-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-properati-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": {
          "country": {
            "title": "Country",
            "enum": [
              "PE",
              "CO",
              "EC"
            ],
            "type": "string",
            "description": "Which Properati site to search: Peru (properati.com.pe), Colombia (properati.com.co) or Ecuador (properati.com.ec). Ignored when you use Direct URLs (the URL decides).",
            "default": "PE"
          },
          "operation": {
            "title": "Operation",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Listings for sale (venta) or for rent (alquiler / arriendo).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "any",
              "apartment",
              "house",
              "studio",
              "suite",
              "land",
              "commercial",
              "office",
              "warehouse",
              "parking",
              "farm",
              "ranch"
            ],
            "type": "string",
            "description": "Availability differs per country: `studio` (apartaestudio) exists only in Colombia, `suite` only in Ecuador, `warehouse` in Peru and Ecuador, `ranch` (hacienda) only in Peru. `land` = terrenos / lotes / campos.",
            "default": "apartment"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Region, city, district or neighbourhood as written on Properati — e.g. `Lima`, `Miraflores`, `Arequipa` (Peru); `Bogotá`, `Chapinero`, `Medellín` (Colombia); `Quito`, `Cumbaya`, `Guayaquil` (Ecuador). Add the city after a comma to disambiguate (`Miraflores, Lima`). Leave empty to search the whole country.",
            "default": ""
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound as a plain number in the site's local currency (soles in Peru, pesos in Colombia, dollars in Ecuador). 0 = no minimum. Rent prices are monthly.",
            "default": 0
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound (0 = no maximum).",
            "default": 0
          },
          "bedroomsMin": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 = any. 5 means 5 or more.",
            "default": 0
          },
          "bathroomsMin": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "0 = any. 5 means 5 or more.",
            "default": 0
          },
          "areaMinM2": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no minimum.",
            "default": 0
          },
          "areaMaxM2": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no maximum.",
            "default": 0
          },
          "postedWithinDays": {
            "title": "Published within",
            "enum": [
              "any",
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "Only listings published in the last day, week or month.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "area_desc",
              "area_asc"
            ],
            "type": "string",
            "description": "`relevance` is the site default. Use `newest` for monitoring pipelines.",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Direct URLs (optional)",
            "type": "array",
            "description": "Properati search result URLs (any page under /s/ on properati.com.pe, .com.co or .com.ec, with or without filters) and/or listing URLs (/detalle/… or /proyecto/…). You can mix countries. When set, the filter fields above are ignored. Listing URLs are always fetched in full (billed as result + details).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many properties. Properati shows at most 5,000 results per search; bigger runs are split into price bands automatically (see below).",
            "default": 50
          },
          "fetchDetails": {
            "title": "Fetch detail pages (add-on)",
            "type": "boolean",
            "description": "Visit each listing page (1 extra request per property) to add: full description, amenities list, maintenance fee, construction year, floor, half bathrooms, built / land / total area, Colombian estrato, exact GPS and the full photo gallery. Billed as an extra `property-details` event per property.",
            "default": false
          },
          "splitByPrice": {
            "title": "Split large searches by price",
            "type": "boolean",
            "description": "When a search has more than 5,000 results and you ask for more than that, run it as several price bands so you are not stuck at the site's 5,000-result limit. Listings without a published price are not reachable in split mode.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Properati rejects requests from cloud/datacenter IP ranges that look automated, so the Actor uses Apify Proxy by default. If the site still blocks, the Actor automatically switches to RESIDENTIAL proxy in the listing's country (PE/CO/EC) and steps back down when the cheaper proxy works again (see the SUMMARY record).",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}