zestimater 0.1.0
zestimater: ^0.1.0 copied to clipboard
A library for scraping Zillow Zestimates for a given address.
Zestimater #
A Dart library for scraping Zillow home value estimates for any US address.
Features #
- Get Zillow's estimated home value (Zestimate) for any address
- Automatically finds the Zillow home details URL from an address
- Works with properties that are actively listed or not for sale
Usage #
API Usage #
import 'package:zestimater/zestimater.dart';
Future<void> main() async {
// Get zestimate from address
final result =
await Zestimater.getZestimate('11222 Dilling Street, Studio City, CA');
print('Address: ${result.address}');
print('Zestimate: ${result.zestimateFormatted}');
print('Home Details URL: ${result.homeDetailsUrl}');
}
CLI Usage #
Run directly from the command line:
dart run example/main.dart "11222 Dilling Street, Studio City, CA"
Output:
Address: 11222 Dilling Street, Studio City, CA 91602
Home Details URL: https://www.zillow.com/homedetails/11222-Dilling-St-North-Hollywood-CA-91602/20025974_zpid/
Zestimate: $3,747,600.00
How It Works #
The scraper:
- Converts your address into a Zillow search URL
- Follows redirects to find the home details page
- Parses multiple JSON data structures embedded in the HTML:
__NEXT_DATA__script tag (Next.js application data)gdpClientCache(double-encoded JSON with property data)data-zrr-shared-data-keyscript tags (Zillow preloaded data)
- Searches for the zestimate under multiple possible keys (
zestimate,price) - Returns the first valid numeric value found
Limitations #
- This scraper relies on Zillow's current HTML structure and may break if Zillow changes their site
- Zillow may rate-limit or block requests with CAPTCHA challenges
- Works best with valid, complete US addresses
- Only returns the current Zestimate (not historical data or price range)