# API to query Juliahub package info?

**URL:** <https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788>\
**Category:** Package Management\
**Tags:** question, packages, juliahub\
**Created:** [December 12, 2024, 9:02pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788 "2024-12-12T21:02:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarElrefaei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/omarelrefaei/32/43002_2.png) [@OmarElrefaei](https://discourse.julialang.org/u/OmarElrefaei)\
**Post date:** [December 12, 2024, 9:02pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788/1 "2024-12-12T21:02:11Z")

</div>

I was wondering if there is a way to programmatically access [juliahub packages](https://juliahub.com/ui/Packages) (not the computation platform). I want to query package names, stars, install stats, etc.

Either an API or exported dataset (regularly updated) would do. I want to query the ecosystem, and I thought that would be a much cleaner way than trying to scrape github somehow.

I couldn’t find anything relevant in the docs for [juliahub](https://help.juliahub.com/juliahub/stable/) nor [juliahub.jl](https://github.com/JuliaComputing/JuliaHub.jl/)

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [December 12, 2024, 9:08pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788/2 "2024-12-12T21:08:47Z")

</div>

With respect to package usage, JuliaHub is a consumer of the community statistics, available here:

> [@Announcing: package download stats!](https://discourse.julialang.org/t/announcing-package-download-stats/69073):
>
> After some years of getting the package server architecture in place and working (mostly) reliably, @staticfloat and I finally had some time to work on collecting logs into a data warehouse (we’re using [Snowflake](https://www.snowflake.com)) and designing a set of queries over the logs that we can run and publish regularly. The current public aggregated stats are available with the prefix https://julialang-logs.s3.amazonaws.com/public\_outputs/current/ followed by a rollup name and the suffix .csv.gz indicating that all t…

That doesn’t include GitHub stargazer counts, however. I don’t believe we have a public API for our cache of it, but GitHub does:

> **[REST API endpoints for repositories - GitHub Docs](https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#get-a-repository)**
>
> Use the REST API to manage repositories on GitHub.

---

<div class="post-metadata">

**Author:** ![OmarElrefaei](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/omarelrefaei/32/43002_2.png) [@OmarElrefaei](https://discourse.julialang.org/u/OmarElrefaei)\
**Post date:** [December 12, 2024, 10:01pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788/3 "2024-12-12T22:01:07Z")

</div>

oh, thanks. I couldn’t find that post with discourse search.

EDIT: sorry @mbauman, how about things like dependencies, repo url etc.  
Does JuliaHub parse these from here directly ([GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General))?  
and compute other things like “dependants”, or the readme itself?

I assume JuliaHub-packages is not open source?

---

<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:** [December 14, 2024, 8:39pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788/4 "2024-12-14T20:39:59Z")

</div>

> [@OmarElrefaei](#):
>
> dependencies

> **[GitHub - JuliaEcosystem/PkgDeps.jl: More insights about your packages dependencies](https://github.com/JuliaEcosystem/PkgDeps.jl)**
>
> More insights about your packages dependencies

> [@OmarElrefaei](#):
>
> repo url

You find it in the registry.

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [December 14, 2024, 9:29pm UTC](https://discourse.julialang.org/t/api-to-query-juliahub-package-info/123788/5 "2024-12-14T21:29:09Z")

</div>

You might also find PackageAnalyzer.jl useful.
