{
  "openapi": "3.0.1",
  "info": {
    "title": "VivaReal Scraper & ZAP Imóveis Scraper: Brazil Real Estate",
    "description": "VivaReal and ZAP Imóveis scraper and API: Brazil property listings for sale and rent by city, neighbourhood, search link, listing id or agency, past 1,500 a search. Title, description, price, condo fee, IPTU, area, rooms, address, photos, advertiser, CRECI, phones. No login. Misses free.",
    "version": "0.1",
    "x-build-id": "cmflKuBNhfNhy7P2i"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~vivareal-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-vivareal-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/hyperbach~vivareal-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-vivareal-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/hyperbach~vivareal-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-vivareal-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": {
          "locations": {
            "title": "Places (city, neighbourhood, zone, street or state)",
            "maxItems": 1000,
            "type": "array",
            "description": "Places by name, as you would type them on VivaReal: São Paulo, Moema, Campinas, Zona Sul São Paulo, Avenida Paulista, Copacabana Rio de Janeiro, Minas Gerais. Add the city or the state after a comma when a name is common (Centro, Curitiba). Each place is read as one search with the filters below; the place the site resolves is named on every row. A link pasted here is read as in Start URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "VivaReal or ZAP links, or listing ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Search links as you see them in your browser, filters and sort included (https://www.vivareal.com.br/venda/sp/sao-paulo/casa_residencial/?precoMaximo=800000, https://www.zapimoveis.com.br/aluguel/apartamentos/rj+rio-de-janeiro/), listing links of either portal or bare listing ids (2921903497), and agency links (https://www.vivareal.com.br/imobiliaria/134535/). A search link keeps its own filters; a filter input below that the link does not set (a property type, a price, rooms) applies to the link too, and one the link sets otherwise is named on the input's row.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "business": {
            "title": "For sale, for rent or launches",
            "enum": [
              "sale",
              "rent",
              "launches"
            ],
            "type": "string",
            "description": "What a place or an agency search reads. A search link keeps its own.",
            "default": "sale"
          },
          "portal": {
            "title": "Portal",
            "enum": [
              "vivareal",
              "zap"
            ],
            "type": "string",
            "description": "The portal a place search and a bare listing id are read on. Both portals list the same listings under the same id; each row's link points to this portal. A link keeps its own portal.",
            "default": "vivareal"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these types (the site's own list). Empty: every type. A row the site serves outside the asked types is left out and not charged.",
            "items": {
              "type": "string",
              "enum": [
                "APARTMENT",
                "HOME",
                "CONDOMINIUM",
                "COUNTRY_HOUSE",
                "PENTHOUSE",
                "FLAT",
                "KITNET",
                "RESIDENTIAL_ALLOTMENT_LAND",
                "TWO_STORY_HOUSE",
                "CLINIC",
                "RESIDENTIAL_BUILDING",
                "FARM",
                "SHED_DEPOSIT_WAREHOUSE",
                "COMMERCIAL_PROPERTY",
                "COMMERCIAL_ALLOTMENT_LAND",
                "BUSINESS",
                "OFFICE",
                "COMMERCIAL_BUILDING"
              ],
              "enumTitles": [
                "Apartamento (APARTMENT)",
                "Casa (HOME)",
                "Casa de Condomínio (CONDOMINIUM)",
                "Chácara (COUNTRY_HOUSE)",
                "Cobertura (PENTHOUSE)",
                "Flat (FLAT)",
                "Kitnet/Conjugado (KITNET)",
                "Lote/Terreno (RESIDENTIAL_ALLOTMENT_LAND)",
                "Sobrado (TWO_STORY_HOUSE)",
                "Consultório (CLINIC)",
                "Edifício Residencial (RESIDENTIAL_BUILDING)",
                "Fazenda/Sítios/Chácaras (FARM)",
                "Galpão/Depósito/Armazém (SHED_DEPOSIT_WAREHOUSE)",
                "Imóvel Comercial (COMMERCIAL_PROPERTY)",
                "Lote/Terreno (COMMERCIAL_ALLOTMENT_LAND)",
                "Ponto Comercial/Loja/Box (BUSINESS)",
                "Sala/Conjunto (OFFICE)",
                "Prédio/Edifício Inteiro (COMMERCIAL_BUILDING)"
              ]
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price (R$)",
            "minimum": 0,
            "maximum": 100000000000,
            "type": "integer",
            "description": "The lowest price: the sale price, or the monthly rent for rentals.",
            "default": 0
          },
          "maxPrice": {
            "title": "Max price (R$)",
            "minimum": 0,
            "maximum": 100000000000,
            "type": "integer",
            "description": "The highest price; 0 = no limit.",
            "default": 0
          },
          "priceIncludesFees": {
            "title": "Rent price includes condo fee",
            "type": "boolean",
            "description": "Rentals: the price filter reads the total monthly price (rent + condo fee, the site's own total) instead of the rent alone.",
            "default": false
          },
          "minArea": {
            "title": "Min usable area (m²)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The smallest usable area.",
            "default": 0
          },
          "maxArea": {
            "title": "Max usable area (m²)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The largest usable area; 0 = no limit.",
            "default": 0
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many; 4 means 4 or more, the site's top step. 0 = any.",
            "default": 0
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many; 4 means 4 or more, the site's top step. 0 = any.",
            "default": 0
          },
          "minParkingSpaces": {
            "title": "Min parking spaces",
            "minimum": 0,
            "maximum": 4,
            "type": "integer",
            "description": "At least this many; 4 means 4 or more, the site's top step. 0 = any.",
            "default": 0
          },
          "maxCondoFee": {
            "title": "Max condo fee (R$ a month)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "The highest monthly condo fee; 0 = no limit.",
            "default": 0
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Only listings with these features, by the site's code or its Portuguese name: POOL or Piscina, GYM or Academia, BARBECUE_GRILL or Churrasqueira, ELEVATOR or Elevador, FURNISHED or Mobiliado, PETS_ALLOWED or Aceita animais. The site's index also matches listings whose own amenity list does not name the feature; such rows are kept.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nearTransit": {
            "title": "Near public transport",
            "type": "boolean",
            "description": "Only listings the site marks as near a metro or train station.",
            "default": false
          },
          "belowMarketPrice": {
            "title": "Below market price",
            "type": "boolean",
            "description": "Only listings with the site's below-market price badge.",
            "default": false
          },
          "noGuarantor": {
            "title": "Rent without a guarantor",
            "type": "boolean",
            "description": "Rentals: only listings that take a rental without a guarantor (the site's own filter).",
            "default": false
          },
          "constructionStatus": {
            "title": "Construction status (launches)",
            "type": "array",
            "description": "Launches only (new developments for sale): plan only, under construction or ready. Setting it reads launches; with business rent the run is refused (a rental has no construction status).",
            "items": {
              "type": "string",
              "enum": [
                "PLAN_ONLY",
                "UNDER_CONSTRUCTION",
                "BUILT"
              ],
              "enumTitles": [
                "Na planta (plan only)",
                "Em construção (under construction)",
                "Pronto para morar (ready)"
              ]
            },
            "default": []
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "MOST_RECENT",
              "MOST_RELEVANT",
              "LOWEST_PRICE",
              "BIGGEST_PRICE",
              "BIGGEST_AREA"
            ],
            "type": "string",
            "description": "The order of each search's rows. Newest first reads a search to its end with no repeats; a search link with its own sort keeps it.",
            "default": "MOST_RECENT"
          },
          "includeDetails": {
            "title": "Read each listing's record (title, description, updated date)",
            "type": "boolean",
            "description": "On: each row adds what only the listing's own record carries: the advertiser's title and full description, the updated date, the points of interest nearby, the advertiser's office and every published phone. Off: the search list's fields only (no title or description), faster.",
            "default": true
          },
          "maxItemsPerSearch": {
            "title": "Max listings per search",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most listing rows of each place, search link or agency; 0 = every listing of the search (past the site's 1,500 a search, by price ranges).",
            "default": 0
          },
          "maxItems": {
            "title": "Max listings (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most listing rows of the whole run; 0 = no cap beyond your charge limit.",
            "default": 100
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}