A Python wrapper around the Zillow API.
By the Python-Zillow Developers
This library provides a Python interface for the Zillow API. It works with Python versions from 2.6+.
Zillow provides a service that allows people to research the value of home across the United States. Zillow exposes this information via a web services API and this library is intended to make it easier for Python developers to use.
You can install python-zillow using:
pip install python-zillowThe code is hosted at https://github.com/seme0021/python-zillow
Check out the latest development version anonymously with::
$ git clone git://github.com/seme0021/python-zillow.git
$ cd python-zillowSetup a virtual environment and install dependencies:
$ virtualenv envActivate the virtual environment created:
$ source env/bin/activateNote that tests require pip install nose and optionally pip install coverage:
To run the unit tests:
make testto also run code coverage:
make coverageHere is some basic python code to query the zillow api using the python-zillow library.
Note: I suggest keeping your key stored in a ./bin/config/zillow_key.conf file
import zillow
with open("./bin/config/zillow_key.conf", 'r') as f:
key = f.readline().replace("\n", "")
api = zillow.ValuationApi()address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"
data = api.GetSearchResults(key, address, postal_code)zpid="2100641621"
detail_data = api.GetZEstimate(key, zpid)zpid="2100641621"
detail_data = api.GetComps(key, zpid)address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"
data = api.GetDeepSearchResults(key, address, postal_code)zws_id = "<your key>"
zpid = 2100641621
count=10
data = data = api.GetDeepComps(zws_id, zpid, count)