> ## Documentation Index
> Fetch the complete documentation index at: https://docs.konbiniapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user liked videos

> Returns a paginated list of videos liked by a TikTok user. Note: Users may have their likes set to private, in which case an empty list will be returned.

## What it does

Returns a paginated list of videos liked by a TikTok user. Note: Users may have their likes set to private, in which case an empty list will be returned.

## Tool details

| Field         | Value                                   |
| ------------- | --------------------------------------- |
| Tool name     | `tiktok_get_user_likes`                 |
| Platform      | TikTok                                  |
| REST endpoint | `GET /v1/tiktok/users/{username}/likes` |
| Result type   | Collection tool                         |

## Parameters

| Parameter           | Type       | Required | Description                                                                                    |
| ------------------- | ---------- | -------- | ---------------------------------------------------------------------------------------------- |
| `username`          | `string`   | Yes      | TikTok username (with or without @ symbol)                                                     |
| `count`             | `integer`  | No       | Number of videos to fetch (maximum: 35) Default: `35`.                                         |
| `cursor`            | `string`   | No       | Pagination cursor Default: `0`.                                                                |
| `projection_preset` | `string`   | No       | Defaults to `minimal`. Allowed values: `full`, `minimal`, `identity`, `engagement`, `content`. |
| `data_fields`       | `string[]` | No       | Adds top-level keys from `data` on top of the selected `projection_preset`.                    |
| `item_fields`       | `string[]` | No       | Adds keys from `data.orderedItems[]` on top of the selected `projection_preset`.               |

## Example

```json theme={null}
{
  "name": "tiktok_get_user_likes",
  "arguments": {
    "username": "khaby.lame",
    "count": 35,
    "projection_preset": "minimal",
    "data_fields": [
      "orderedItems",
      "nextCursor",
      "cursor",
      "itemCount"
    ],
    "item_fields": [
      "entityId",
      "published",
      "content",
      "url",
      "viewCount"
    ]
  }
}
```

## Available data fields

* `@context`
* `type`
* `partOf`
* `totalItems`
* `cursor`
* `nextCursor`
* `next`
* `itemCount`
* `orderedItems`

## Available item fields

* `type`
* `id`
* `url`
* `entityId`
* `content`
* `published`
* `duration`
* `viewCount`
* `likeCount`
* `commentCount`
* `repostCount`
* `shareCount`
* `saveCount`
* `language`
* `isSponsored`
* `location`
* `tag`
* `attributedTo`
* `attachment`
* `image`
* `preview`
* `audio`

## Response notes

Successful calls return a JSON object with a top-level `data` field and, when
available, `metadata.creditsUsed` and `metadata.creditsRemaining`. See
[response format](/getting-started/response-format),
[pagination](/getting-started/pagination), and [credits](/getting-started/credits).
