4chan / 4chan-API

Documentation for 4chan's read-only JSON API.
http://www.4chan.org/
1.03k stars 74 forks source link

HTTP 503 Error when attempting retrieve archive.json #59

Open jebagley06 opened 6 years ago

jebagley06 commented 6 years ago

My script keeps receiving a Failed HTTP (503 Error) when attempting to retrieve the contents from http://a.4cdn.org/pol/archive.json. It was working yesterday but hasn't worked since.

desuwa commented 6 years ago

Your script must have exceeded the rate limits. You'll get unblocked eventually.

jebagley06 commented 6 years ago

Ok thanks. What's the limit? And do you know how long it takes to become unblocked?

desuwa commented 6 years ago

The limit is 1 request per second. It's on the doc page. In reality it's much higher than that but at 1 rps you won't have any issues.

And do you know how long it takes to become unblocked?

Nope, sorry. Is it your home IP that was blocked?

mozai commented 6 years ago

bad client requests should be 4xx --- 5xx is for errors on the server-side.

chairus commented 5 years ago

@desuwa Are the rate limits per IP?

desuwa commented 5 years ago

Are the rate limits per IP?

Yes

ZincNitrogen commented 2 months ago

I believe I have also just gotten rate limited. I haven't seen any indication in the docs that the rate limit is 1 rps. Did you ever get unblocked? I have reached a stall for a couple days now.