-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The API now throws a 403 Client error #19
Comments
It looks like Redfin is expecting a valid user-agent string and not just 'redfin', When I change it to 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' The call works |
@dreed47 would the change be done just in redfin.py?
|
these changes aren't working |
I've been unable to get this to work consistently. Most likely Redfin as attempting to block external API traffic. I would recommend moving away from this integration unless/until Redfin publishes an official API. |
When I curl the underlying property URLs i get a rate-limiting error saying
“we think you’re a robot” … so I think you’re right :|
…On Wed, Jan 8, 2025 at 7:59 AM dreed47 ***@***.***> wrote:
I've been unable to get this to work consistently. Most likely Redfin as
attempting to block external API traffic. I would recommend moving away
from this integration unless/until Redfin publishes an official API.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEWS5DQHIB27TZD5JEMIMFT2JVDMTAVCNFSM6AAAAABTP33352VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZYGAZTGNRXGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This stopped working at least 2 weeks ago. Running the code examples now returns a 403 Forbidden error. Whats odd is that if you just copy the url into a browser it returns a 200 with good data.
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/redfin/redfin.py", line 15, in meta_property return self.meta_request('api/home/details/' + url, { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/redfin/redfin.py", line 23, in meta_request response.raise_for_status() File "/Users/david/Library/Python/3.11/lib/python/site-packages/requests/models.py", line 1024, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://redfin.com/stingray/api/home/details/mainHouseInfoPanelInfo?accessLevel=1&propertyId=43790344&listingId=
The text was updated successfully, but these errors were encountered: