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.

2 Likes

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. 

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!!

1 Like

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

1 Like