> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/hugging-face/accounts-name-repos>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/hugging-face/accounts-name-repos.mdx>

---

# 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}/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.

## Request

- **Endpoint:** `GET /v1/hugging-face/accounts/{name}/repos`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by account name
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/hugging-face/accounts/name/repos/get)
- **Platform page:** [/platforms/hugging-face](https://www.socialfetch.dev/platforms/hugging-face)

## 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.
