I’m trying to use the Github API to search all repos in an organization with the criteria of a keyword.
For instance, I want to search the organization called Microsoft, for all repos that contain the word “cognitive” in the repo name or description. I don’t want the search to look in the files in the repo itself. How would I do that?
Everything I try gives me way too many pages back, so I think it must be searching all pages for all instances of the word “cognitive”. But that’s a guess. I don’t really know why I get so many pages back.
When I do a manual search on Github with the “cognitive” keyword, it returns only 62 repos:
But I must do this search using the API so I can store the list of URLs. Here is what I have so far, but it’s too many pages. Maybe I have some parameters incorrect?