Hugging Face Activity API
Recent public actions by an account, with what each action was about and the target's counts.
GET /v1/hugging-face/accounts/{name}/activity1 credit Failed requests are free
About this endpoint
GET /v1/hugging-face/accounts/{name}/activity returns accountType, a page of activity and a page block. Each entry has at, type, actor and target. Types include update, like, upvote, publish, discussion, paper, paper-daily and blog.
target carries kind, id, repoType, title, url, likes, downloads, upvotes, lastModified, discussionNumber and commentCount where they apply. The endpoint uses the right feed for a user or an organization. limit accepts up to 100 and cursor continues the page.
Hugging Face Activity API FAQ
Does this work for both users and organizations?
Yes. The endpoint returns the activity feed that matches the account type.
What does target.kind name?
The thing the activity is about: repo, collection, paper, blog, changelog, discussion or another kind the platform adds.
How fresh is the feed?
It is the account's public recent activity, newest first. There is no since parameter, so page with the cursor for older entries.
How much does an activity 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