# Hub API Discussions

**URL:** <https://discuss.huggingface.co/t/hub-api-discussions/20008>\
**Category:** 🤗Hub\
**Created:** [July 5, 2022, 9:25am UTC](https://discuss.huggingface.co/t/hub-api-discussions/20008 "2022-07-05T09:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ademait](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ademait](https://discuss.huggingface.co/u/ademait)\
**Post date:** [July 5, 2022, 9:25am UTC](https://discuss.huggingface.co/t/hub-api-discussions/20008/1 "2022-07-05T09:25:00Z")

</div>

Hello,

I’m using the [Hub client library](https://huggingface.co/docs/huggingface_hub/main/en/index) to retrieve information of the repositories (models, datasets and spaces). But I noticed there isn’t an endpoint in the [Hub API](https://huggingface.co/docs/hub/api) to retrieve the discussions of the repositories.

Is there a way to retrieve this information? If not, is it going to be available soon?

Thank you

---

<div class="post-metadata">

**Author:** ![pierric](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierric/32/50750_2.png) [@pierric](https://discuss.huggingface.co/u/pierric)\
**Post date:** [July 5, 2022, 4:53pm UTC](https://discuss.huggingface.co/t/hub-api-discussions/20008/2 "2022-07-05T16:53:10Z")

</div>

@ademait this is not documented yet (and thus subject to changes), but you can call `/api/{models,datasets,spaces}/:namespace?/:repo/discussions` to get discussions from a given repo

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [July 6, 2022, 10:29am UTC](https://discuss.huggingface.co/t/hub-api-discussions/20008/3 "2022-07-06T10:29:20Z")

</div>

There’s also an open PR to add support for this in `huggingface_hub` [✨ Programmatic API for the community tab by SBrandeis · Pull Request #930 · huggingface/huggingface\_hub · GitHub](https://github.com/huggingface/huggingface_hub/pull/930).
