I'm using this api: https://api.github.com/search/repositories?sort=stars&order=desc&q=language:C++
to find C++ repositories.
But the return page is all language:C
, Why?
Lets keep aside about searching a repositories using API's for moment to understanding the expected results
When you search the C++
from github search engine then you will find very less amount of C++
repositories were C
repositories also fetched.
But when you search for cpp
from github search engine then you will get 95% of C++
repositories.
So same will work for API's
. I tested same by API and got expected results.