Hugging Face Account Repositories API
Every public repository an account owns, one kind at a time, with the usual likes, downloads and tags.
GET /v1/hugging-face/accounts/{name}/repos1 credit Failed requests are free
About this endpoint
GET /v1/hugging-face/accounts/{name}/repos returns results and a page block. Set type to models (default), datasets or spaces, then sort by downloads, likes, likes7d, likes30d, trending, created or updated; the default is updated.
Each result has id, url, author, likes, downloads, downloadsAllTime, trendingScore, gated, tags, license and the type-specific fields for that kind. limit accepts up to 1000, and page.nextCursor continues the list.
Hugging Face Account Repositories API FAQ
Can I list an account's models and datasets together?
No. type picks one kind per request. Call the endpoint once for each kind you need.
Does an unknown account return 404?
No. The lookup finishes with lookupStatus not_found and an empty results list, so branch on the status rather than the HTTP code.
How do I find an account's most downloaded work?
Set sort=downloads for the kind you want. Use likes or trending for other rankings.
How much does a repository page cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
Other Hugging Face endpoints
- Search modelsGET /v1/hugging-face/models
- Get modelGET /v1/hugging-face/models/{owner}/{name}
- Search datasetsGET /v1/hugging-face/datasets
- Get datasetGET /v1/hugging-face/datasets/{owner}/{name}
- Search SpacesGET /v1/hugging-face/spaces
- Get SpaceGET /v1/hugging-face/spaces/{owner}/{name}
- READMEGET /v1/hugging-face/repos/{repoType}/{owner}/{name}/readme
- FilesGET /v1/hugging-face/repos/{repoType}/{owner}/{name}/files