{
  "openapi": "3.0.1",
  "info": {
    "title": "VivaReal & ZAP Imóveis Scraper: Brazil Prices, Condo, IPTU",
    "description": "Brazil real estate listings from VivaReal and ZAP Imóveis: imóveis à venda e aluguel with BRL price, condomínio, IPTU, m², quartos, suites, vagas, bairro, coordinates, photos and advertiser. Search by city or paste a search URL; new-listing and price-change monitor.",
    "version": "0.1",
    "x-build-id": "csESEfwWWiScTjNz7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~vivareal-zap-imoveis-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-vivareal-zap-imoveis-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/automatic~vivareal-zap-imoveis-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-vivareal-zap-imoveis-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/automatic~vivareal-zap-imoveis-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-vivareal-zap-imoveis-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": {
          "portal": {
            "title": "Portal",
            "enum": [
              "vivareal",
              "zap",
              "both"
            ],
            "type": "string",
            "description": "Choose VivaReal, ZAP Imóveis, or both. The two portals share one inventory, so with both each listing is delivered once, from the first portal that shows it.",
            "default": "vivareal"
          },
          "businessType": {
            "title": "Business type",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Choose properties for sale or for rent. Rental prices are monthly amounts in Brazilian reais.",
            "default": "sale"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Brazilian city to search, for example São Paulo, Rio de Janeiro or Curitiba. A search URL overrides this location.",
            "default": "São Paulo"
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter Brazilian state abbreviation, for example SP or RJ. For state capitals and other big cities the matching state is used automatically. A search URL overrides this location.",
            "default": "SP"
          },
          "neighborhoods": {
            "title": "Neighbourhoods (bairros)",
            "type": "array",
            "description": "Optional bairros inside the city, for example Pinheiros, Moema. Each one is its own search; maxResults is shared fairly across them and a listing is delivered once.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional: paste VivaReal or ZAP Imóveis search pages (venda or aluguel) with the filters you set in the browser. Their portal, location and filters replace the structured inputs; price bounds still narrow the rows. Each pasted search can be read up to 1,500 listings deep.",
            "items": {
              "type": "string"
            }
          },
          "searchUrl": {
            "title": "Search URL (single)",
            "type": "string",
            "description": "One HTTPS sale or rental search page from either portal. Kept for saved inputs; you can use Search URLs for several."
          },
          "listingUrls": {
            "title": "Listing URLs (refresh)",
            "type": "array",
            "description": "Paste up to 1,000 VivaReal or ZAP listing links under /imovel/ or /imoveis-lancamentos/. Get one row per confirmed active listing, including the asking price when published. The run summary lists invalid or unconfirmed links. Only delivered rows incur a listing charge. Refresh uses the pasted links and ignores search and monitor settings.",
            "items": {
              "type": "string"
            }
          },
          "propertyType": {
            "title": "Property type",
            "enum": [
              "all",
              "apartment",
              "house",
              "condominium",
              "land",
              "commercial"
            ],
            "type": "string",
            "description": "Choose a property category, or all to include every property type.",
            "default": "all"
          },
          "listingKind": {
            "title": "Units or developments",
            "enum": [
              "all",
              "unit",
              "development"
            ],
            "type": "string",
            "description": "Individual properties, new development projects, or both, using the portal's own filter.",
            "default": "all"
          },
          "publisherType": {
            "title": "Advertiser",
            "enum": [
              "all",
              "owner",
              "agency"
            ],
            "type": "string",
            "description": "Only listings from private owners or only from agencies, using the portal's own filter.",
            "default": "all"
          },
          "minPrice": {
            "title": "Minimum BRL price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum sale price or monthly rent in Brazilian reais (BRL). Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum BRL price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum sale price or monthly rent in Brazilian reais (BRL). Leave empty for no maximum."
          },
          "maxCondoFee": {
            "title": "Maximum condo fee (condomínio, BRL)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum monthly condominium fee in Brazilian reais. Leave empty for no limit."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms (quartos)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many bedrooms, from 1 to 4 (4 means 4 or more), as the portal filters them."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms (banheiros)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many bathrooms, from 1 to 4 (4 means 4 or more), as the portal filters them."
          },
          "minParkingSpaces": {
            "title": "Minimum parking spaces (vagas)",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many parking spaces, from 1 to 4 (4 means 4 or more), as the portal filters them."
          },
          "minArea": {
            "title": "Minimum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum usable area in square metres."
          },
          "maxArea": {
            "title": "Maximum area (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum usable area in square metres."
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings published in the last N days. The search is read newest first and stops at the first older listing."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc",
              "area_desc"
            ],
            "type": "string",
            "description": "Order in which the portal returns listings.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Maximum listings (total)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to deliver in total across all searches and portals, from 1 to 10,000. Listings are saved page by page, so a run that hits its time limit keeps everything it collected. Searches with more than 1,500 results are read in price bands to go deeper.",
            "default": 20
          },
          "maxPages": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Optional cap on result pages read per search (30 listings each). Monitor runs read at most 20 pages per search unless you set this."
          },
          "onlyNewSinceLastRun": {
            "title": "Only new listings since the last run (monitor)",
            "type": "boolean",
            "description": "Remember delivered listings under a monitor name (monitorName). The first run saves a baseline; later runs deliver only listings that are new since the previous run, reading newest first and stopping where the last run ended. Snapshot mode is unchanged when off.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Required for monitoring: any label up to 128 characters. Reuse it on every scheduled run. Changing the location or filters starts a separate history; maxResults, maxPages and sort do not. Run one job at a time per name."
          },
          "includePriceChanges": {
            "title": "Also deliver price changes",
            "type": "boolean",
            "description": "Requires monitoring. Also deliver a listing again when its asking price changed since it was last delivered, with previousPrice and priceChangePct.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}