Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

[Github API V3] Listing repository languages only seems to support Python and C

Solved! Go to Solution.

First of all I would like to extend my thanks for the amazing documentation and API that Github provides, it is really useful to us ! 

 

The endpoint to fetch the list of languages for a specific repository only lists "Python" and "C" as the possible responses https://developer.github.com/v3/repos/#list-languages

 

I am wondering if this is by design or maybe it has not been updated ? If we refer to Github's UI there seems to be a far broader array of languages supported.

 

If this is indeed an issue and needs to be updated, would it be possible to have a rough estimate of when this could be fixed ?

Cheers !

1 Reply
Highlighted
Solution
Community Manager
Message 2 of 2

Re: [Github API V3] Listing repository languages only seems to support Python and C

Hi @Niceplace,

 

Thank you for being here! That should be an example on our documentation using the https://developer.github.com/v3/repos/#list-languages will list all the languages for the selected repository. For example:

 

https://api.github.com/repos/andreagriffiths11/spanish-quiz/languages

Returns:

{
  "Java": 7200
}

 

I hope this helps!


My very best,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!