Could you expand on that side note? Seems interesting and I'm not familiar with the GH API.
You need a way to get to the next page. Some APIs might return it in the JSON response. GitHub returns it in the Link header (not really a custom header). Details here: https://docs.github.com/en/rest/guides/traversing-with-pagin...