Why search result of api.github.com/code/search differs from github.com web search?

I’m trying to search with REST api, but the result differs from my search on github website.

Say I’m searching: GitHub Octocat, I just using the following:

Could anyone tell why this happened? Thanks.


Welcome to GitHub Community :wave:

I tried with your query I am getting the same result set. Could you explain a bit more.