Skip to content
Advertisement

Tag: github-api

How get all results from github search api?

I need to get all results with github search api with pagination using. Now I use request: https://api.github.com/search/repositories?q=lib&page=1&per_page=20 I read that the responses also includes the Link header which contains a ready-made URL to the next page. In response I have link https://api.github.com/search/repositories?q=lib&page=2&per_page=20> and link to the last page: https://api.github.com/search/repositories?q=java&page=50&per_page=20 But I don’t understand how can I to implement transition

Advertisement