# \[GitHub.jl\] Getting the list of languages from a github repository

**URL:** https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455
**Category:** Web Stack
**Tags:** github, api
**Created:** [June 6, 2021, 12:25am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455 "2021-06-06T00:25:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Azzaare](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/azzaare/32/21008_2.png) [@Azzaare](https://discourse.julialang.org/u/Azzaare)
#### Post date: [June 6, 2021, 12:25am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455/1 "2021-06-06T00:25:11Z")

</div>

I am a bit lost on how to make a custom request to the GitHub API to get the list of languages of a repo. Any idea?

The API link is here: [Repositories - GitHub Docs](https://docs.github.com/en/rest/reference/repos#list-repository-languages)

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [June 6, 2021, 1:19am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455/2 "2021-06-06T01:19:05Z")

</div>

Not using GitHub API, but `PackageAnalyzer` can do that: [Home · PackageAnalyzer.jl](https://juliaecosystem.github.io/PackageAnalyzer.jl/dev/).

Also, depending on your use case you don’t need github API to get their language count, you can directly run linguist locally: [GitHub - github/linguist: Language Savant. If your repository's language is being reported incorrectly, send us a pull request!](https://github.com/github/linguist)

---

<div class="post-metadata">

### Author: ![Azzaare](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/azzaare/32/21008_2.png) [@Azzaare](https://discourse.julialang.org/u/Azzaare)
#### Post date: [June 6, 2021, 1:54am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455/3 "2021-06-06T01:54:39Z")

</div>

Thanks, @giordano ! I did not know PackageAnalyzer, but this is great. I might use it for other stuff …  
Linguist doesn’t fit the bill as I don’t plan to clone the repositories.

My exact use case is for the StaticWebPages.jl package that generates a website. One of the features is to show off some GitHub repositories (example here: [https://baffier.fr/software.html](https://baffier.fr/software.html))  
So, the list of languages available through the API would be the best (and do not require additional dependencies, which is always nice)
