Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get UK property data from Zoopla
# install the package
devtools::install_github("erzk/zooplaR")
# load it
library(zooplaR)
# set up the keys
file.edit("~/.Renviron")
zoopla_key <- "YOUR_KEY_GOES_HERE"
zoopla_key <- Sys.getenv("zoopla_key")
# average property prices
average_area_sold_price("EH1 2NG", "outcode", zoopla_key)
average_sold_prices("EH1 2NG", "outcode", "streets", zoopla_key)
# zoopla indices
zed_index("E151AZ", "town", zoopla_key)
area_zed_indices("sw185rw", "postcodes", "outcode", 1, 10, zoopla_key, "descending")
# property listings
property_listings(postcode = "E15 4QS", API_key = zoopla_key)
# create charts
area_value_graphs("W12", zoopla_key)
local_info_graphs("W12", zoopla_key)
# autocorrect misspelt locations
geo_autocomplete("ruisli", "listings", zoopla_key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment