Skip to main content

PlaylistUsage

Playlist usage returned by playlistsMostRecent; includes recommendations used to fill a short usage history.

type PlaylistUsage {
type: PlaylistType!
id: Int!
lastUsedAt: Int!
name: String!
}

Fields​

PlaylistUsage.type ● PlaylistType! non-null enum​

Custom site playlist or recommended preset, determined by the sign of id.

PlaylistUsage.id ● Int! non-null scalar​

Playlist id for playlist operations, not an id for the usage entry; negative ids are recommendations.

PlaylistUsage.lastUsedAt ● Int! non-null scalar​

Last use in Unix seconds; backfilled recommendations use their preset timestamp rather than an actual view.

PlaylistUsage.name ● String! non-null scalar​

Playlist name; returns No name when the saved playlist no longer exists.

Returned By​

playlistsMostRecent query