© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
11 replies
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()
HttpClient.GetAsync()
causes it to return 403 forbidden as a response. This just seems kind of odd, although maybe I'm just missing something.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

403 Forbidden
C#CC# / help
17mo ago
Getting unexpected result when trying to load resources [Answered]
C#CC# / help
4y ago
Getting 403 Forbidden in swagger and postman after restarting project.
C#CC# / help
3y ago
Im getting an error code when trying to call a method.
C#CC# / help
6mo ago