D
D
dron1122021-02-21 19:18:34
API
dron112, 2021-02-21 19:18:34

How to exceed the GitHub API request limit?

I'm doing a test SOS.

- When mounting the application, I make a get request to get users
( https://api.github.com/search/users?q=z ),
there is also a repos_url field to get repositories from users.

- I display 10 users per page, and I need to get repositories from all these users
(i.e. send 10 more requests), if I switch pagination, then the next 10 users appear
(get request again) and I need them too get repositories ( +10 get requests )

The problem is that gitHub has a limit on the number of requests
( https://docs.github.com/en/rest/overview/resources... )
so have to wait just to view the next users

How to hack this situation ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2021-02-21
@dron112

1. Authentication by user or application raises the limits to 5000 requests per hour (that's 50 pages per hour in your case)
2. Cache API responses so as not to request the same data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question