You either use this: /repos/:owner/:repo/readme Or you just change it to this: GHContent getReadme(){ return getFileContent("README.md"); }