{
  "openapi": "3.0.1",
  "info": {
    "title": "QuintoAndar Scraper: Brazil Property Data",
    "description": "Scrape QuintoAndar Brazil real estate (imóveis) without a browser. Type São Paulo, Rio or Pinheiros. Extract BRL and USD prices, price/m² vs neighbourhood, cheap/fair/expensive labels, rental yield, condo+IPTU burden, a MARKET_REPORT, and monitor mode. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "RT0OIcEtt1KIkw0wI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~quintoandar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-quintoandar-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/kareninatech~quintoandar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-quintoandar-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/kareninatech~quintoandar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-quintoandar-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": "Operation",
            "enum": [
              "alugar",
              "comprar"
            ],
            "type": "string",
            "description": "Rent (alugar) or sale (comprar).",
            "default": "alugar"
          },
          "property_type": {
            "title": "Property type",
            "enum": [
              "all",
              "Apartamento",
              "Casa",
              "StudioOuKitchenette",
              "CasaCondominio"
            ],
            "type": "string",
            "description": "Type of property. Choose All types to include apartments, houses, studios and condo houses.",
            "default": "all"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "A place name as you would type it: São Paulo, Rio de Janeiro, Belo Horizonte, Campinas… Or a neighbourhood such as Pinheiros or Copacabana (famous neighbourhoods are mapped to the right city). You can also type 'Pinheiros, São Paulo'. For every city QuintoAndar covers, type 'Brasil' (do not leave this field empty — an omitted value is filled with the default, São Paulo). QuintoAndar itself lists about 99 cities, mostly in the South and Southeast.",
            "default": "São Paulo"
          },
          "neighbourhood": {
            "title": "Neighbourhood",
            "type": "string",
            "description": "Optional. Restrict the search to one neighbourhood in the city above, for example Pinheiros or Copacabana."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Extra places to search in the same run. max_items is split between all searches.",
            "items": {
              "type": "string"
            }
          },
          "search_url": {
            "title": "QuintoAndar search URL (optional)",
            "type": "string",
            "description": "Paste a search page from quintoandar.com.br with your filters already set. When you use URLs, the filters above are ignored. Listing URLs (/imovel/ID) are also accepted."
          },
          "start_urls": {
            "title": "More search URLs",
            "type": "array",
            "description": "Optional extra search or listing URLs from the same site. Leave empty to use the filters above.",
            "items": {
              "type": "string"
            }
          },
          "min_price": {
            "title": "Min price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum rent (for alugar) or sale price (for comprar), in Brazilian reais."
          },
          "max_price": {
            "title": "Max price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum rent (for alugar) or sale price (for comprar), in Brazilian reais."
          },
          "min_m2": {
            "title": "Min area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum area in square metres, for example 50. Leave empty for no minimum."
          },
          "max_m2": {
            "title": "Max area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum area in square metres, for example 150. Leave empty for no maximum."
          },
          "min_bedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bedrooms, for example 2. Leave empty for no minimum."
          },
          "min_bathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of bathrooms, for example 1. Leave empty for no minimum."
          },
          "min_parking": {
            "title": "Min parking spaces",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Minimum number of parking spaces, for example 1. Leave empty for no minimum."
          },
          "furnished": {
            "title": "Furnished",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Only furnished or only unfurnished listings. Empty = both.",
            "default": ""
          },
          "pets": {
            "title": "Pets allowed",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Only listings that allow pets, when you choose Yes. Empty = both.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order used on the QuintoAndar search (and again on the saved rows).",
            "default": "relevance"
          },
          "max_items": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings to save (split between searches). The official search API returns up to 200 listings per request.",
            "default": 42
          },
          "max_pages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "Maximum API pages to fetch per search (200 listings each). Leave empty to decide automatically from max_items."
          },
          "compare_with_zone": {
            "title": "Compare price per m² with the neighbourhood",
            "type": "boolean",
            "description": "Add a neighbourhood (or city) median, the % vs that median, and a cheap/fair/expensive deal label.",
            "default": true
          },
          "min_zone_peers": {
            "title": "Min listings in a zone",
            "minimum": 3,
            "maximum": 50,
            "type": "integer",
            "description": "A neighbourhood or city needs at least this many comparable listings before it is used as the median.",
            "default": 5
          },
          "estimate_rental_yield": {
            "title": "Estimate rental yield",
            "type": "boolean",
            "description": "Compute annual gross yield. If a listing already has rent and a sale price, those are used. For sale listings without rent, the Actor samples rentals in the same neighbourhood.",
            "default": true
          },
          "yield_sample_pages": {
            "title": "Rent sample pages",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many rental API pages to read for sale searches (each has up to 200 rentals). 1 is enough for most runs.",
            "default": 1
          },
          "stale_days": {
            "title": "Stale after (days)",
            "minimum": 7,
            "maximum": 1000,
            "type": "integer",
            "description": "When fetch_details is on, listings this many days old (or older) are flagged as stale. Search cards do not include a publication date.",
            "default": 90
          },
          "fetch_details": {
            "title": "Fetch listing pages",
            "type": "boolean",
            "description": "Open each listing page to add the first and last publication dates, days on market, ZIP code, floor, construction year and condo name. Off by default because the search API already has prices, fees, area, photos and coordinates, and this option is slower.",
            "default": false
          },
          "include_description": {
            "title": "Include description",
            "type": "boolean",
            "description": "Save the short description from the search card (and the long text when fetch_details is on).",
            "default": true
          },
          "include_images": {
            "title": "Include image URLs",
            "type": "boolean",
            "description": "Save all photo URLs. Turn off for a smaller dataset (the main image is always saved).",
            "default": true
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Only save new and price-changed listings (and removed ones if you turn that on). Schedule the Actor to run regularly.",
            "default": false
          },
          "monitor_key": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name for this watch list (so different searches do not share history). Letters, numbers and hyphens."
          },
          "emit_removed": {
            "title": "Report removed listings",
            "type": "boolean",
            "description": "In monitor mode, also save listings that disappeared. Only works when the run covers the whole search.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Not needed today. If QuintoAndar starts blocking, use Apify Proxy (RESIDENTIAL, country BR)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}