Skip to content
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

403 errors at low record limits #114

Open
dmr5090 opened this issue Feb 1, 2025 · 5 comments
Open

403 errors at low record limits #114

dmr5090 opened this issue Feb 1, 2025 · 5 comments

Comments

@dmr5090
Copy link

dmr5090 commented Feb 1, 2025

Hey all - did anything change with the record limits?

I'm suddenly encountering 403 errors at what I thought would be pretty strict parameters.

After some testing, it appears the limit is 1k records. (Did it used to be 10k?)

For example, when I test with:
city = 'San Antonio'
state = 'TX'
past_days = 26
radius = 1
listing_type='sold'

I get a 403 error. But when I change past_days to 25, 976 records are returned (as of today, 2/1/25).

1k records is fairly restrictive, though I understand this may be beyond HomeHarvest's control. Is there a built-in pagination mechanism?

@alphasynth
Copy link

alphasynth commented Feb 3, 2025

I've typically received 403 errors if I try to run too many requests within a given time period. I wonder if Realtor.com is rate limiting your IP address? I was able to make a request to show sold properties within the past 26. days.

On Redfin, 1,020 homes show up as sold within the past 1 month as of 2/3/2025 which appears to be consistent with the results you are receiving of ~976 homes as of 2/1/2025.

https://www.redfin.com/city/16657/TX/San-Antonio/filter/include=sold-1mo

@dmr5090
Copy link
Author

dmr5090 commented Feb 3, 2025

Definitely could be too many requests, but I suspect it had to do with some rate limit on records returned. The issue was when I switched past_days to 26 from 25, I got the 403 error, but when I switched it back to 25, the results returned as expected. I think HomeHarvest's limit used to be 10k records and wonder whether HH or Realtor implemented some additional throttling to limit it from 10k to 1k. Are you able to return >1k records in one query without hitting the 403 @alphasynth ?

@alphasynth
Copy link

@dmr5090 - yes I am able to return >1k records without hitting the 403 error. Just ran a query for sold homes in San Antonio within the past 40 days which returned 1589 properties.

@dmr5090
Copy link
Author

dmr5090 commented Feb 3, 2025

Ugh - OK, cool, thanks for confirming @alphasynth

@ZacharyHampton
Copy link
Owner

Try setting extra_property_data to False.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants