API rate limit is 60 for authenticated request

Hi, community members

please check the following cases

Invoke-WebRequest https://api.github.com/repos/aspnet/AspNetCore/license -Headers @{'User-Agent' = 'test'; 'Authorization' = 'Token [token]'; 'Accept' = '*/*'}

Status: 200 OK

X-RateLimit-Limit: 60

Why X-RateLimit-Limit is 60?

curl -i https://api.github.com/repos/aspnet/AspNetCore/license -H 'User-Agent: test' -H 'Authorization: Token [token]'

Status: 301 Moved Permanently
X-RateLimit-Limit: 5000

Why status 301?

Invoke-WebRequest https://api.github.com/repos/travist/jsencrypt/license -Headers @{'User-Agent' = 'test'; 'Authorization' = 'Token [token]'; 'Accept' = '*/*'}

Status: 200 OK
X-RateLimit-Limit: 5000

What is the difference between  “/repos/travist/jsencrypt/license” and “repos/aspnet/AspNetCore/license”?

The AspNetCore repo moved to the dotnet organization, which explains the 301. Not sure about the rate limit, but given that you’re getting the correct one with curl, that must be something local to do with Invoke-WebRequest.