# Search "Trending" models in HfApi

**URL:** <https://discuss.huggingface.co/t/search-trending-models-in-hfapi/65398>\
**Category:** 🤗Hub\
**Created:** [December 11, 2023, 4:57pm UTC](https://discuss.huggingface.co/t/search-trending-models-in-hfapi/65398 "2023-12-11T16:57:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whereisravi](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@whereisravi](https://discuss.huggingface.co/u/whereisravi)\
**Post date:** [December 11, 2023, 4:57pm UTC](https://discuss.huggingface.co/t/search-trending-models-in-hfapi/65398/1 "2023-12-11T16:57:46Z")

</div>

Hello  
How are the top trending models in the model hub defined?  
Is there a way to get this information with the huggingface\_hub’s HfApi call? i.e., filter by top 100 or top 1000 trending models?  
Thank you for your help  
RS

---

<div class="post-metadata">

**Author:** ![severo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/severo/32/27449_2.png) [@severo](https://discuss.huggingface.co/u/severo)\
**Post date:** [December 12, 2023, 9:59am UTC](https://discuss.huggingface.co/t/search-trending-models-in-hfapi/65398/2 "2023-12-12T09:59:38Z")

</div>

You can use [https://huggingface.co/api/trending](https://huggingface.co/api/trending) to access the trending models.

For datasets: [https://huggingface.co/api/trending?type=dataset](https://huggingface.co/api/trending?type=dataset)  
For spaces: [https://huggingface.co/api/trending?type=space](https://huggingface.co/api/trending?type=space)

Note that you can also get the collections sorted by trending order with: [https://huggingface.co/api/collections](https://huggingface.co/api/collections)
