# Rate limits changing for SonarCloud APIs

**URL:** <https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135>\
**Category:** Announcements\
**Created:** [April 13, 2023, 1:08pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135 "2023-04-13T13:08:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 13, 2023, 1:08pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/1 "2023-04-13T13:08:39Z")

</div>

Hi all,

On Monday, April 24th we’ll adjust rate limits on some SonarCloud APIs in order to ensure that we can continue to operate the service smoothly and with optimum performance.

There should be no impact on routine analysis.

The primary impacts will be on scripts that rapidly make repeated API requests. Unfortunately, users who share a proxy with such scripts may also be impacted in their use of the SonarCloud UI. If you find yourself in this situation, please wait a few minutes and try again. If you are the owner of an impacted script, consider adding some `sleep`s to your loops. 😃

&nbsp;  
Ann & the SonarCloud Team

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 13, 2023, 1:11pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/2 "2023-04-13T13:11:07Z")

</div>

Pinned on April 13, 2023, 1:11pm UTC



---

<div class="post-metadata">

**Author:** ![sodul](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sodul/32/6385_2.png) [@sodul](https://community.sonarsource.com/u/sodul)\
**Post date:** [April 18, 2023, 12:49am UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/3 "2023-04-18T00:49:39Z")

</div>

We have a few scripts that communicate with the API. We have a few questions:

- are there a header in the http responses that we can use to figure out the current rate limit and when it resets?
- is there documentation on the rater limits and how they are calculated?
- is there a different rate limit for paying customers vs free customers?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 18, 2023, 12:05pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/4 "2023-04-18T12:05:21Z")

</div>

Hi,

There’s not a different rate for paid versus free users.

As long as your request rate is reasonable, you should be fine.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![sodul](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sodul/32/6385_2.png) [@sodul](https://community.sonarsource.com/u/sodul)\
**Post date:** [April 18, 2023, 8:31pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/5 "2023-04-18T20:31:22Z")

</div>

Hi Ann, thanks for the clarification.

Per my prior post is the actual rate limit documented? For example GitHub documents their API rate limit as well as how to check the current usage and limits. It would be quite useful to know the limits so that we can take the information into account when designing our internal tools.

> **[Rate limit - GitHub Docs](https://docs.github.com/en/rest/rate-limit?apiVersion=2022-11-28)**
>
> Use the REST API to check your current rate limit status.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 21, 2023, 12:55pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/9 "2023-04-21T12:55:56Z")

</div>

Hi @sodul,

The rates aren’t currently documented, but it’s an excellent point and we’ve put it on the list. So you know, the changes we’re implementing are in response to some abuse, and it’s likely that we’ll further adjust them going forward. That said, if you can keep it to under 1k requests per minute, you should be good. 😃

Does that help?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![AndySmith](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@AndySmith](https://community.sonarsource.com/u/AndySmith)\
**Post date:** [April 24, 2023, 9:15am UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/10 "2023-04-24T09:15:07Z")

</div>

Hi,

This morning all of our SonarCloud GitHub Actions ([GitHub - SonarSource/sonarcloud-github-action: Integrate SonarCloud code analysis to GitHub Actions](https://github.com/SonarSource/sonarcloud-github-action)) have started failing with the message “Please retry analysis of this Pull-Request directly on SonarCloud”

Is this related to the rate limit change?

Thanks,  
Andy

---

<div class="post-metadata">

**Author:** ![Martin\_Bednorz](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/martin_bednorz/32/11703_2.png) [@Martin\_Bednorz](https://community.sonarsource.com/u/Martin_Bednorz)\
**Post date:** [April 24, 2023, 9:28am UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/11 "2023-04-24T09:28:10Z")

</div>

Hello @AndySmith ,

We have an ongoing incident related to GitHub Actions: [SonarCloud Status - SonarCloud - GitHub actions is failing with NodeJS 12 error](https://sonarcloud.statuspage.io/incidents/vt6fdtpwf0nh). It should not be related to the rate limits change.

---

<div class="post-metadata">

**Author:** ![sodul](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sodul/32/6385_2.png) [@sodul](https://community.sonarsource.com/u/sodul)\
**Post date:** [April 24, 2023, 8:31pm UTC](https://community.sonarsource.com/t/rate-limits-changing-for-sonarcloud-apis/89135/12 "2023-04-24T20:31:04Z")

</div>

Ann,

I’m 100% supportive of rate limits, a lot of engineers do forget that SaaS is backed by real hardware even it abstracted by containers, clouds, or other scaling solutions.

At the moment our API calls to SonarCloud are only triggered once a week, and they should only be a few dozen calls, maybe a few hundred, total, per run.

Thanks for the clarification.
