{
  "openapi": "3.0.1",
  "info": {
    "title": "Chaves na Mão Scraper: Brazil Property Data",
    "description": "Scrape Chaves na Mão (chavesnamao.com.br) Brazil sale and rent listings without a browser. Type São Paulo or Pinheiros. Get BRL+USD prices, condomínio, IPTU, price/m² vs neighbourhood, deal labels, rental yield, days on market, nearby metro, and monitor mode.",
    "version": "0.1",
    "x-build-id": "xOrac7JEgZmeDyB6W"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kareninatech~chavesnamao-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kareninatech-chavesnamao-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~chavesnamao-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kareninatech-chavesnamao-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~chavesnamao-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kareninatech-chavesnamao-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": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "For sale (venda) or for rent (aluguel).",
            "default": "sale"
          },
          "property_type": {
            "title": "Property type",
            "enum": [
              "imoveis",
              "apartamentos",
              "casas",
              "casas-em-condominio",
              "coberturas",
              "kitnet",
              "flat",
              "loft",
              "terrenos",
              "terrenos-em-condominio",
              "chacaras",
              "fazendas",
              "sala-comercial",
              "casa-comercial",
              "ponto-comercial",
              "terreno-comercial",
              "galpao",
              "predio",
              "garagem"
            ],
            "type": "string",
            "description": "Type of property. All types includes apartments, houses, land, commercial and rural properties.",
            "default": "apartamentos"
          },
          "location": {
            "title": "Location",
            "type": "string",
            "description": "Type a place as you would say it: São Paulo, Curitiba, Rio de Janeiro… Add the state when a name exists in more than one state (Campinas, SP). You can also type a neighbourhood with its city (Pinheiros, São Paulo), a zone (Zona Sul, São Paulo), a state code (SC) or Brasil for the whole country. Do not leave this empty: an omitted value is filled with the default, São Paulo.",
            "default": "São Paulo"
          },
          "neighbourhood": {
            "title": "Neighbourhood",
            "type": "string",
            "description": "Optional. A neighbourhood or zone inside the city above, for example Moema, Batel or Zona Sul. If it is not found, the whole city is searched and the run log says so."
          },
          "locations": {
            "title": "More locations",
            "type": "array",
            "description": "Extra places to search in the same run (same format as Location). Max listings is shared between all searches.",
            "items": {
              "type": "string"
            }
          },
          "start_urls": {
            "title": "Chaves na Mão URLs (optional)",
            "type": "array",
            "description": "Paste search pages from chavesnamao.com.br with your filters already set (for example https://www.chavesnamao.com.br/apartamentos-a-venda/sp-sao-paulo/moema/), or listing pages (/imovel/.../id-123/). When you use URLs, the location and filter fields are ignored.",
            "items": {
              "type": "string"
            }
          },
          "min_price": {
            "title": "Min price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum sale price or monthly rent, in Brazilian reais."
          },
          "max_price": {
            "title": "Max price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum sale price or monthly rent, 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."
          },
          "pets": {
            "title": "Pet friendly only",
            "enum": [
              "",
              "yes"
            ],
            "type": "string",
            "description": "Only listings marked as pet friendly. Empty = all.",
            "default": ""
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Order of results. Newest first sorts the saved rows by listing date.",
            "default": "relevance"
          },
          "max_items": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum listings to save (shared between searches). The site shows 30 per page.",
            "default": 60
          },
          "max_pages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Optional cap on pages per search (30 listings each). Leave empty to decide from Max listings. The site serves at most 100 pages per search."
          },
          "split_large_searches": {
            "title": "Get more than 3,000 per search",
            "type": "boolean",
            "description": "Chaves na Mão serves at most 100 pages (3,000 listings) per search. When you ask for more, the Actor splits the search into price bands automatically. Listings without a price are skipped in split mode.",
            "default": true
          },
          "compare_with_zone": {
            "title": "Compare price per m² with the neighbourhood",
            "type": "boolean",
            "description": "Add the neighbourhood (or city) median price per m², the % difference 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 similar listings before its median is used.",
            "default": 5
          },
          "estimate_rental_yield": {
            "title": "Estimate rental yield (sale searches)",
            "type": "boolean",
            "description": "For sale listings, read a sample of rentals of the same type and place and estimate the annual gross yield.",
            "default": true
          },
          "yield_sample_pages": {
            "title": "Rent sample pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Rental pages (30 each) to read for the yield estimate. Leave empty for automatic (3 to 10 pages)."
          },
          "stale_days": {
            "title": "Stale after (days)",
            "minimum": 7,
            "maximum": 2000,
            "type": "integer",
            "description": "Listings online for this many days or more are flagged as stale.",
            "default": 90
          },
          "include_description": {
            "title": "Include description",
            "type": "boolean",
            "description": "Also save the full listing description text. Off by default because descriptions make each row larger.",
            "default": true
          },
          "include_images": {
            "title": "Include photo URLs",
            "type": "boolean",
            "description": "Save the photo URLs from the search card (up to 5). The main photo is always saved.",
            "default": true
          },
          "include_nearby": {
            "title": "Include nearby places",
            "type": "boolean",
            "description": "Distance in metres to the nearest metro station, bus stop, school, supermarket, pharmacy, hospital, park, mall, gym and restaurant (as shown by Chaves na Mão).",
            "default": true
          },
          "include_agency_phone": {
            "title": "Include agency phone",
            "type": "boolean",
            "description": "Save the public phone of real estate agencies (companies with CRECI). Phones of private sellers are never saved.",
            "default": true
          },
          "monitor_mode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Only save new and price-changed listings since the last run with the same monitor name. Schedule the Actor to get a daily or weekly delta.",
            "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 since the last run. Only works when the run reaches the end of the search.",
            "default": false
          },
          "request_delay_ms": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Pause between requests to be gentle with the site. The default works well.",
            "default": 700
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Not needed today. If the site 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}