Skip to main content

A Python wrapper for the Zoopla API

Project description

A python wrapper for the Zoopla API.

Zoopla has launched an open API to allow developers to create applications using hyper local data on 27m homes, over 1m sale and rental listings, and 15 years of sold price data.

Register for a user account and apply for an instant API key.

Browse the documentation to understand how to use the API and the specifications for the individual APIs.

Installation

pip install zoopla

Tests

Install the dev requirements:

pip install -r dev-requirements.txt
Run py.test with your developer key (otherwise you won’t be able to hit the live
API upon which these tests depend).
py.test --api-key=<you-api-key> tests/

Examples

Retrieve property listings for a given area.

from zoopla import Zoopla
zoopla = Zoopla(api_key='your_api_key')

search = zoopla.property_listings({
    'maximum_beds': 2,
    'page_size': 100,
    'listing_status': 'sale',
    'area': 'Blackley, Greater Manchester'
})

for result in search:
    print result.price
    print result.description
    print result.image_url

Retrieve a list of house price estimates for the requested area.

zed_indices = zoopla.area_zed_indices({
    'area': 'Blackley, Greater Manchester',
    'output_type': 'area',
    'area_type': 'streets',
    'order': 'ascending',
    'page_number': 1,
    'page_size': 10
})

print zed_indices.town
print zed_indices.results_url

Generate a graph of values for an outcode over the previous 3 months and return the URL to the generated image.

area_graphs = zoopla.area_value_graphs({'area': 'SW11'})

print area_graphs.average_values_graph_url
print area_graphs.value_trend_graph_url

Retrieve the average sale price for houses in a particular area.

average = zoopla.get_average_area_sold_price({'area': 'SW11'})
print average.average_sold_price_7year
print average.average_sold_price_5year

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zoopla-0.6.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zoopla-0.6.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zoopla-0.6.0.tar.gz.

File metadata

  • Download URL: zoopla-0.6.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zoopla-0.6.0.tar.gz
Algorithm Hash digest
SHA256 967bb27049e7a9de5d9fc10c1ae8396e225d83b1fda559c33edc9e616bd3d94c
MD5 464e3a1032a332b24f2ebf804159aae3
BLAKE2b-256 494e0859b3ded73b2698d61d148d806366f202e5aad596901d8ec94f8c75f8d8

See more details on using hashes here.

File details

Details for the file zoopla-0.6.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zoopla-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9f18869e40a8b4fe9511ad67d25f924b856e7c7a7d3a4e6c3c63a5713cecb576
MD5 e4e9ac700a8954c6b93e60eca51ca509
BLAKE2b-256 a2649ad9da596d399e5ffb3a660465b1804962e2e6adbdeb45c31e089d4357ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page