{
  "openapi": "3.0.1",
  "info": {
    "title": "ZAP Imóveis Scraper - Brazil Real Estate Data",
    "description": "Scrape ZAP Imoveis (Brazil) property listings, sale or rental. One row per property: price, condo fee, IPTU, area, bedrooms, bathrooms, parking, amenities, full address with lat/lon, advertiser and photos. Search by city or paste ZAP URLs. JSON/CSV out.",
    "version": "0.1",
    "x-build-id": "kqHtWcPPjzIQJGu3z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~zapimoveis-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-zapimoveis-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/memo23~zapimoveis-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-zapimoveis-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/memo23~zapimoveis-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-zapimoveis-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": {
          "searchLocations": {
            "title": "Locations to search",
            "type": "array",
            "description": "City or neighbourhood names, e.g. `São Paulo`, `Rio de Janeiro`, `Copacabana`, `Belo Horizonte`. Each is resolved through ZAP's own location autocomplete, then combined with the filters below.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (UF or name)",
            "type": "array",
            "description": "Optional Brazilian state acronyms or names (e.g. `SP`, `RJ`, `PR`, `Bahia`). Used when `searchLocations` is empty — either alone for state-wide searches or combined with `cities` / `neighborhoods`.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Optional city names (e.g. `Curitiba`, `Campinas`). Used when `searchLocations` is empty; combined with `states` when a single state is set.",
            "items": {
              "type": "string"
            }
          },
          "neighborhoods": {
            "title": "Neighbourhoods",
            "type": "array",
            "description": "Optional neighbourhood names (e.g. `Moema`, `Copacabana`, `Batel`). Used when `searchLocations` is empty; combined with `cities` / `states`.",
            "items": {
              "type": "string"
            }
          },
          "business": {
            "title": "Business",
            "enum": [
              "SALE",
              "RENTAL"
            ],
            "type": "string",
            "description": "Sale (venda) or rental (aluguel) — applies to the location searches above.",
            "default": "SALE"
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "USED",
              "DEVELOPMENT",
              "ALL"
            ],
            "type": "string",
            "description": "Filter location searches by resale (`USED`), new developments / launches (`DEVELOPMENT`), or both (`ALL`). Default `USED`.",
            "default": "USED"
          },
          "unitTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Filter the location searches by property type. Leave empty for all types. \"Land / lot (all)\" and \"Commercial (all)\" cover every land or commercial sub-type; pick a specific type below them to narrow further.",
            "items": {
              "type": "string",
              "enum": [
                "APARTMENT",
                "HOME",
                "CONDOMINIUM",
                "ALLOTMENT_LAND",
                "COMMERCIAL_PROPERTY",
                "FARM",
                "STUDIO",
                "KITNET",
                "PENTHOUSE",
                "FLAT",
                "LOFT",
                "TWO_STORY_HOUSE",
                "VILLAGE_HOUSE",
                "RESIDENTIAL_ALLOTMENT_LAND",
                "COMMERCIAL_ALLOTMENT_LAND",
                "BUSINESS",
                "OFFICE",
                "FLOOR",
                "HOTEL",
                "COMMERCIAL_BUILDING",
                "SHED_DEPOSIT_WAREHOUSE",
                "PARKING_SPACE"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "House in condominium",
                "Land / lot (all)",
                "Commercial (all)",
                "Farm / ranch / country house",
                "Studio",
                "Kitnet",
                "Penthouse (cobertura)",
                "Flat",
                "Loft",
                "Two-storey house (sobrado)",
                "Village house (casa de vila)",
                "Residential land / lot / condominium lot",
                "Commercial land / lot",
                "Shop / hall / retail point",
                "Office / commercial room",
                "Corporate floor",
                "Hotel / motel / inn",
                "Whole building",
                "Warehouse / shed / depot",
                "Garage / parking space"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in reais for the location searches."
          },
          "maxPrice": {
            "title": "Max price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in reais for the location searches."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bedrooms for the location searches."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of bathrooms for the location searches."
          },
          "minParkingSpaces": {
            "title": "Min parking spaces",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum number of parking spaces (vagas) for the location searches."
          },
          "minArea": {
            "title": "Min usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum usable area in m² for the location searches."
          },
          "maxArea": {
            "title": "Max usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum usable area in m² for the location searches."
          },
          "minCondoFee": {
            "title": "Min monthly condo fee (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum monthly condo fee (condomínio) in reais."
          },
          "maxCondoFee": {
            "title": "Max monthly condo fee (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum monthly condo fee (condomínio) in reais."
          },
          "amenities": {
            "title": "Amenities (ANDed)",
            "type": "array",
            "description": "Required amenities for location searches (all listed must match). Accepts ZAP keys (`FURNISHED`, `POOL`, `ELEVATOR`, `PETS_ALLOWED`, `AIR_CONDITIONING`, `BARBECUE_GRILL`, `BALCONY`, `GYM`, `GATED_COMMUNITY`, `CONCIERGE_24H`) or Portuguese names (`Mobiliado`, `Piscina`, `Elevador`).",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "RELEVANCE",
              "PRICE_ASC",
              "PRICE_DESC",
              "NEWEST",
              "UPDATED_DESC",
              "AREA_ASC",
              "AREA_DESC"
            ],
            "type": "string",
            "description": "Server-side ordering for search results.",
            "default": "RELEVANCE"
          },
          "startUrls": {
            "title": "ZAP URLs (search or property)",
            "type": "array",
            "description": "Paste ZAP Imoveis URLs — search-result pages (`https://www.zapimoveis.com.br/venda/apartamentos/sp+sao-paulo/`) and/or property-detail pages (`https://www.zapimoveis.com.br/imovel/...-id-2878107686/`). Auto-classified.",
            "items": {
              "type": "string"
            }
          },
          "scrapeDetails": {
            "title": "Scrape property detail pages",
            "type": "boolean",
            "description": "For pasted property-detail URLs, parse the page's structured data. Search results already return ~40 fields per property, so you rarely need this. Default off.",
            "default": false
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on rows across the entire run. Each row is one paid `property` event. Default 1000. Free-tier users are additionally capped at 100.",
            "default": 1000
          },
          "maxItemsPerSearch": {
            "title": "Max properties per location",
            "minimum": 1,
            "type": "integer",
            "description": "Cap per location / search URL. Default 1000.",
            "default": 1000
          },
          "maxPages": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of search result pages to fetch per location/type slice (1–100). Default 100.",
            "default": 100
          },
          "pageSize": {
            "title": "Results per page",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Listings requested per API page (1–30). Default 24.",
            "default": 24
          },
          "maxConcurrency": {
            "title": "Max parallel requests",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Parallel HTTP requests. Default 6.",
            "default": 6
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "How many times a failed request is retried. Default 12.",
            "default": 12
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Emit a leaner row containing core identity, pricing, rooms, area, geo-coordinates, advertiser name/license, and dates — dropping long descriptions, image URLs, amenities, and secondary metadata.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Omit fields whose value is `null`, `\"\"`, or `[]` from each output item. Strictly preserves numeric `0` / `0.0` and boolean `false`.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate `description` to at most this many UTF-16 characters without splitting emoji/Unicode surrogate pairs. Leave unset for full descriptions."
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Not used. Paid-plan runs work out of the box at no extra cost; free-plan runs use an Apify proxy service on your account, billed by Apify per request. To use your own proxies, fill in Custom proxy URLs below (located in Brazil)."
          },
          "customProxyUrls": {
            "title": "Custom proxy URLs (advanced)",
            "type": "array",
            "description": "Optional — bring your own HTTP proxy (e.g. `http://user:pass@host:port`). When set, these are used instead of Apify Proxy on any plan. They must be located in Brazil and reachable from Apify's cloud.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "urls (alias for startUrls)",
            "type": "array",
            "description": "Alias for `startUrls`.",
            "items": {
              "type": "string"
            }
          },
          "startUrl": {
            "title": "startUrl (alias for startUrls)",
            "type": "string",
            "description": "Single-URL alias for `startUrls`."
          },
          "locations": {
            "title": "locations (alias for searchLocations)",
            "type": "array",
            "description": "Alias for `searchLocations`.",
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "location (alias for searchLocations)",
            "type": "string",
            "description": "Single-location alias for `searchLocations`."
          },
          "state": {
            "title": "state (alias for states)",
            "type": "string",
            "description": "Single-state alias for `states`."
          },
          "estado": {
            "title": "estado (alias for states)",
            "type": "string",
            "description": "Portuguese alias for `states`."
          },
          "city": {
            "title": "city (alias for cities)",
            "type": "string",
            "description": "Single-city alias for `cities`."
          },
          "cidade": {
            "title": "cidade (alias for cities)",
            "type": "string",
            "description": "Portuguese alias for `cities`."
          },
          "bairros": {
            "title": "bairros (alias for neighborhoods)",
            "type": "array",
            "description": "Portuguese alias for `neighborhoods`.",
            "items": {
              "type": "string"
            }
          },
          "businessType": {
            "title": "businessType (alias for business)",
            "type": "string",
            "description": "Alias for `business` (`SALE`, `RENTAL`, `NEW_DEVELOPMENT`)."
          },
          "transactionType": {
            "title": "transactionType (alias for business)",
            "type": "string",
            "description": "Alias for `business` (`SALE`, `RENTAL`)."
          },
          "tipoNegocio": {
            "title": "tipoNegocio (alias for business)",
            "type": "string",
            "description": "Portuguese alias for `business` (`venda`, `aluguel`)."
          },
          "propertyTypes": {
            "title": "propertyTypes (alias for unitTypes)",
            "type": "array",
            "description": "Alias for `unitTypes`.",
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "propertyType (alias for unitTypes)",
            "type": "string",
            "description": "Single-type alias for `unitTypes`."
          },
          "tipoImovel": {
            "title": "tipoImovel (alias for unitTypes)",
            "type": "string",
            "description": "Portuguese alias for `unitTypes` (e.g. `apartamento`, `casa`, `terreno`)."
          },
          "precoMinimo": {
            "title": "precoMinimo (alias for minPrice)",
            "minimum": 0,
            "type": "integer",
            "description": "Portuguese alias for `minPrice`."
          },
          "precoMaximo": {
            "title": "precoMaximo (alias for maxPrice)",
            "minimum": 0,
            "type": "integer",
            "description": "Portuguese alias for `maxPrice`."
          },
          "bedrooms": {
            "title": "bedrooms (alias for minBedrooms)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `minBedrooms`."
          },
          "bathrooms": {
            "title": "bathrooms (alias for minBathrooms)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `minBathrooms`."
          },
          "parkingSpaces": {
            "title": "parkingSpaces (alias for minParkingSpaces)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `minParkingSpaces`."
          },
          "minUsableArea": {
            "title": "minUsableArea (alias for minArea)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `minArea`."
          },
          "maxUsableArea": {
            "title": "maxUsableArea (alias for maxArea)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `maxArea`."
          },
          "sort": {
            "title": "sort (alias for sortBy)",
            "type": "string",
            "description": "Alias for `sortBy`."
          },
          "fetchDetails": {
            "title": "fetchDetails (alias for scrapeDetails)",
            "type": "boolean",
            "description": "Alias for `scrapeDetails`."
          },
          "maxListings": {
            "title": "maxListings (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`."
          },
          "maxResults": {
            "title": "maxResults (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`."
          },
          "limit": {
            "title": "limit (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`."
          },
          "maxPaginas": {
            "title": "maxPaginas (alias for maxPages)",
            "minimum": 1,
            "type": "integer",
            "description": "Portuguese alias for `maxPages`."
          },
          "maxRetries": {
            "title": "maxRetries (alias for maxRequestRetries)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for `maxRequestRetries`."
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration (alias for proxy)",
            "type": "object",
            "description": "Alias for `proxy`."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}