Hugging Face

List Hugging Face likes

List the repositories a Hugging Face user liked.

GET/v1/hugging-face/users/{name}/likes
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
3
namestringrequiredpath

Hugging Face user or organization name, e.g. `clem`.

pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$

limitintegeroptionalquery

Items per page, 1-1000. A page can hold fewer. Default: 100.

≥ 1 · ≤ 1000

cursorstringoptionalquery

Pass `page.nextCursor` from the previous response to get the next page. Keep every other parameter the same.

min 1 chars · max 1024 chars

Response fields
15

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

Likes on this page, newest first.

datalikes[]likedAt
stringnullable

When the user liked it (ISO-8601).

The liked repository.

datalikes[]repoid
string

Repository id, `owner/name`.

datalikes[]repotype
string

What was liked: `model`, `dataset`, `space`, `kernel`, or a kind Hugging Face adds later (passed through, so a new kind never drops a like).

datalikes[]repourl
stringnullable

Page URL. Null for a kind this API does not know the page of.

Pagination state for the current page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/hugging-face/users/julien-c/likes?limit=5" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Likes page.