1

I am trying to use the Zillow API but I keep getting the following error and I'm not sure what I am doing wrong. I posted a screenshot of what my API settings are on Zillow and I think that might be the issue but I am not sure. Asking to get my code checked and if my settings are wrong, I've tried changing it but Zillow keeps telling that the website is experiencing an error when I try to change it so I do not know for sure

import zillow
key = 'my-zillow-key'
address = "3400 Pacific Ave., Marina Del Rey, CA"
postal_code = "90292"
api = zillow.ValuationApi()
data = api.GetSearchResults(key, address, postal_code)
data = api.GetDeepSearchResults(key, "826 Entrada St, Bossier City, LA", "71111")

enter image description here

Error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zillow/api
.py", line 130, in GetDeepSearchResults
    place.set_data(xmltodict_data.get('SearchResults:sear
chresults', None)['response']['results']['result'])
KeyError: 'response'

During handling of the above exception, another exception
 occurred:

NOTE: neither data = api.GetSearchResults(key, address, postal_code) data = api.GetDeepSearchResults(key, "826 Entrada St, Bossier City, LA", "71111") ran by itself works

4

2 回答 2

1

There is another library called pyzillow. And the APIs work for me. Maybe you can give it a try.

于 2020-07-05T21:57:56.583 回答
1

It seems that the Zillow API is being (very unceremoniously) turned down. It's possible your original issue was different and would have been addressed by swapping to pyzillow, but I suspect at this point you're out of luck unless you can get access to the Bridge APIs that Zillow appears to be migrating to.

于 2021-01-03T10:53:58.683 回答