Deezer

List Deezer account favourites

List a Deezer account's favourite albums, artists or tracks.

GET/v1/deezer/users/{userId}/library
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
4
userIdstringrequiredpath

Deezer account id, for example `753546365`.

pattern: ^[1-9]\d{0,11}$

kindstringrequiredquery

Which part of the library to list.

one of: albums, artists, tracks

limitintegeroptionalquery

Items per page, 1 to 100. Default: 50.

≥ 1 · ≤ 100

cursorstringoptionalquery

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

min 1 chars · max 1000 chars

Response fields
83

Endpoint-specific response payload.

datalookupStatus
string

Whether the account was found, and `private` when its lists are not public.

one of: found, not_found, private

datakind
string

Which part of the library this is.

one of: albums, artists, tracks

Favourite albums when `kind` is `albums`; otherwise null.

dataalbums[]id
integer

Album id.

dataalbums[]title
string

Album title.

dataalbums[]url
stringnullable

Album page URL.

Picture URLs in four sizes.

dataalbums[]imagesid
stringnullable

Image identifier; every size URL is built from it. Null when the item has no picture of its own.

dataalbums[]imagessmall
stringnullable

Small image URL (about 56 px).

dataalbums[]imagesmedium
stringnullable

Medium image URL (about 250 px).

dataalbums[]imagesbig
stringnullable

Large image URL (about 500 px).

dataalbums[]imagesxl
stringnullable

Extra-large image URL (about 1000 px).

dataalbums[]recordType
stringnullable

Release type.

one of: album, ep, single, compilation, null

dataalbums[]releasedAt
stringnullable

Release date. Deezer's original release date when it gives one, otherwise its release date. (YYYY-MM-DD).

dataalbums[]trackCount
integernullable

Number of tracks.

dataalbums[]fanCount
integernullable

Number of fans; null when the record does not carry one.

dataalbums[]explicit
booleannullable

Whether the album is marked explicit.

The main artist.

dataalbums[]artistid
integer

Artist id.

dataalbums[]artistname
string

Artist name.

dataalbums[]artisturl
stringnullable

Artist page URL.

Picture URLs in four sizes.

dataalbums[]artistimagesid
stringnullable

Image identifier; every size URL is built from it. Null when the item has no picture of its own.

dataalbums[]artistimagessmall
stringnullable

Small image URL (about 56 px).

dataalbums[]artistimagesmedium
stringnullable

Medium image URL (about 250 px).

dataalbums[]artistimagesbig
stringnullable

Large image URL (about 500 px).

dataalbums[]artistimagesxl
stringnullable

Extra-large image URL (about 1000 px).

Favourite artists when `kind` is `artists`; otherwise null.

dataartists[]id
integer

Artist id.

dataartists[]name
string

Artist name.

dataartists[]url
stringnullable

Artist page URL.

Picture URLs in four sizes.

dataartists[]imagesid
stringnullable

Image identifier; every size URL is built from it. Null when the item has no picture of its own.

dataartists[]imagessmall
stringnullable

Small image URL (about 56 px).

dataartists[]imagesmedium
stringnullable

Medium image URL (about 250 px).

dataartists[]imagesbig
stringnullable

Large image URL (about 500 px).

dataartists[]imagesxl
stringnullable

Extra-large image URL (about 1000 px).

dataartists[]fanCount
integernullable

Number of fans; null when the record does not carry one.

Favourite tracks when `kind` is `tracks`; otherwise null.

datatracks[]id
integer

Track id.

datatracks[]title
string

Track title, version included.

datatracks[]titleShort
stringnullable

Track title without the version.

datatracks[]version
stringnullable

Version label such as `(Radio Edit)`; null for most tracks.

datatracks[]isrc
stringnullable

International Standard Recording Code.

datatracks[]url
stringnullable

Track page URL.

datatracks[]durationMs
integernullable

Duration in milliseconds.

datatracks[]trackNumber
integernullable

Position on the disc.

datatracks[]discNumber
integernullable

Disc number.

datatracks[]rank
integernullable

Deezer's popularity score for the track.

datatracks[]explicit
booleannullable

Whether the lyrics are marked explicit.

datatracks[]available
booleannullable

Whether Deezer can play the track in its catalogue.

datatracks[]previewUrl
stringnullable

A 30 second audio preview. The link is signed and stops working about 15 minutes after the response.

datatracks[]previewExpiresAt
stringnullable

When the preview link stops working (ISO-8601, UTC).

datatracks[]addedAt
stringnullable

When the track was added to the playlist; null outside playlists (ISO-8601, UTC).

The main artist.

datatracks[]artistid
integer

Artist id.

datatracks[]artistname
string

Artist name.

datatracks[]artisturl
stringnullable

Artist page URL.

Picture URLs in four sizes.

datatracks[]artistimagesid
stringnullable

Image identifier; every size URL is built from it. Null when the item has no picture of its own.

datatracks[]artistimagessmall
stringnullable

Small image URL (about 56 px).

datatracks[]artistimagesmedium
stringnullable

Medium image URL (about 250 px).

datatracks[]artistimagesbig
stringnullable

Large image URL (about 500 px).

datatracks[]artistimagesxl
stringnullable

Extra-large image URL (about 1000 px).

The album.

datatracks[]albumid
integer

Album id.

datatracks[]albumtitle
string

Album title.

datatracks[]albumurl
stringnullable

Album page URL.

Picture URLs in four sizes.

datatracks[]albumimagesid
stringnullable

Image identifier; every size URL is built from it. Null when the item has no picture of its own.

datatracks[]albumimagessmall
stringnullable

Small image URL (about 56 px).

datatracks[]albumimagesmedium
stringnullable

Medium image URL (about 250 px).

datatracks[]albumimagesbig
stringnullable

Large image URL (about 500 px).

datatracks[]albumimagesxl
stringnullable

Extra-large image URL (about 1000 px).

datatotal
integernullable

Number of items in this part of the library.

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/deezer/users/5/library?kind=albums" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Account's favourites.