Hugging Face API guide

huggingface.co

Browse top papers on Hugging Face, rank models and datasets by downloads or likes, and find interactive demos by SDK.

Actions and inputs

hf top

List top-upvoted papers.

Inputs Date, period, limit or all

hf models

Find models by name, owner, or task.

Inputs Search term, pipeline tag, sort order, limit

hf datasets

Find and rank datasets.

Inputs Search term, sort order, limit

hf spaces

Browse hosted demos and filter by SDK.

Inputs Search term, SDK, sort order, limit

Hub collections

Create

Create a collection in your account or an organization you manage to group models, datasets, Spaces, or papers.

Inputs Namespace, title, visibility, and optional description and item links

Read

Open a collection and review its items and notes.

Inputs Collection name or link

Update

Reorder items or edit item notes in a collection you manage.

Inputs Collection and new item order or note text

Delete

Delete a collection you manage without deleting any of the linked resources.

Inputs Collection and confirmation