# Api call returns nothing when too many requests

**URL:** https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958
**Category:** Support
**Created:** [March 13, 2017, 7:22am UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958 "2017-03-13T07:22:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [March 13, 2017, 7:22am UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/1 "2017-03-13T07:22:36Z")

</div>

I want to get a list of topic with api calls and show their average rating in my android app but I cant get more than about 36 topic at once and the api return empty if I go more than that. I tried to increase `max user api reqs per minute/day` but it didn’t help.

Is there any other rate limits that I need to increase?

---

<div class="post-metadata">

### Author: ![hnaseri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hnaseri/32/120660_2.png) [@hnaseri](https://meta.discourse.org/u/hnaseri)
#### Post date: [March 13, 2017, 10:09am UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/2 "2017-03-13T10:09:28Z")

</div>

I have found the following file. Is it related to my problem? and if it is, How should I increase the limit here?

> <https://github.com/discourse/discourse_docker/blob/master/templates/web.ratelimited.template.yml>

---

<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: [March 13, 2017, 1:24pm UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/3 "2017-03-13T13:24:48Z")

</div>

Add the following section into your `app.yml`

```plaintext
params:
  reqs_per_second: 12
  burst_per_second: 12
  reqs_per_minute: 200
  burst_per_minute: 100

```

Edit to taste.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 13, 2019, 4:08am UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/4 "2019-05-13T04:08:27Z")

</div>



---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [May 13, 2019, 10:13am UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/5 "2019-05-13T10:13:43Z")

</div>

@hnaseri Did that fix your issues?

---

<div class="post-metadata">

### Author: ![DDo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ddo/32/142669_2.png) [@DDo](https://meta.discourse.org/u/DDo)
#### Post date: [November 5, 2020, 12:46pm UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/6 "2020-11-05T12:46:04Z")

</div>

@sam is that still the valid solution?  
I create Users and add them to groups via api calls, and now get responses “Slow down, too Many Requests from this IP Address” - or is there a setting where I can adjust the number of requests allowd for this particular IP Address, or for the api user - that would be safest, I think.

Thank you

---

<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: [November 5, 2020, 11:54pm UTC](https://meta.discourse.org/t/api-call-returns-nothing-when-too-many-requests/58958/7 "2020-11-05T23:54:16Z")

</div>

See:

> [@Available settings for global rate limits and throttling](https://meta.discourse.org/t/global-rate-limits-and-throttling-in-discourse/78612):
>
> Discourse ships with 3 different global rate limits that can be configured by site admins. Global per-ip rate limits These limits apply to every unique IP address that hits the Discourse application. (files that are served directly from the filesystem or the CDN are excluded) By default this rate limit is enabled, you may disable it or set it to a reporting mode. DISCOURSE\_MAX\_REQS\_PER\_IP\_MODE : default block, this rate limit applies out of the box. (other options are warn, warn+block, and n…

For a full document of our current rate limits.
