Search "Trending" models in HfApi

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

You can use https://huggingface.co/api/trending to access the trending models.

For datasets: https://huggingface.co/api/trending?type=dataset
For spaces: 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

2 Likes