I am attempting to pull some Zillow data from XML but am having trouble loading the XML. My code is as follows (I replaced the API key with API KEY in URL):
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
$.ajax({
url: "http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=API KEY&address=10608+floral+park+lane&citystatezip=20878",
dataType: 'xml',
success: function(data){
console.log(data);
}
});
</script>
However, I am getting the following error:
XMLHttpRequest cannot load http://www.zillow.com/webservice/GetDeepSearchResults.htm?zws-id=API KEY&address=10608+floral+park+lane&citystatezip=20878. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http:// WEBSITE DOMAIN' is therefore not allowed access.
Could anybody point me in the right direction / tell me what exactly is going on?