{
  "openapi": "3.0.1",
  "info": {
    "title": "VivaReal Scraper - New Listings & Price Drop Monitor (Brazil)",
    "description": "For brokers, investors and property alert bots: new VivaReal listings in Brazil with price in BRL, condomínio, IPTU, area, bedrooms, address and agency. Schedule it to get only new listings, price changes (down or up, with the old price) and removed listings. Export as JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "0hawgc6PN3ZDqLlCM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~vivareal-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-vivareal-listings-monitor",
        "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/neverempty~vivareal-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-vivareal-listings-monitor",
        "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/neverempty~vivareal-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-vivareal-listings-monitor",
        "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": {
          "businessType": {
            "title": "Sale or rent",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Schedule it hourly or daily and get only new listings, price drops and removed listings. Choose homes for sale (imóveis à venda) or for rent (imóveis para alugar). Empty = for sale."
          },
          "state": {
            "title": "State",
            "enum": [
              "AC",
              "AL",
              "AP",
              "AM",
              "BA",
              "CE",
              "DF",
              "ES",
              "GO",
              "MA",
              "MT",
              "MS",
              "MG",
              "PA",
              "PB",
              "PR",
              "PE",
              "PI",
              "RJ",
              "RN",
              "RS",
              "RO",
              "RR",
              "SC",
              "SP",
              "SE",
              "TO"
            ],
            "type": "string",
            "description": "The state (estado) of the city below. All search fields empty = São Paulo, SP."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "The city (cidade) as written on VivaReal, for example São Paulo, Rio de Janeiro, Curitiba, Belo Horizonte, Florianópolis. Accents are optional."
          },
          "neighborhoods": {
            "title": "Neighbourhoods",
            "type": "array",
            "description": "Optional. Neighbourhoods (bairros) inside the city, for example Moema, Pinheiros, Copacabana, Batel. Each one is watched as its own search. Empty = the whole city.",
            "items": {
              "type": "string"
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Optional. Only these property types; each one is watched as its own search. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "gated-community-house",
                "townhouse",
                "penthouse",
                "flat",
                "kitnet",
                "land",
                "office",
                "retail-space",
                "warehouse",
                "farm"
              ],
              "enumTitles": [
                "Apartment (apartamento)",
                "House (casa)",
                "House in gated community (casa de condomínio)",
                "Townhouse (sobrado)",
                "Penthouse (cobertura)",
                "Flat",
                "Studio (kitnet)",
                "Land (lote / terreno)",
                "Office (sala comercial)",
                "Retail space (ponto comercial)",
                "Warehouse (galpão)",
                "Farm (granja)"
              ]
            }
          },
          "minPrice": {
            "title": "Minimum price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in Brazilian reais (BRL): the sale price for sale, the monthly rent for rent. VivaReal applies it the same way as its own price filter."
          },
          "maxPrice": {
            "title": "Maximum price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in Brazilian reais (BRL): the sale price for sale, the monthly rent for rent."
          },
          "bedrooms": {
            "title": "Bedrooms",
            "type": "array",
            "description": "Optional. Only listings with these numbers of bedrooms (quartos), the same as the VivaReal filter. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4"
              ],
              "enumTitles": [
                "1 bedroom",
                "2 bedrooms",
                "3 bedrooms",
                "4 or more bedrooms"
              ]
            }
          },
          "searchUrls": {
            "title": "VivaReal search URLs",
            "type": "array",
            "description": "Optional. Paste the address of any VivaReal search page with your filters set, for example https://www.vivareal.com.br/aluguel/rj/rio-de-janeiro/zona-sul/copacabana/. Each one is watched as its own search, always newest first.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "How many of the newest listings to read per search (1 to 1500). Empty = 100. In monitor mode this is the window checked for new listings and price changes on each run."
          },
          "monitorMode": {
            "title": "Monitor mode: only new listings and price changes",
            "type": "boolean",
            "description": "Schedule it hourly or daily and get only listings that are new since the last run, listings whose price changed (with the previous price) and listings taken down. The first run returns the current listings as the starting point."
          },
          "includeChanged": {
            "title": "Return price changes",
            "type": "boolean",
            "description": "In monitor mode, return listings you already received whose price went down or up, with the previous price. Empty = yes."
          },
          "includeRemoved": {
            "title": "Return removed listings",
            "type": "boolean",
            "description": "In monitor mode, return listings you already received that are no longer listed on two checks in a row (sold, rented or taken down). Empty = yes."
          },
          "includeUnchanged": {
            "title": "Also return unchanged listings",
            "type": "boolean",
            "description": "In monitor mode, also return listings already received that did not change (each one is charged). Empty = no."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each schedule its own name (letters, digits, dot, dash, underscore) so separate schedules keep separate memories. Empty = default."
          },
          "resetMonitoringState": {
            "title": "Start this watch again",
            "type": "boolean",
            "description": "Forget what this watch remembered, so this run is a first check again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}