Welcome Guest, Not a member yet? Register   Sign In
Zillow API Library for Codeigniter
#1

[eluser]Unknown[/eluser]
I have been programming using Codeigniter framework for 2 years now, and it is definitely my number #1 framework. Now, it is time to give back whenever is possible. For those who need to use Zillow API to retrieve data, here is the library that help simplify the job.

As of today (October 10, 2012), this API supports all API functions of Zillow, including

GetSearchResults
GetZestimate
GetChart
GetComps
GetDemographics
GetRegionChildren
GetRegionChart
GetRateSummary
GetMonthlyPayments
GetDeepSearchResults
GetDeepComps
GetUpdatedPropertyDetails


How to use ?
You must have your Zillow API key to use this library. You could get one at Zillow.com easily.

$this->load->library('Zillow_Api');
$this->zillow_api->zws_id = 'YOUR API KEY HERE';

$search_result = $this->zillow_api->GetSearchResults(array('address' => '7356 CARTER AVE', 'citystatezip' => 'NEWARK'));

Because the library autosaves the "zpid" in the object if the function returns one, you could do something like the following on one same property without having to worry about the "zpid".

$property = $this->zillow_api->GetSearchResults(array('address' => '7356 CARTER AVE', 'citystatezip' => 'NEWARK'));
[/b]$estimate = $this->zillow_api->GetZestimate();
$chart = $this->zillow_api->GetChart(array('unit-type' => 'dollar'));
$comps = $this->zillow_api->GetComps(array('count' => '10', 'rentzestimate' => true));




That's all. Happy Hacking!


You may download the library Github here: https://github.com/kensongoo/Zillow-API-PHP-Library


Kenson Goo
Founder of <a href="http://www.sidepon.com">Sidepon.com</a>




Theme © iAndrew 2016 - Forum software by © MyBB