What is considered as content creation in Github

Hi,

I have been trying to use Github Rest APIs to create issues, add comments, add assignees, close issues, applying labels. But most of the time when this number is large a 403 response is returned stating You have exceeded a secondary rate limit and have been temporarily blocked from content creation. Please retry your request again later. Looking at the documentation I have introduced a delay of 2-3 seconds before issuing the request. I want to understand what all from the above is considered as content creation. Do all the above requests are considered content creation? Or only -

  • creating issue
  • adding comment

you can check this out,

https://docs.github.com/en/rest/overview/resources-in-the-rest-api#checking-your-rate-limit-status

Thanks, however, I don’t face an API limiting problem, I am way under the limit of 5000 requests per hour. It’s the Secondary API Limit which is exceeded. Resources in the REST API - GitHub Docs. Based on best practices Best practices for integrators - GitHub Docs I have introduced a delay of 2-3 seconds between requests, but this is causing my application to work very slow. So I want to only put delay where content is created. And that’s the reason I want to understand what all action is considered as content creation.

since I cannot see the actual project, I’m just assuming,

or repeatedly request data that is computationally expensive may result in secondary rate limiting

that maybe is the cause of the issue even when there are gaps between requests, it might be too heavy per request,

I will check this. However are add assignees, close issues, applying labels considered as content creation?