# Get liked tracks
URL: https://musicapi.com/docs/reference/list-liked-tracks.md

`GET https://api.musicapi.com/api/{integrationUserUUID}/liked/tracks`

Section: Read and write a user's library.
Product: MusicAPI Core.
Auth: Basic, DevToken, DocsSession (any one of them). Use Basic with your Client ID and Client Secret from your server only.

[Check which services support returning ISRC and preview url](/docs/get-started/services-and-features)


This endpoint fetches tracks liked by the user.

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `integrationUserUUID` | uuid | yes | The connected user: the `integrationUserUUID` from the sign-in callback. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `nextParam` | string | no | Parameter returned in the response responsible for pagination. |
| `limitParam` | number | no | Specifies the maximum number of results per request, adjusted based on the limitations of the respective music service. Ignored if the service doesn't support such a limit. |

## Response 200

ok

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `results` | Track[] | yes |  |
| `results[].id` | string | yes |  |
| `results[].entryId` | string \| null | yes | Identifier associated with a tracks within a specific collection. It is used to identify a particular instance of a track within a playlist or a user's library. Track entry id can be obtained during fetching playlist items or user's library. |
| `results[].name` | string | yes |  |
| `results[].isrc` | string \| null | yes |  |
| `results[].duration` | number \| null | yes |  |
| `results[].imageUrl` | string \| null | yes |  |
| `results[].previewUrl` | string \| null | yes |  |
| `results[].album` | object \| null | yes |  |
| `results[].album.name` | string | yes |  |
| `results[].album.id` | string \| null | yes |  |
| `results[].album.totalItems` | number \| null | yes |  |
| `results[].album.artists` | ArtistSimplified[] \| null | yes |  |
| `results[].album.artists.id` | string \| null | yes |  |
| `results[].album.artists.entryId` | string \| null | yes | Identifier associated with an artist within a user's library. Artist entry id can be obtained during fetching artists from user's library. |
| `results[].album.artists.name` | string | yes |  |
| `results[].album.artists.imageUrl` | string \| null | yes |  |
| `results[].album.artists.followers` | number \| null | yes |  |
| `results[].artists` | ArtistSimplified[] \| null | yes |  |
| `results[].artists.id` | string \| null | yes |  |
| `results[].artists.entryId` | string \| null | yes | Identifier associated with an artist within a user's library. Artist entry id can be obtained during fetching artists from user's library. |
| `results[].artists.name` | string | yes |  |
| `results[].artists.imageUrl` | string \| null | yes |  |
| `results[].artists.followers` | number \| null | yes |  |
| `results[].isAvailable` | boolean \| null | no | Indicates whether the track is currently available for playback on the music service. For Spotify: false for local files or greyed-out tracks (copyright lost), true for playable tracks, null when unknown. |
| `results[].dateAdded` | string \| null | no |  |
| `nextParam` | string \| null | yes |  |
| `totalItems` | number \| null | yes |  |

```json
{
  "results": [
    {
      "id": "2nLtzopw4rPReszdYBJU6h",
      "entryId": "2nLtzopw4rPReszdYBJU6h",
      "name": "Numb",
      "isrc": "USWB10300474",
      "duration": 185586,
      "imageUrl": "https://i.scdn.co/image/ab67616d0000b273b4ad7ebaf4575f120eb3f193",
      "previewUrl": "https://p.scdn.co/mp3-preview/15e1178c9eb7f626ac1112ad8f56eccbec2cd6e5?cid=d3a370919fbb4853a2c037d9d92da680",
      "album": null,
      "artists": [
        null
      ],
      "isAvailable": true,
      "dateAdded": "2024-10-16T07:52:07.000Z"
    }
  ],
  "nextParam": "eyJvZmZzZXQiOjEwfQ==",
  "totalItems": 25
}
```

## Errors

- 404: Your account has no connected user with this uuid, or the item does not exist.
- 412: The user must sign in again (`IntegrationUserNotAuthenticated`).
- 429: Too many requests. Wait for the seconds in `Retry-After`.

## Example

```bash
curl https://api.musicapi.com/api/{integrationUserUUID}/liked/tracks \
  -u "$MUSICAPI_CLIENT_ID:$MUSICAPI_CLIENT_SECRET"
```
