# Search "Trending" models in HfApi

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearch-trending-models-in-hfapi%2F65398%3E%5C
**Category:** 🤗Hub\
**Created:** [December 11, 2023, 4:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearch-trending-models-in-hfapi%2F65398 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwhereisravi)%5C
**Post date:** [December 11, 2023, 4:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearch-trending-models-in-hfapi%2F65398%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsevero)%5C
**Post date:** [December 12, 2023, 9:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsearch-trending-models-in-hfapi%2F65398%2F2 "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)
