C#C
C#4y ago
Thinker

Getting 403 forbidden when trying to call the Github API [Answered]

I'm trying to call https://api.github.com/repos/thinker227/FolderTool/releases/latest to get the latest release from a repo, and accessing the API URL from the browser works perfectly fine, but when making the request from code using HttpClient.GetAsync() causes it to return 403 forbidden as a response. This just seems kind of odd, although maybe I'm just missing something.
Was this page helpful?