{
  "openapi": "3.0.1",
  "info": {
    "title": "VivaReal and ZAP Imóveis Scraper - Brazil Property Listings",
    "description": "Scrape VivaReal and ZAP Imóveis in one actor: sale and rental price, condo fee, IPTU, total monthly cost, area, rooms, address with coordinates, amenities, agency name and business phone. Big cities are split automatically past the portal result cap. Pay per listing.",
    "version": "0.1",
    "x-build-id": "gXnvrzuvEYh8d4tI0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deepurple~vivareal-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deepurple-vivareal-listings-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/deepurple~vivareal-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-deepurple-vivareal-listings-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/deepurple~vivareal-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-deepurple-vivareal-listings-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"
            ],
            "type": "string",
            "description": "Which portal's listing pages to search. VivaReal and ZAP Imóveis share one property database, so results are nearly identical; choose the one whose listing URLs you want in the output.",
            "default": "vivareal"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities or neighborhoods to search, written as 'City, UF' or 'Neighborhood, City, UF' (for example 'São Paulo, SP' or 'Pinheiros, São Paulo, SP'). Each location is searched separately and duplicates are returned once.",
            "default": [
              "São Paulo, SP"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Alternative or addition to locations: paste vivareal.com.br or zapimoveis.com.br results-page links such as https://www.vivareal.com.br/venda/sp/sao-paulo/apartamento_residencial/. Sale or rent, state, city, neighborhood and property type in the link are honored.",
            "items": {
              "type": "string"
            }
          },
          "businessType": {
            "title": "Sale or rent",
            "enum": [
              "SALE",
              "RENTAL"
            ],
            "type": "string",
            "description": "Search properties for sale or for rent. Ignored for pasted URLs, which carry their own choice.",
            "default": "SALE"
          },
          "propertyStatus": {
            "title": "Resale or new development",
            "enum": [
              "USED",
              "DEVELOPMENT",
              "ANY"
            ],
            "type": "string",
            "description": "Resale (used) properties, new developments (lançamentos), or both.",
            "default": "USED"
          },
          "unitTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only these property types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "APARTMENT",
                "HOME",
                "CONDOMINIUM",
                "PENTHOUSE",
                "FLAT",
                "KITNET",
                "FARM",
                "OFFICE",
                "COMMERCIAL_PROPERTY",
                "BUSINESS",
                "ALLOTMENT_LAND",
                "BUILDING"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "Condominium house",
                "Penthouse",
                "Flat / studio",
                "Kitnet",
                "Farm / rural property",
                "Office",
                "Commercial property",
                "Business",
                "Land / lot",
                "Building"
              ]
            }
          },
          "usageType": {
            "title": "Residential or commercial",
            "enum": [
              "ANY",
              "RESIDENTIAL",
              "COMMERCIAL"
            ],
            "type": "string",
            "description": "Restrict to residential or commercial use, or leave on Any.",
            "default": "ANY"
          },
          "priceMin": {
            "title": "Minimum price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip properties priced below this amount in Brazilian reais (monthly rent for rentals). Leave empty for no lower limit."
          },
          "priceMax": {
            "title": "Maximum price (BRL)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip properties priced above this amount in Brazilian reais (monthly rent for rentals). Leave empty for no upper limit."
          },
          "minArea": {
            "title": "Minimum usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip properties with a smaller usable area. Leave empty for no lower limit."
          },
          "maxArea": {
            "title": "Maximum usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip properties with a larger usable area. Leave empty for no upper limit."
          },
          "minBedrooms": {
            "title": "Minimum bedrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only properties with at least this many bedrooms."
          },
          "minBathrooms": {
            "title": "Minimum bathrooms",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only properties with at least this many bathrooms."
          },
          "minParkingSpaces": {
            "title": "Minimum parking spaces",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Keep only properties with at least this many parking spaces."
          },
          "amenities": {
            "title": "Required amenities",
            "type": "array",
            "description": "Keep only properties that have all of these amenities.",
            "items": {
              "type": "string",
              "enum": [
                "POOL",
                "GYM",
                "ELEVATOR",
                "BARBECUE_GRILL",
                "PLAYGROUND",
                "PARTY_HALL",
                "SPORTS_COURT",
                "GATED_COMMUNITY",
                "PETS_ALLOWED",
                "FURNISHED",
                "AIR_CONDITIONING",
                "BALCONY",
                "SAUNA",
                "GARDEN"
              ],
              "enumTitles": [
                "Pool",
                "Gym",
                "Elevator",
                "Barbecue grill",
                "Playground",
                "Party hall",
                "Sports court",
                "Gated community",
                "Pets allowed",
                "Furnished",
                "Air conditioning",
                "Balcony",
                "Sauna",
                "Garden"
              ]
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "newest"
            ],
            "type": "string",
            "description": "Order in which the portal returns properties.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Total properties to return across all locations. Billing is per returned property, so this is your budget cap.",
            "default": 50
          },
          "includeAgencyContacts": {
            "title": "Include agency business phones",
            "type": "boolean",
            "description": "Add the business phone numbers the agency published on each listing (landline, mobile and WhatsApp). Turn off to leave the contact fields empty.",
            "default": true
          },
          "sliceThreshold": {
            "title": "Split searches larger than (advanced)",
            "minimum": 100,
            "maximum": 9900,
            "type": "integer",
            "description": "Searches with more results than this are automatically cut into price bands so the portal's result window never hides listings. Lower it only if big searches return fewer rows than expected.",
            "default": 1400
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Brazilian residential proxies are used by default and are required; datacenter IPs are blocked by the portals.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}