{
  "openapi": "3.0.1",
  "info": {
    "title": "ZAP Imóveis + VivaReal Scraper: Brazil Rent & Sale, No Login",
    "description": "Scrape Brazil rental and for-sale property listings from ZAP Imóveis and VivaReal in one run: price, condo fee, IPTU, total monthly cost, R$/m², rooms, area, address, GPS, photos and agency CRECI. Duplicates across both portals are dropped, the property type filter works, newest-first monitoring.",
    "version": "1.0",
    "x-build-id": "BAPyax4wE4Y4DpNg1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benthepythondev~zap-vivareal-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benthepythondev-zap-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/benthepythondev~zap-vivareal-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benthepythondev-zap-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/benthepythondev~zap-vivareal-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benthepythondev-zap-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities or neighborhoods in Brazil, one per line, written like 'Campinas, SP', 'São Paulo, SP' or 'Pinheiros, São Paulo, SP'. Each is searched on every chosen portal.",
            "default": [
              "Campinas, SP"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Listing or search URLs",
            "type": "array",
            "description": "Optional. ZAP Imóveis or VivaReal listing URLs (or bare listing ids) to fetch one by one, and ZAP search URLs such as https://www.zapimoveis.com.br/aluguel/apartamentos/sp+campinas/ (business, type and location are read from the URL).",
            "items": {
              "type": "string"
            }
          },
          "portals": {
            "title": "Portals",
            "type": "array",
            "description": "Which portals to search. With both, a property listed on ZAP and VivaReal is saved and charged once.",
            "items": {
              "type": "string",
              "enum": [
                "ZAP",
                "VIVAREAL"
              ],
              "enumTitles": [
                "ZAP Imóveis",
                "VivaReal"
              ]
            },
            "default": [
              "ZAP",
              "VIVAREAL"
            ]
          },
          "business": {
            "title": "Rent or buy",
            "enum": [
              "rent",
              "sale"
            ],
            "type": "string",
            "description": "Rental listings (aluguel) or listings for sale (venda).",
            "default": "rent"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for every type. Rows of another type are dropped before they are saved, so they are never charged.",
            "items": {
              "type": "string",
              "enum": [
                "apartment",
                "house",
                "condo_house",
                "penthouse",
                "land",
                "commercial",
                "office",
                "store"
              ],
              "enumTitles": [
                "Apartment",
                "House",
                "House in a gated condominium",
                "Penthouse (cobertura)",
                "Land / lot",
                "Commercial property",
                "Office (sala)",
                "Store / shop"
              ]
            }
          },
          "minPrice": {
            "title": "Min price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Monthly rent for rentals, asking price for sales."
          },
          "maxPrice": {
            "title": "Max price (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Monthly rent for rentals, asking price for sales."
          },
          "minArea": {
            "title": "Min usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Smallest usable area in square meters."
          },
          "maxArea": {
            "title": "Max usable area (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Largest usable area in square meters."
          },
          "minBedrooms": {
            "title": "Min bedrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "At least this many bedrooms (quartos)."
          },
          "minBathrooms": {
            "title": "Min bathrooms",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "At least this many bathrooms."
          },
          "minParkingSpaces": {
            "title": "Min parking spaces",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "At least this many parking spaces (vagas)."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "relevance",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "Newest first suits monitoring: with 'Only listed since' the run stops reading once listings get older than that date.",
            "default": "newest"
          },
          "onlyNewSince": {
            "title": "Only listed since",
            "type": "string",
            "description": "Optional date (YYYY-MM-DD). Only listings created on or after this day are saved: set it to the date of your last run to get just the new ones."
          },
          "includeDescription": {
            "title": "Include the full description",
            "type": "boolean",
            "description": "The advertiser's full description text, loaded in one extra API call per 24 properties. No extra charge.",
            "default": true
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops exactly here and never saves or charges more. Big searches are split into price bands to get past the portals' 2,000-results limit.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}