huchenme / github-trending-api

:octocat: The missing APIs for GitHub trending projects and developers 📈
https://ghapi.huchen.dev/
MIT License
752 stars 105 forks source link

spoken_language_code is Invalid? #102

Closed zicjin closed 4 years ago

zicjin commented 4 years ago

https://github-trending-api.now.sh/repositories?since=weekly&spoken_language_code=English

https://github-trending-api.now.sh/repositories?since=weekly&spoken_language_code=Chinese

The result is the same.

huchenme commented 4 years ago

your query parameters are wrong: it should be en and zh, please refer this link for list of languages.

zicjin commented 4 years ago

so, Why https://github-trending-api.now.sh/languages could use name to pass parameters. I can use "Emacs Lisp" instead of "emacs-lisp" to get the correct results.

zicjin commented 4 years ago

it's interesting. https://github-trending-api.now.sh/repositories?since=daily&language=common-lisp https://github-trending-api.now.sh/repositories?since=daily&language=Common-Lisp The two links get different results. But they are all Common-Lisp projects.