Hugging Face hub

Hugging Face Likes API

What a user liked and when, across models, datasets, Spaces and kernels.

GET /v1/hugging-face/users/{name}/likes

1 credit Failed requests are free

About this endpoint

GET /v1/hugging-face/users/{name}/likes returns a page of likes and a page block. Each like has likedAt and a repo with id, type and url. The type is model, dataset, space or kernel, and a kind the platform adds later passes through as a string.

limit accepts up to 1000 and defaults to 100, and a page can hold fewer than limit. Send page.nextCursor as cursor while page.hasMore is true. A user with no likes returns an empty page, and a name that does not exist returns lookupStatus: not_found.

Hugging Face Likes API FAQ

Are liked kernels included?

Yes. A liked kernel has repo.type kernel. A kind the platform adds later passes through as a string.

Why is repo.url sometimes null?

A kind this API does not know the page of has no URL. The id and type are still present.

Does an unknown user return an error?

No. It returns lookupStatus not_found. HTTP 200 only means the request finished.

How much does a likes 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.