Nimbryxo Studio

Use Zillow For-Sale, Rent & Sold Listing Extractor with Python

Search Zillow by city, state or ZIP for active, rental or recently sold listings, with pricing, Zestimate, agent, school, tax and price history for each property.

1. Choose the data you need

Review the published README for supported collection modes, examples, and limits. The recipe below uses the current published input definition.

2. Prepare a source-based input

This JSON contains published prefills and required-field defaults. Review every value for your task before running it; it is not a promise of successful collection.

{
  "auctionOnly": false,
  "endPage": 1,
  "foreclosureOnly": false,
  "fsboOnly": false,
  "includePending": false,
  "maxItems": 3,
  "mode": "BUY",
  "newConstructionOnly": false,
  "openHouseOnly": false,
  "priceReducedOnly": false,
  "scrapeDetails": false,
  "search": "Houston, TX"
}

Download input.example.json and save your reviewed copy as input.json.

FieldTypeRequiredDescription
searchstringoptionalCity, ZIP, neighborhood, county or state to search (for example 'Houston, TX' or '77002').
modestringrequiredSearch active for-sale listings, rentals, or recently sold listings.
maxItemsintegeroptionalMaximum number of records for the whole run across all sources (1-5000).
endPageintegeroptionalMaximum search result pages per search task (1-24). Zillow returns up to 41 listings per page.
startUrlsarrayoptionalProperty detail URLs, /apartments/ building URLs, or Zillow search page URLs. Search URLs keep their own filters and mode.
zpidsarrayoptionalZillow property IDs or URLs containing _zpid. Each ZPID is resolved to its canonical detail page.
addressesarrayoptionalFull street addresses to resolve to Zillow property pages, for example '1306 Castle Ct, Houston, TX 77006'.
priceMinintegeroptionalMinimum listing price in US dollars.
priceMaxintegeroptionalMaximum listing price in US dollars.
bedsMinstringoptionalMinimum number of bedrooms.
bathsMinstringoptionalMinimum number of bathrooms.
sqftMinintegeroptionalMinimum living area in square feet.
sqftMaxintegeroptionalMaximum living area in square feet.
lotSizeMinstringoptionalMinimum lot size in square feet.
lotSizeMaxstringoptionalMaximum lot size in square feet.
yearBuiltMinintegeroptionalEarliest construction year.
yearBuiltMaxintegeroptionalLatest construction year.
hoaMaxintegeroptionalMaximum monthly HOA fee in US dollars.
parkingSpotsMinintegeroptionalMinimum number of parking spots (1-10).
propertyTypesarrayoptionalLimit results to selected property types. Leave empty for all homes.
daysOnZillowstringoptionalOnly include listings added within this period.
sortBystringoptionalResult order. Relevance uses Zillow's priority order in RENT mode.
fsboOnlybooleanoptionalOnly include for-sale-by-owner listings.
foreclosureOnlybooleanoptionalOnly include foreclosure listings.
auctionOnlybooleanoptionalOnly include auction listings.
newConstructionOnlybooleanoptionalOnly include new-construction listings.
includePendingbooleanoptionalAdd pending and under-contract listings to active results.
openHouseOnlybooleanoptionalOnly include listings with an open house.
priceReducedOnlybooleanoptionalOnly include listings with a price reduction.
keywordstringoptionalFree-text keyword to match in the listing, for example 'pool'.
amenitiesarrayoptionalOnly include listings with the selected amenities.
rentalFiltersarrayoptionalRent-only filters. Ignored with a status note outside RENT mode.
scrapeDetailsbooleanoptionalFetch each search result's detail page for description, photos, MLS, tax, open house and building floor plans. Explicit URLs, ZPIDs and addresses are always enriched.

3. Start an Actor run

Set APIFY_TOKEN in your environment. Python 3.10 or newer is sufficient; this recipe uses no third-party packages.

Execution may incur charges. Review current pricing on Apify. The request asks for a 120-second timeout and a charge limit; these settings are subject to Apify’s pricing and do not guarantee an all-inclusive spending cap.

import json
import os
import urllib.request

# Save the schema-derived example as input.json; review and edit it first.
with open("input.json", encoding="utf-8") as stream:
    actor_input = json.load(stream)

token = os.environ["APIFY_TOKEN"]
request = urllib.request.Request(
    "https://api.apify.com/v2/acts/BW8wUYVb2qQuoswGw/runs?timeout=120&maxTotalChargeUsd=0.50",
    data=json.dumps(actor_input).encode("utf-8"),
    headers={"Authorization": "Bearer " + token, "Content-Type": "application/json"},
    method="POST",
)
# This starts a potentially billable run. Do not automatically retry this POST.
with urllib.request.urlopen(request, timeout=40) as response:
    run = json.load(response)["data"]
print("Run ID:", run["id"])
print("Status:", run["status"])
# Inspect and download results in Apify Console once the run succeeds.

4. Inspect the actual results

Open the run in Apify Console and wait for a successful completion. Use the published output schema to locate results and the dataset schema to understand declared views. Missing or optional record fields must not be treated as guaranteed values.

One record per Zillow property, home or rental building. Records keep the 33 legacy fields and add sold, tax, parcel, builder, agent, MLS, open-house, GraphQL-enriched detail and building fields when Zillow exposes them.

Questions before you run

Which inputs are required?

The published required fields are mode

What does this guide verify?

The fields, prefills, and schema links are rendered from the published build. This is a usage recipe, not a paid live extraction test. Source availability and collection results can vary.

What if the run request times out?

Check Apify Console before retrying. The first request may already have created a run. Do not automatically repeat a run-creation POST.

Generated from source build v5Agvw4nDcoJLthFF and its README and schemas. Source changes regenerate this guide; no third-party editorial claims are inferred.