Back to Results

Tools

Partner Tools


Any API examples yet?

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
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 - US

Replies (5)

Profile picture for Drew
Contributions: 3105
Zillow All-Star

Since January 2009

  Flag content
Close
Report a Problem
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
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
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
Profile picture for Drew
Contributions: 3105
Zillow All-Star

Since January 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
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
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
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
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
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
 

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

 
Top Contributors
Stats
Subscribe via RSS
  1. 6517 contributions
    762 helpful
    28 best answers
  2. 10795 contributions
    2268 helpful
    164 best answers
  3. 5782 contributions
    1356 helpful
    27 best answers
  4. 12278 contributions
    3253 helpful
    0 best answers
  5. 454 contributions
    15 helpful
    1 best answers
Related Discussions
Discussion Obtaining Zillow Valuations on Multiple Properties Via Automated Feed
  • Posted by gmorris3
  • 1 day ago
Discussion (Moved): BrokerBuddy.net Auto Quoting Services
  • Posted by Drew Meyers
  • 4 days ago
Discussion SearchResults API no results for specified address found
  • Last reply by John Davies
  • November 12
Discussion (Moved): Price change
  • Posted by Drew Meyers
  • November 10
Discussion Using Zillow for Research
  • Last reply by Drew Meyers
  • November 06
Zillow Poll:
Suggested by RE_Obsessed
How long have you lived in your current home?
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

pageName