I am trying to get the readme file in a bunch of repos (that I don't own), and the problem I came across is that sometimes people name the readme file in different way (ex. README.md, README.MD, Readme.md or readme.md)
what I am doing now
GET https://api.github.com/repos/REPO_NAME/contents/README.md
the problem is that it doesn't return the readme file if it's named in a different way.
Also tried to use
GET https://api.github.com/search/code?q=repo:REPO_NAME+filename:readme
But I keep hitting the API limit for search (because I have lots of repos I am using)