Skip to content

figure out how to reduce the 5000 gh hits / hr limits - whether allowing more requests or decreasing requests quantity #1186

Closed as not planned

Description

@JacobStephens2

Yes, you can increase your GitHub API rate limit from 5,000 to 15,000 requests per hour by upgrading to a GitHub Enterprise Cloud subscription. [1] (https://github.blog/changelog/[2](https://www.endorlabs.com/learn/how-to-get-the-most-out-of-github-api-rate-limits)020-07-27-increase-to-api-limits-in-github-enterprise-subscriptions/), [2] (https://www.endorlabs.com/learn/how-to-get-the-most-out-of-github-api-rate-limits)
However, if an enterprise upgrade is not viable, you cannot request a custom limit increase for a standard personal account. Instead, you must use architectural workarounds to optimize your quota. [1] (badges/shields#8339), [2] (https://stackoverflow.com/questions/13394077/is-there-a-way-to-increase-the-api-rate-limit-or-to-bypass-it-altogether-for-git)

  1. Official Paths to Higher Limits

• GitHub Enterprise Cloud: Upgrading grants your GitHub Apps and OAuth Apps up to 15,000 requests per hour. The request must target resources within the enterprise organization. [1] (https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api), [2] (https://github.blog/changelog/2020-07-27-increase-to-api-limits-in-github-enterprise-subscriptions/)
• GitHub Actions (GITHUB_TOKEN): If you are running tasks inside GitHub Actions, the default GITHUB_TOKEN is limited to 1,000 requests per hour per repository. However, if the repository belongs to an Enterprise Cloud account, this automatically scales up to 15,000 requests per hour. [1] (https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api)

  1. Architectural Alternatives (Free)

If you cannot upgrade to Enterprise, you can stay under the 5,000 limit using these strategies:
• Switch to the GitHub GraphQL API: The GitHub REST API charges you 1 credit per HTTP request. If you need to fetch a list of items and then details for each item, you can burn through 5,000 requests instantly. The GitHub GraphQL API allows you to batch multiple resource requests into a single query, spending points based on data complexity rather than the number of HTTP requests. [1] (https://stackoverflow.com/questions/13394077/is-there-a-way-to-increase-the-api-rate-limit-or-to-bypass-it-altogether-for-git), [2] (https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api), [3] (https://www.endorlabs.com/learn/how-to-get-the-most-out-of-github-api-rate-limits)
• Conditional Requests (Caching): Use the If-None-Match and If-Modified-Since HTTP headers. When you make a request and the data hasn't changed, GitHub returns a 304 Not Modified status code. 304 responses do not count against your 5,000/hr rate limit.
• Token Rotation: For large-scale background data scraping or external applications, you can distribute the load by authenticating with multiple tokens or allowing users to authenticate via OAuth using their own personal 5,000/hr caps. [1] (badges/shields#8339)
If you are hitting these limits, let me know what specific tasks your script or application is performing (e.g., fetching repository metadata, syncing issues, or monitoring CI/CD). I can help you refactor your API logic or write a conditional fetching script to save your quota.

Activity

  1. added
    enhancement
    needs-triage
    wontfix
    and removed
    needs-triage
    on Oct 23, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Closing as a duplicate of #739. The "fewer requests" half is #739's idle-polling reduction, and quota observation already exists (the Inbox quota reserve from #1197). The "raise the ceiling" idea (an Enterprise plan, or GitHub App installation tokens, which get their own rate limit) is carried over to #739 as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions