This repository was archived by the owner on May 9, 2026. It is now read-only.
Description When you retrieve a spotify track from either "liked" or a playlist, a property is added to the track object: is_local.
Example in api docs: https://developer.spotify.com/documentation/web-api/reference/get-users-saved-tracks
Current SpotifyApi.TrackObjectFull type definition:
interface TrackObjectFull extends TrackObjectSimplified {
album : AlbumObjectSimplified ;
external_ids : ExternalIdObject ;
popularity : number ;
}
interface TrackObjectSimplified {
artists : ArtistObjectSimplified [ ] ;
available_markets ?: string [ ] ;
disc_number : number ;
duration_ms : number ;
explicit : boolean ;
external_urls : ExternalUrlObject ;
href : string ;
id : string ;
is_playable ?: boolean ;
linked_from ?: TrackLinkObject ;
name : string ;
preview_url : string ;
track_number : number ;
type : 'track' ;
uri : string ;
}
In the API docs you can see in the docs that is_local is a property on the track object, on the same level as duration_ms, name, artists, album, etc.
Suggested fix:
Adjust TrackObjectFull, because PlaylistTrackObject and SavedTrackObject only use the full version, not the simplified track object:
interface TrackObjectFull extends TrackObjectSimplified {
album : AlbumObjectSimplified ;
external_ids : ExternalIdObject ;
popularity : number ;
is_local ?: boolean ;
} Reactions are currently unavailable
When you retrieve a spotify track from either "liked" or a playlist, a property is added to the track object:
is_local.Example in api docs: https://developer.spotify.com/documentation/web-api/reference/get-users-saved-tracks
Current SpotifyApi.TrackObjectFull type definition:
In the API docs you can see in the docs that
is_localis a property on the track object, on the same level as duration_ms, name, artists, album, etc.Suggested fix:
Adjust TrackObjectFull, because PlaylistTrackObject and SavedTrackObject only use the full version, not the simplified track object: