# API usage and website beta 403 Forbidden

**URL:** <http://forum.companieshouse.gov.uk/t/api-usage-and-website-beta-403-forbidden/4502>\
**Category:** API Question\
**Created:** [October 29, 2021, 11:09am UTC](http://forum.companieshouse.gov.uk/t/api-usage-and-website-beta-403-forbidden/4502 "2021-10-29T11:09:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![voracityemail](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@voracityemail](http://forum.companieshouse.gov.uk/u/voracityemail)\
**Post date:** [October 29, 2021, 2:31pm UTC](http://forum.companieshouse.gov.uk/t/api-usage-and-website-beta-403-forbidden/4502/2 "2021-10-29T14:31:46Z")

</div>

In your “simple application” (and your main one) you should be handling this using the rate limit headers CH send (on the http responses) rather than just counting up to 600. You may well be doing this already of course! Some info in and linked from this thread:

> **[View your request count for rate limiting](https://forum.aws.chdev.org/t/view-your-request-count-for-rate-limiting/2880/3)**
>
> Are you referring to the Streaming API or the main/document REST API? Main API Although not listed in the documentation: …I thought this was available via the http headers? I thought the X-Ratelimit-... fields were what we should use for...

Not from Companies House myself but if I recall they certainly do take IP address into consideration (including requests to both the API and website access). I can’t find the specific item on this that I remember but from a couple of years ago this thread has a response:

> **[New IP Address Rate Limiting Query](https://forum.aws.chdev.org/t/new-ip-address-rate-limiting-query/2518)**
>
> With the introduction of the new IP address rate limiting, I was hoping someone could clarify the following points - Does each IP now get the 600 calls in 300 second limit or have these numbers changed? Is there any impact on how many API keys...

Slightly more recently there’s a note about the API and more general (AWS) limits:

> **[API Limit Reached?](https://forum.aws.chdev.org/t/api-limit-reached/2929)**
>
> I’ve been using the API to check SIC codes for our new customers. I use it sporadically but recently it only seems to complete a few requests before giving me errors. I thought it was something wrong with the code I was using but upon testing it...

Good luck!

---

_[View the full topic](http://forum.companieshouse.gov.uk/t/api-usage-and-website-beta-403-forbidden/4502)._
