- Find a Real Estate Professional
- Realtors®
- Mortgage Lenders
- Home Improvement Pros
- Other Real Estate Services
- Review an Agent, Lender or Pro
- Marketing on Zillow
- Real Estate Agent Advertising
- Join the Professional Directory
- Popular
- Real Estate Market Reports
- More
Replies (23)

- Aaron Opfell, "SunriseVistaMortgage"
- Contributions:249
Iframes are actually pretty easy. Try doing a google search for 'how to use iframe' or 'iframe html code'. You can usually copy and paste examples with minor modification. If you search around you can usually find ones that control the size of the iframe using java.

- Darryll Whaley, "darryll"
- Contributions:33
Yeah I know how to use iFrames, sorry guess I was not clear. I dont understand how the API works. It returns an XML file, are there scripts to process it?
Can there be in the frame like a search box or something that uses that information to call with? The example call shows that you need both your ID and the ZPID, but how does that work in a form?
Can there be in the frame like a search box or something that uses that information to call with? The example call shows that you need both your ID and the ZPID, but how does that work in a form?

- Nexus Software
- Contributions:37
If you are going top use the API, why use frames? Using the API you have the opportunity to display the data on the same page as the rest of your content. The processing of the API data is easily accomplished in a variety of programming languages. The choice of which would be based on the language of the rest of your site and your server's environment.

- Darryll Whaley, "darryll"
- Contributions:33
Mr. Silver, how?
I am just trying to get this going for a friend that has this Zillow account, he had someone build his website but it is all tables and yuck. I would prefer not to use a frame.
Are there examples of this processing?
I am just trying to get this going for a friend that has this Zillow account, he had someone build his website but it is all tables and yuck. I would prefer not to use a frame.
Are there examples of this processing?

- Nexus Software
- Contributions:37
We are putting together an examples page. Which particular API call did your friend want to retrieve data from?

- Nexus Software
- Contributions:37
I just noticed you referenced the zestimate API. Though, the other webservices are able to processed in the same manner.
Once we have an examples page up. I'll include information about some ways that the examples could be implemented.
Once we have an examples page up. I'll include information about some ways that the examples could be implemented.

- Darryll Whaley, "darryll"
- Contributions:33
Thanks for all your help here man, I appreciate it. Thought this might help, see he used to have a valuation page that iframed in an API call but then he got an email saying the API was no longer valid or something. It used to do this,
"it used to be was a box framed in where you could type in any address and get the value of that address plus other characteristics of that property."
So he wants to replicate that best as can I assume with the new API. Can you offer suggestions? Does that make sense? Thanks.
"it used to be was a box framed in where you could type in any address and get the value of that address plus other characteristics of that property."
So he wants to replicate that best as can I assume with the new API. Can you offer suggestions? Does that make sense? Thanks.

- Nexus Software
- Contributions:37
It does make sense. Do you know what type of server his site is on, Linux or Windows? What is the URL of his site?

- Darryll Whaley, "darryll"
- Contributions:33
It is on a Linux server,
edit- running PHP5
94598homes.com
edit- running PHP5
94598homes.com

- Nexus Software
- Contributions:37
Okay, we are working on a few PHP examples now.

- Darryll Whaley, "darryll"
- Contributions:33
Thanks, any ETA?

- Nexus Software
- Contributions:37
Now. Here is a simple example that was put together in about 10 minutes.
http://nexwebsites.com/Real-Estate/Zestimate.htm
The Gist of it is to get the variables via your form, in this case 'Street' and 'City State or Zip' append those variable to your API call, retrieve the XML results and traverse the nodes assigning the XML elements to your variables. Then it is just a matter of writing your variables where you would like them to be on your page.
Another example is for Regional Listings is : http://nexwebsites.com/Real-Estate/Zillow-Listings.htm
http://nexwebsites.com/Real-Estate/Zestimate.htm
The Gist of it is to get the variables via your form, in this case 'Street' and 'City State or Zip' append those variable to your API call, retrieve the XML results and traverse the nodes assigning the XML elements to your variables. Then it is just a matter of writing your variables where you would like them to be on your page.
Another example is for Regional Listings is : http://nexwebsites.com/Real-Estate/Zillow-Listings.htm

- Darryll Whaley, "darryll"
- Contributions:33
Hey there, how is the tutorials coming along? Any PHP examples yet? I have been trying to implement what you posted in your last, but frankly I am lost. I do not see anywhere in the code on that page where anything is called, I see a form that posts to itself, no calls elsewhere. So I don't see how it works. Can you please tell me?

- Nexus Software
- Contributions:37
About the only thing easier than using than using a REST based webservice is kicking in a couple of bucks to have a developer do it for you.
1.)You call the API's URL with your script, specifying the variables that you obtained with your form.
2.)The webservice returns XML relevant to the request that you made with your call.
3.)Your script parses the XML by walking the nodes and storing the results in some new temporary variables.
Echo, echo. Is there an echo in here?
Echo these variables where you would like them to be on your generated page.
That's all she wrote. Your done. Except for maybe a little formatting of the page, with pretty colors and such.
1.)You call the API's URL with your script, specifying the variables that you obtained with your form.
2.)The webservice returns XML relevant to the request that you made with your call.
3.)Your script parses the XML by walking the nodes and storing the results in some new temporary variables.
Echo, echo. Is there an echo in here?
Echo these variables where you would like them to be on your generated page.
That's all she wrote. Your done. Except for maybe a little formatting of the page, with pretty colors and such.

- Darryll Whaley, "darryll"
- Contributions:33
Right no I understand that, but where is the script? On that example link you posted, I looked at the source but only see a form. Where do the variables go? I did not see a PHP script in there....

- Nexus Software
- Contributions:37
Are you looking for cut and paste solution? If you are at all interested in learning how to do it, you should work it out on your own. Here is a nugget to get you started with the Zestimate API.
Replace YOUR_ZILLOW_ID with your Zillow id:
<?php
//Copyright © Nexus Software Systems - http://nexwebsites.com
if(isset($_POST['street']))
{
$street = urlencode(htmlentities(strip_tags(trim($_POST['street']))));
}
if(isset($_POST['citystatezip']))
{
echo "<table border=\"1\" id=\"example\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">
<thead><tr><th>Address</th><th>City </th><th>State </th><th>ZipCode </th><th>Zestimate </th><th>Low Range </th><th>High Range </th><th>ZPID </th></tr>";
$citystatezip = urlencode(htmlentities(strip_tags(trim($_POST['citystatezip']))));
} else {
exit;
}
$rss = simplexml_load_file('http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=YOUR_ZILLOW_ID&address='.$street.'&citystatezip='.$citystatezip);
// Here we'll put a loop to include each item's title and description
foreach ($rss->xpath('//response//result') as $title) {
echo "<tr><td><a target=_blank href='" . $title->links->homedetails . "?scrnnm=Nexus-Software'>" . $title->address->street . "</a></td><td>". $title->address->city ."</td><td>". $title->address->state."</td><td>". $title->address->zipcode ."</td><td>$". $title->zestimate->amount."</td><td>$". $title->zestimate->valuationRange->low."</td><td>$". $title->zestimate->valuationRange->high."</td><td>". $title->zpid."</td></tr>";
}
?></td></tr></table>
<br /><br /> <br /><font>Powered by <a href="http://nexwebsites.com" target="_top">Nexus
Software Systems </a></font>
Replace YOUR_ZILLOW_ID with your Zillow id:
<?php
//Copyright © Nexus Software Systems - http://nexwebsites.com
if(isset($_POST['street']))
{
$street = urlencode(htmlentities(strip_tags(trim($_POST['street']))));
}
if(isset($_POST['citystatezip']))
{
echo "<table border=\"1\" id=\"example\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\">
<thead><tr><th>Address</th><th>City </th><th>State </th><th>ZipCode </th><th>Zestimate </th><th>Low Range </th><th>High Range </th><th>ZPID </th></tr>";
$citystatezip = urlencode(htmlentities(strip_tags(trim($_POST['citystatezip']))));
} else {
exit;
}
$rss = simplexml_load_file('http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=YOUR_ZILLOW_ID&address='.$street.'&citystatezip='.$citystatezip);
// Here we'll put a loop to include each item's title and description
foreach ($rss->xpath('//response//result') as $title) {
echo "<tr><td><a target=_blank href='" . $title->links->homedetails . "?scrnnm=Nexus-Software'>" . $title->address->street . "</a></td><td>". $title->address->city ."</td><td>". $title->address->state."</td><td>". $title->address->zipcode ."</td><td>$". $title->zestimate->amount."</td><td>$". $title->zestimate->valuationRange->low."</td><td>$". $title->zestimate->valuationRange->high."</td><td>". $title->zpid."</td></tr>";
}
?></td></tr></table>
<br /><br /> <br /><font>Powered by <a href="http://nexwebsites.com" target="_top">Nexus
Software Systems </a></font>

- Darryll Whaley, "darryll"
- Contributions:33
Thank you, see that makes sense to me, but where was that script? My problem is not the PHP, I mean I am still learning but I can follow it, I just did not see where the form fields got sent to that script, does that make sense?
Thanks a lot for all your indulgence. :)
Thanks a lot for all your indulgence. :)

- Nexus Software
- Contributions:37
Are you all set now? You were looking at the output of the script. And actually that generated page with the form, goes at the top of the script, before the PHP block.

- Darryll Whaley, "darryll"
- Contributions:33
It is not letting post in here very well, keeps giving me invalid html error, but no html :)
Why does the PHP not show in the source code? I could not see how and where the API was being called.
Why does the PHP not show in the source code? I could not see how and where the API was being called.

- Nexus Software
- Contributions:37
In the source code of what? The generated page? This isn't like pasting in a widget. Everything is dynamically generated. That's one of the beauties of using the API. Your results, defined and formatted exactly the way you would like them to be.
The API is being called with the following:
$rss = simplexml_load_file('http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=YOUR_ZILLOW_ID&address='.$street.'&citystatezip='.$citystatezip);
The API is being called with the following:
$rss = simplexml_load_file('http://www.zillow.com/webservice/GetSearchResults.htm?zws-id=YOUR_ZILLOW_ID&address='.$street.'&citystatezip='.$citystatezip);

- Darryll Whaley, "darryll"
- Contributions:33
Right thanks, and I see how it concatenates the form values grabbed during post, I guess at this point I am just wondering why I could not see the PHP before, all I saw was a form posting itself with no calls, know what I mean?
So all the submit button does is repost the page and then the variables are populated and sent to zillow then it just parses the XML return in a variable to traverse, and display. Is that about right?
So all the submit button does is repost the page and then the variables are populated and sent to zillow then it just parses the XML return in a variable to traverse, and display. Is that about right?

- Nexus Software
- Contributions:37
Yes, that's it. PHP is so blah though. It get's the job done, sort of, and sometimes it is easier using PHP. But doing the same thing and more with .Net is often even simpler and a lot more sexy. I guess for me that means the language constructs are so much more organized, well thought out and functional. I didn't always feel that way, been writing in PHP since it first came out, but Microsoft has really gone all out with the latest releases of the .Net Framework. I better stop here, I could go on for days expounding on the benefits of .Net.
A very basic example, written in .Net utilizing only the minimum number of fields is at: http://nexwebsites.com/Real-Estate/Portland-Maine/
A very basic example, written in .Net utilizing only the minimum number of fields is at: http://nexwebsites.com/Real-Estate/Portland-Maine/

- Darryll Whaley, "darryll"
- Contributions:33
I am still new to PHP, really to all web dev stuff, the only .NET I am familiar with is the SDK I used when learning C++ back in Visual Studio. Though now I cant stand to use the IDE :)
I like the OO parts of PHP though, because classes and structs were my norm for a while, and the object aspect of it all is familiar at least.
Can you tell me though, last question I hope :) where is the PHP on your first example site, the http://nexwebsites.com/Real-Estate/Zestimate.htm one ? Why in the source is there no <?php ... ?> ?
I like the OO parts of PHP though, because classes and structs were my norm for a while, and the object aspect of it all is familiar at least.
Can you tell me though, last question I hope :) where is the PHP on your first example site, the http://nexwebsites.com/Real-Estate/Zestimate.htm one ? Why in the source is there no <?php ... ?> ?



Zestimate API in iFrame help
-
- 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.