Reputation: 21
I am requesting github more with REST requests and after 60-th request I got error:
Invoke-RestMethod : {"message":"API rate limit exceeded for 211.24.122.123. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}
I know about rate limit and have checked docs by the link above.
Added to my request ?client_id=xxxx&client_secret=yyyy
but it still doesn't work
Could you give an example of request for increasing the rate? Please
thanks
Upvotes: 2
Views: 4811
Reputation: 13685
You're not making an authenticated requests, you will need to create a PAT and call with the header Authentication: Bearer $TOKEN
, which will give you a much more reasonable throttle.
Upvotes: 0