---
title: "List user likes"
method: GET
path: "/api/users/{username}/likes"
tags: ["users"]
---

# List user likes

`GET /api/users/{username}/likes`

List public repos liked by a user

## Path parameters

- `username` string, required

## Query parameters

- `limit` integer — Max number of likes to return
- `cursor` string — Cursor for pagination. Always check to see if more results, a page can be empty or not filled.

## Response `200`

Likes on public repositories

- object[]
  - `createdAt` string, date-time, required
  - `repo` object, required
    - `name` string, required
    - `type` 'dataset' | 'model' | 'space' | 'bucket' | 'kernel' | 'container', required

## Changes

- **2026-09-18** `74f2b0d17636` — 1 warning
  - added the new `container` enum value to the `items/repo/type` response property for the response status `200`
- **2026-09-11** `c97a15994a26` — 1 warning
  - changed the pattern of the `query` request parameter `cursor` from `^[0-9a-f]{24}$` to `^[0-9a-fA-F]{24}$`
- **2026-09-08** `bd17546f47b8` — 1 breaking, 1 info
  - the `items/repo/type` response's property type changed from no type to `string` for status `200`
  - the `items/createdAt` response's property pattern was changed from `^((\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\d|3[01])|(0[469]|11)-(0[1-9]|[12]\d|30)|(02)-(0[1-9]|1\d|2[0-8])))T([01]\d|2[0-3]):[0-5]\d:[0-5]\d(\.\d+)?(Z)$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/users/:username/likes/get.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/61b0b9b74a8a?raw)
