502 Bad Gateway: Access limits?

I am accessing Companies House for a large number of clients on a daily basis and I regularly encounter issues where I can’t open the website for the specific client (either manually or programmatically). It hangs for a period and I then get 502 Bad Gateway.

What is the limit in terms of client access per day? I assume I am breaching some sort of limit?

Thank you

The standard API request rate is 600 requests per five minutes - for IP addresses, its 2000 requests per five minutes.

SDN

I think Companies House may have some periodic issues currently (see other posts on this forum).

I don’t think you get a 502 if you exceed rate limits. I think that will return a 429, maybe a 403 at some point (it’s in the docs I think or on posts in this forum, I just can’t remember right now).

At any rate, this is something you should be managing (especially if your system will be executing request on behalf of others). Companies House have been explicit that if you don’t manage these things (and just rely on them to say “too many”) at some point your service may be blocked. (You may be able to get this reinstated but that’s at their discretion and it could take some time…)

More information on rate limiting (and links to the Companies House Documentation on this) in replies in this thread:

Good luck.