1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "zipCodes": ["10014"],
10 "statuses": ["FOR_SALE"],
11 "maxResultsPerZipStatus": 25,
12 "maxTotalResults": 100,
13 "includePropertyDetails": False,
14 "maxPropertyDetails": 5,
15 "includeMarketTrends": False,
16 "marketHistoryMonths": 12,
17 "minPrice": 0,
18 "maxPrice": 1000000000,
19 "minBedrooms": 0,
20 "maxBedrooms": 100,
21 "minBathrooms": 0,
22 "maxBathrooms": 100,
23 "minLivingArea": 0,
24 "maxLivingArea": 1000000,
25 "minYearBuilt": 1000,
26 "maxYearBuilt": 2100,
27 "homeTypes": [],
28 "openHousesOnly": False,
29 "showcaseOnly": False,
30 "sortOrder": "DEFAULT",
31 "resultsLimit": 10,
32 "priceMin": 0,
33 "priceMax": 1000000000,
34 "daysOnZillow": "",
35 "forSaleByAgent": True,
36 "forSaleByOwner": False,
37 "forRent": False,
38 "sold": False,
39}
40
41
42run = client.actor("datascraperes/zillow-zip-code-scraper").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49