REST API for "List repository activities" not paginating #73014
-
GitHub REST APII'm trying to use this endpoint:
https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities Why is there no Am I missing something? The only alternative I can think of, would be to manually paginate using I would like to note, that it works perfectly well when the "per_page" value is more than enough for the full set of activities. But, the maximum allowed value for "per_page" is 100, and I have repos that have many more activities. So I definitely need the next pages... One other intermediate solution is to use the Thanks heaps. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey there @nasuoa 👋🏾 Thanks so much for reaching out in our community and welcome! We actually had a community member submit a how to on using pagination with GitHub's API to the community that I'm really excited to recommend to you. You can find that here: How To Use Pagination With GitHub's API. This more than likely will answer your question but, if you do have any additional questions or would like clarification, please feel free to follow-up and let me know! |
Beta Was this translation helpful? Give feedback.
-
This is definitely really interesting... 😅 Obviously, I guess you'll have to settle with this for now, it is not that difficult to implement the pagination with cursor and this is an ideal case for Good luck. 🍺 🍀 |
Beta Was this translation helpful? Give feedback.
No worries buddy.☺️ I am glad you found the solution.
Regarding cursor based pagination, here's an example of the headers I got when I was testing that
page
thing you were speaking about: