Froren / realtorca

API wrapper for realtor.ca MLS website
195 stars 75 forks source link

PropertyDetails endpoint not working #33

Open henry-1987 opened 2 years ago

henry-1987 commented 2 years ago

Pretty straightforward. In February Realtor updated their app and the old version is obsolete.

Now the PropertyDetails endpoint doesn't work.

Does anyone have a solution for extracting data?

mondrus96 commented 2 years ago

Hi @henry-1987 I'm running into a similar issue (I'm trying to use realtor.post() to get details for multiple listings however) did you find a solution?

henry-1987 commented 2 years ago

@mondrus96 Not as of yet. I haven't had enough time to look into it.

mcgeddes11 commented 2 years ago

From what I can tell they updated the API domain and added some very easily spoofable headers. I think the new domain is: api2.realtor.ca instead of api37.realtor.ca.

The headers that I used for the search request are: {"Referer": "https://www.realtor.ca/", "Origin": "https://www.realtor.ca/", "Host": "api2.realtor.ca"}

I haven't tested the listing details endpoint, but this seems to work for me