0

I'm trying to call the zillow api webservice url from angular js.

The following is my source code :

$http.get('http://www.zillow.com/webservice/GetZestimate.htm?zws-id=<ZWSID>&zpid=48749425').success(function(response) {
                                alert(response) ;
                                console.log(response);
                            });

It is giving the following error :

XMLHttpRequest cannot load http://www.zillow.com/webservice/GetZestimate.htm?zws-id=<ZWSID>&zpid=48749425.No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8080' is therefore not allowed access

Please anyone help me. Thanks in advance.!

java developer
  • 393
  • 2
  • 7
  • 20
  • See this answer. http://stackoverflow.com/questions/20889011/zillow-api-errorno-access-control-allow-origin-header-is-present – Travis Collins Apr 08 '15 at 02:18

1 Answers1

1

From this Link : Zillow API Error:"No 'Access-Control-Allow-Origin' header is present"

Zillow doesn't support a JavaScript API so we would need to create own server-side service that queries it (forwards the query) and sits on the same domain as our HTML page.

The following post gives the full code using java

How to send data to an API call and get it back, using zillow.com API

Community
  • 1
  • 1
java developer
  • 393
  • 2
  • 7
  • 20