# Is there some kind of rate limit for API calls?

**URL:** <https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398>\
**Category:** Support\
**Created:** [2017年八月19日 23:21 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398 "2017-08-19T23:21:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SwisherSweet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swishersweet/32/119523_2.png) [@SwisherSweet](https://meta.discourse.org/u/SwisherSweet)\
**Post date:** [2017年八月19日 23:21 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398/1 "2017-08-19T23:21:55Z")

</div>

I’m using the API to create users from a .Net console app via the API but for some reason when running my code in production with dozens of new users being added back to back, some don’t get added. But when I run the same code with same source data in dev, slowly one user at a time, it works just fine.

I reads bits and pieces about a possible API rate limit. Is there a rate limit for the API and if so, what is it and how can I adjust it?

Thank you.

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2017年八月19日 23:50 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398/2 "2017-08-19T23:50:28Z")

</div>

Search site settings for api. There are daily and per minute settings.

---

<div class="post-metadata">

**Author:** ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Post date:** [2017年八月19日 23:55 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398/3 "2017-08-19T23:55:18Z")

</div>

Also possible rate limiting for all requests if `web.ratelimited.template.yml` is included, which it is by default:

> <https://github.com/discourse/discourse_docker/blob/master/samples/standalone.yml#L10-L17>

---

<div class="post-metadata">

**Author:** ![SwisherSweet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swishersweet/32/119523_2.png) [@SwisherSweet](https://meta.discourse.org/u/SwisherSweet)\
**Post date:** [2017年八月20日 00:30 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398/4 "2017-08-20T00:30:28Z")

</div>

As it turns out, I’m getting this error:

> New registrations are not allowed from your IP address (maximum limit reached). Contact a staff member.

… which is discussed in [this thread](https://meta.discourse.org/t/registration-limit-from-ip-address/33969).

I changed the make some adjustments to the API rate limit and set the “max new accounts per registration ip” setting to zero and it’s now working fine.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2017年八月21日 12:46 UTC](https://meta.discourse.org/t/is-there-some-kind-of-rate-limit-for-api-calls/68398/5 "2017-08-21T12:46:57Z")

</div>


