Any API examples yet?

Profile picture for darryll
Looking for some API example apps using PHP hopefully with the Zestiamte data.  I have a form that gets a full address, but I dont know how to send that to the API and get results.  Thanks.
  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 06 2009 - US

Replies (5)

  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 06 2009
Profile picture for darryll
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?
  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 07 2009
That's something you'll have to ask a web developer about. Mike Rice at Eferi did that specific implementation.
  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 07 2009
Profile picture for rlnold
  • rlnold
    •  
    • 0.0/5.0
    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".
  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 07 2009
Profile picture for rlnold
  • rlnold
    •  
    • 0.0/5.0
    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".
  Flag content
Close
Report a Problem

Please enter a valid email address.

Close
Content flagged

We will review this content. Thanks for helping make the site more useful to everyone. To learn more, read Zillow's Good Neighbor Policy.

Close
We're Sorry
This service is temporarily unavailable. Please come back later and try again.
July 07 2009
 
  • Be a Good Neighbor. Be respectful and on-topic. No spam or self-promotion! See our Good Neighbor Policy.

Have a question? Ask it here.

What's this?
Close

By starting a discussion, you can expect more of an interactive, back-and-forth experience where the conversation can go in many different directions.

Or start a discussion

E-mail successfully sent!Submission failed!

Related Discussions
Profile picture for Matt Bowers
Discussionmobile app development
  • Last reply by Matt Bowers
  • 3 days ago
Profile picture for Asian_Orange
DiscussionMark as Best Source Do I need to use Zillow's API to use the neighborhood boundaries?
  • Last reply by Asian_Orange
  • February 02
Profile picture for DrewMeyers
DiscussionZillow Neighborhoods Boundary data conversion problem
  • Last reply by DrewMeyers
  • January 20
Profile picture for Pasadenan
Discussionis there a way to figure out property footprint?
  • Last reply by Pasadenan
  • January 17
Profile picture for Luke Stephens
DiscussionHow do I use the Zestimate API
  • Posted by Luke Stephens
  • January 11
Be A Good Neighbor

Zillow® Advice depends on each member to keep it a safe, fun, and positive place. If you see abuse, flag it. More on our Good Neighbor Policy