A lot of endpoints in the GitHub API require a token and hence can’t be used directly in your website frontend

But luckily there are some cool endpoints which do not require a token.

You can find some of them below. (The official documentation shows a token in the example requests for these endpoints also as these can be used both ways)

Let’s take the user octocat for example

A GET request to **https://api.github.com/users/octocat** gives us the basic details of the user octocat like follower count, public repo count and lot more

Refer the official doc for more info

https://docs.github.com/en/rest/users/users#get-a-user

There are a lot of other endpoints which do not require an auth token. Try wandering though the docs and find the right ones

Here are some other useful endpoints

https://api.github.com/users/octocat/repos

→ Gives the data of the user’s Repositories

https://api.github.com/users/octocat/followers

→ Gives the details of the user’s followers

https://api.github.com/users/octocat/following

→ Gives the details of the accounts the user is following

https://api.github.com/users/octocat/orgs

→ Gives the details of the orgs that the user is part of