GitHub Search API only returns 30 results

https://api.github.com/search/issues?q=stress+test+label:bug+language:python+state:closed

the above query should return 76 results, and when I try to run it, it only returns 30. I think GitHub returns the results in parts when it is over 30. Any idea how I can get the rest of the results?

+4
source share
1 answer

You need to use a parameter page, for example. for the next 30 pages = 2

https://api.github.com/search/issues?q=stress+test+label:bug+language:python+state:closed&page=2

You can also use the option per_pageto change the default size to 30. It supports a maximum size of 100. For example:

https://api.github.com/search/issues?q=stress+test+label:bug+language:python+state:closed&per_page=100

More information can be found here.

+14

All Articles