- Find a Real Estate Professional
- North Carolina Realtors®
- North Carolina Mortgage Lenders
- North Carolina Home Improvement Pros
- North Carolina Other Real Estate Services
- Review an Agent, Lender or Pro
- Marketing on Zillow
- Realtor® Advertising
- Join the Professional Directory
Replies (5)
Here is an example implementation for you to take a look at. I'm pretty sure it's in PHP.

- Darryll Whaley, "darryll"
- Contributions:33
Thanks yes that is a php page, but I don't see how it works, there is a form in the code and it posts to itself, index.php, but where and how does it call the API?
That's something you'll have to ask a web developer about. Mike Rice at Eferi did that specific implementation.

- rlnold
- Contributions:8
Here's a code snippet in PHP. In my example I am just getting a few items but you can get the idea:
$xmlfile = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=[YOURID]&address=[ADDRESS]&citystatezip=[CITY,STATE ZIP]";
$s = simplexml_load_file($xmlfile);
if ($s) {
$returnCode = $s->message->code;
$returnText = $s->message->text;
if ($returnCode == 0) {
$zpid = $s->response->results->result->zpid;
$zestimate = $s->response->results->result->zestimate->amount;
$x = 'last-updated';
$last = $s->response->results->result->zestimate->$x;
$high = $s->response->results->result->zestimate->valuationRange->high;
$low = $s->response->results->result->zestimate->valuationRange->low;
$change = $s->response->results->result->zestimate->valueChange;
$estimatorLink = $s->response->results->result->links->myestimator;
}
}
Obviously you need to replace the information between "[ ]"
Note that this is PHP 5. Previous versions do not support "simplexml_load_file".
$xmlfile = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=[YOURID]&address=[ADDRESS]&citystatezip=[CITY,STATE ZIP]";
$s = simplexml_load_file($xmlfile);
if ($s) {
$returnCode = $s->message->code;
$returnText = $s->message->text;
if ($returnCode == 0) {
$zpid = $s->response->results->result->zpid;
$zestimate = $s->response->results->result->zestimate->amount;
$x = 'last-updated';
$last = $s->response->results->result->zestimate->$x;
$high = $s->response->results->result->zestimate->valuationRange->high;
$low = $s->response->results->result->zestimate->valuationRange->low;
$change = $s->response->results->result->zestimate->valueChange;
$estimatorLink = $s->response->results->result->links->myestimator;
}
}
Obviously you need to replace the information between "[ ]"
Note that this is PHP 5. Previous versions do not support "simplexml_load_file".

- rlnold
- Contributions:8
Here's a code snippet in PHP. In my example I am just getting a few items but you can get the idea:
$xmlfile = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=[YOURID]&address=[ADDRESS]&citystatezip=[CITY,STATE ZIP]";
$s = simplexml_load_file($xmlfile);
if ($s) {
$returnCode = $s->message->code;
$returnText = $s->message->text;
if ($returnCode == 0) {
$zpid = $s->response->results->result->zpid;
$zestimate = $s->response->results->result->zestimate->amount;
$x = 'last-updated';
$last = $s->response->results->result->zestimate->$x;
$high = $s->response->results->result->zestimate->valuationRange->high;
$low = $s->response->results->result->zestimate->valuationRange->low;
$change = $s->response->results->result->zestimate->valueChange;
$estimatorLink = $s->response->results->result->links->myestimator;
}
}
Obviously you need to replace the information between "[ ]"
Note that this is PHP 5. Previous versions do not support "simplexml_load_file".
$xmlfile = "http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=[YOURID]&address=[ADDRESS]&citystatezip=[CITY,STATE ZIP]";
$s = simplexml_load_file($xmlfile);
if ($s) {
$returnCode = $s->message->code;
$returnText = $s->message->text;
if ($returnCode == 0) {
$zpid = $s->response->results->result->zpid;
$zestimate = $s->response->results->result->zestimate->amount;
$x = 'last-updated';
$last = $s->response->results->result->zestimate->$x;
$high = $s->response->results->result->zestimate->valuationRange->high;
$low = $s->response->results->result->zestimate->valuationRange->low;
$change = $s->response->results->result->zestimate->valueChange;
$estimatorLink = $s->response->results->result->links->myestimator;
}
}
Obviously you need to replace the information between "[ ]"
Note that this is PHP 5. Previous versions do not support "simplexml_load_file".




Any API examples yet?
-
- 0.0/5.0
- (no reviews)
Contributions:33Stating a discriminatory preference in an advertisement for housing is illegal. If you think this content is discriminatory or otherwise inappropriate and feel it should be removed from Zillow, please let us know by completing the information above.
We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.