Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 4

Return more than 30 items

I've made a couple of queries to several repos looking for pull requests merged. Example of the query:

https://api.github.com/search/issues?q=repo:rpcs3/rpcs3+is:pr+is:merged.

 

They all return incomplete_results :false, but I don't see more than 30 elements on the items although the total count is higher.

 

How can I lift the limit of results returned?  I tried using a token to see if the limit would be increased but it didn't help.

 
3 Replies
Highlighted
Commander Lvl 1
Message 2 of 4

Re: Return more than 30 items

Hey, see here: https://developer.github.com/v3/#pagination for how you can get more than the default 30 items when making an API request. 

Copilot Lvl 2
Message 3 of 4

Re: Return more than 30 items

So, i need to change the per_page and then paginate through all the results? I thought I would get a more straight answer. Anyway thanks!!

Highlighted
Commander Lvl 1
Message 4 of 4

Re: Return more than 30 items

Yeah, sorry about that. This guide walks you through how to do this programmatically: https://developer.github.com/v3/guides/traversing-with-pagination/