This is a server application that scrapes data from Zillow.com, one of the most popular websites used to search for homes, check home values, and find real estate agents. It uses Zillow’s internal API and recursively splits the map four times to get around the 500-results-per-search limit.
git clone https://github.com/Joshrlear/zillowScraper-server.gitnpm installmongodnpm starthttp://localhost:3000/api/properties with optional query parameters such as city, state, min_price, max_price, etc.Request:
GET http://localhost:3000/api/properties?city=Seattle&state=WA&min_price=500000&max_price=1000000
Response:
`json { “total”: 1234, “page”: 1, “limit”: 10, “data”: [ { “_id”: “60f9b8a7c6e9f90015a8d6e7”, “address”: “123 Main St”, “price”: “$750,000”, “size”: “1,234 sqft”, “bedrooms”: 3, “bathrooms”: 2, “yearBuilt”: 1980, “__v”: 0 }, { “_id”: “60f9b8a7c6e9f90015a8d6e8”, “address”: “456 Pine St”, “price”: “$850,000”, “size”: “1,456 sqft”, “bedrooms”: 4, “bathrooms”: 3, “yearBuilt”: 1990, “__v”: 0 }, // more properties … ] }