Skip to content
Discussion options

You must be logged in to vote

Hi @AayuAmor 👋 Great questions — you're thinking in exactly the right direction.

Polling GitHub’s REST API can work, but to keep things efficient and stay within rate limits, here are some best practices and answers to your specific points:

✅ 1. Yes — Use Conditional Requests (ETags)
GitHub REST API supports ETags and the If-None-Match header, which lets you ask:

"Has this resource changed since I last saw it?"

If nothing changed, GitHub returns 304 Not Modified — which doesn’t count against your rate limit.

✅ Recommended: Store ETags from responses and reuse them in future requests.

Docs: https://docs.github.com/en/rest/overview/resources-in-the-rest-api#conditional-requests

✅ 2. Yes — W…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AayuAmor
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
4 participants