# 403 Forbidden from API on one IP address

**URL:** <http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180>\
**Category:** API Issues\
**Created:** [February 8, 2019, 9:13am UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180 "2019-02-08T09:13:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nharriman](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/nharriman/32/1081_2.png) [@nharriman](http://forum.companieshouse.gov.uk/u/nharriman)\
**Post date:** [February 8, 2019, 9:13am UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/1 "2019-02-08T09:13:36Z")

</div>

For the last few days I have been getting a 403 Forbidden message when trying to access the API. It looks like the IP address has been blocked - does anybody know if it’s possible to get it unblocked?

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [February 11, 2019, 2:52pm UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/2 "2019-02-11T14:52:47Z")

</div>

If you exceed the rate limit you will get a 403 status. As soon as you fall below that limit you are automatically ‘unblocked’

---

<div class="post-metadata">

**Author:** ![nharriman](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/nharriman/32/1081_2.png) [@nharriman](http://forum.companieshouse.gov.uk/u/nharriman)\
**Post date:** [February 11, 2019, 8:23pm UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/3 "2019-02-11T20:23:27Z")

</div>

Thanks Mark.

I have been unable to access CH from my ip for the last few days – would this be why?

Nothing has been running on there for the last few days so should it be working?

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [February 12, 2019, 11:09am UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/4 "2019-02-12T11:09:22Z")

</div>

I will contact you privately to get your IP address so we can investigate.

---

<div class="post-metadata">

**Author:** ![ryan\_skeels](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/3da27b/32.png) [@ryan\_skeels](http://forum.companieshouse.gov.uk/u/ryan_skeels)\
**Post date:** [March 8, 2019, 9:46am UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/5 "2019-03-08T09:46:46Z")

</div>

@MArkWilliams Just to confirm if you exceed the rate limit you will get a 403 status? On the documentation here ([https://developer.companieshouse.gov.uk/api/docs/index/gettingStarted/rateLimiting.html](https://developer.companieshouse.gov.uk/api/docs/index/gettingStarted/rateLimiting.html)) it states you will get a 429 status. Which is correct?

---

<div class="post-metadata">

**Author:** ![MArkWilliams](http://forum.companieshouse.gov.uk/user_avatar/forum.companieshouse.gov.uk/markwilliams/32/194_2.png) [@MArkWilliams](http://forum.companieshouse.gov.uk/u/MArkWilliams)\
**Post date:** [March 8, 2019, 3:58pm UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/6 "2019-03-08T15:58:21Z")

</div>

If you exceed the 600 requests in a 5 minute window you will get 429.  
If you go higher and exceed the AWS limit,  
or  
we ban you manually  
or  
your IP address does not match the IPs in your API restricted\_ips list you will get 403.

---

<div class="post-metadata">

**Author:** ![ryan\_skeels](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/r/3da27b/32.png) [@ryan\_skeels](http://forum.companieshouse.gov.uk/u/ryan_skeels)\
**Post date:** [March 8, 2019, 4:14pm UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/7 "2019-03-08T16:14:13Z")

</div>

@MArkWilliams thanks for the clarification. Do you have any documentation on/know what the AWS limit is? Trying to diagnose the errors I’m encountering, further in this thread: [Various errors (502, 403) occurring with no pattern - #4 by MArkWilliams](http://forum.aws.chdev.org/t/various-errors-502-403-occurring-with-no-pattern/2274/4)

---

<div class="post-metadata">

**Author:** ![haydn\_roberts](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/h/bbce88/32.png) [@haydn\_roberts](http://forum.companieshouse.gov.uk/u/haydn_roberts)\
**Post date:** [March 19, 2019, 1:52pm UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/8 "2019-03-19T13:52:31Z")

</div>

We’re having a similar issue, the API works for one of our servers but not for two others. Could you look into this for us please?

---

<div class="post-metadata">

**Author:** ![nick\_buller](http://forum.companieshouse.gov.uk/letter_avatar_proxy/v4/letter/n/cc9497/32.png) [@nick\_buller](http://forum.companieshouse.gov.uk/u/nick_buller)\
**Post date:** [October 8, 2019, 9:23am UTC](http://forum.companieshouse.gov.uk/t/403-forbidden-from-api-on-one-ip-address/2180/9 "2019-10-08T09:23:00Z")

</div>

Hi I am currently getting a 403, our IP is 185 dot 19 dot 14 dot 117. We do have a rate limiter that looks not to be working correctly. Apologies but can you unblock us.
