@spotify/web-api-ts-sdk
Version:
A typescript SDK for the Spotify Web API
68 lines • 4.85 kB
text/typescript
export function validTrack() {
return {
album:
{
album_group: 'album',
album_type: 'album',
artists:
[{
external_urls: { spotify: 'https://open.spotify.com/artist/2CWWgbxApjbyByxBBCvGTm' },
href: 'https://api.spotify.com/v1/artists/2CWWgbxApjbyByxBBCvGTm',
id: '2CWWgbxApjbyByxBBCvGTm',
name: 'Katatonia',
type: 'artist',
uri: 'spotify:artist:2CWWgbxApjbyByxBBCvGTm'
}],
available_markets: ["AR", "AU", "BE", "BO", "BR", "BG", "CA", "CL", "CO", "CR", "CY", "CZ", "DK", "DO", "EC", "EE", "SV", "FI", "FR", "GR", "GT", "HN", "HK", "HU", "IS", "IE", "IT", "LV", "LT", "LU", "MY", "MT", "MX", "NL", "NZ", "NI", "NO", "PA", "PY", "PE", "PH", "PL", "PT", "SG", "SK", "ES", "SE", "TW", "TR", "UY", "US", "GB", "AD", "LI", "MC", "ID", "JP", "TH", "VN", "RO", "IL", "ZA", "SA", "AE", "BH", "QA", "OM", "KW", "EG", "MA", "DZ", "TN", "LB", "JO", "PS", "IN", "BY", "KZ", "MD", "UA", "AL", "KR", "BD", "PK", "LK", "GH", "KE", "NG", "TZ", "UG", "AG", "AM", "BS", "BB", "BZ", "BT", "BW", "BF", "CV", "CW", "DM", "FJ", "GM", "GE", "GD", "GW", "GY", "HT", "JM", "KI", "LS", "LR", "MW", "MV", "ML", "MH", "FM", "NA", "NR", "NE", "PW", "PG", "WS", "SM", "ST", "SN", "SC", "SL", "SB", "KN", "LC", "VC", "SR", "TL", "TO", "TT", "TV", "VU", "AZ", "BN", "BI", "KH", "CM", "TD", "KM", "GQ", "SZ", "GA", "GN", "KG", "LA", "MO", "MR", "MN", "NP", "RW", "TG", "UZ", "ZW", "BJ", "MG", "MU", "MZ", "AO", "CI", "DJ", "ZM", "CD", "CG", "IQ", "LY", "TJ", "VE", "ET"],
external_urls: { spotify: 'https://open.spotify.com/album/4EcfbzCtbJDk2wMwhT4D1h' },
href: 'https://api.spotify.com/v1/albums/4EcfbzCtbJDk2wMwhT4D1h',
id: '4EcfbzCtbJDk2wMwhT4D1h',
images:
[{
height: 640,
url: 'https://i.scdn.co/image/ab67616d0000b2731465df104ab9c7772fe0da9b',
width: 640
},
{
height: 300,
url: 'https://i.scdn.co/image/ab67616d00001e021465df104ab9c7772fe0da9b',
width: 300
},
{
height: 64,
url: 'https://i.scdn.co/image/ab67616d000048511465df104ab9c7772fe0da9b',
width: 64
}],
name: 'Sky Void of Stars',
release_date: '2023-01-20',
release_date_precision: 'day',
total_tracks: 11,
type: 'album',
uri: 'spotify:album:4EcfbzCtbJDk2wMwhT4D1h'
},
artists:
[{
external_urls: { spotify: 'https://open.spotify.com/artist/2CWWgbxApjbyByxBBCvGTm' },
href: 'https://api.spotify.com/v1/artists/2CWWgbxApjbyByxBBCvGTm',
id: '2CWWgbxApjbyByxBBCvGTm',
name: 'Katatonia',
type: 'artist',
uri: 'spotify:artist:2CWWgbxApjbyByxBBCvGTm'
}],
available_markets: ["AR", "AU", "BE", "BO", "BR", "BG", "CA", "CL", "CO", "CR", "CY", "CZ", "DK", "DO", "EC", "EE", "SV", "FI", "FR", "GR", "GT", "HN", "HK", "HU", "IS", "IE", "IT", "LV", "LT", "LU", "MY", "MT", "MX", "NL", "NZ", "NI", "NO", "PA", "PY", "PE", "PH", "PL", "PT", "SG", "SK", "ES", "SE", "TW", "TR", "UY", "US", "GB", "AD", "LI", "MC", "ID", "JP", "TH", "VN", "RO", "IL", "ZA", "SA", "AE", "BH", "QA", "OM", "KW", "EG", "MA", "DZ", "TN", "LB", "JO", "PS", "IN", "BY", "KZ", "MD", "UA", "AL", "KR", "BD", "PK", "LK", "GH", "KE", "NG", "TZ", "UG", "AG", "AM", "BS", "BB", "BZ", "BT", "BW", "BF", "CV", "CW", "DM", "FJ", "GM", "GE", "GD", "GW", "GY", "HT", "JM", "KI", "LS", "LR", "MW", "MV", "ML", "MH", "FM", "NA", "NR", "NE", "PW", "PG", "WS", "SM", "ST", "SN", "SC", "SL", "SB", "KN", "LC", "VC", "SR", "TL", "TO", "TT", "TV", "VU", "AZ", "BN", "BI", "KH", "CM", "TD", "KM", "GQ", "SZ", "GA", "GN", "KG", "LA", "MO", "MR", "MN", "NP", "RW", "TG", "UZ", "ZW", "BJ", "MG", "MU", "MZ", "AO", "CI", "DJ", "ZM", "CD", "CG", "IQ", "LY", "TJ", "VE", "ET"],
disc_number: 1,
duration_ms: 221200,
explicit: false,
external_ids: { isrc: 'ATN262320801' },
external_urls: { spotify: 'https://open.spotify.com/track/2RM5Lx7VIp6GrLRsg2yXwW' },
href: 'https://api.spotify.com/v1/tracks/2RM5Lx7VIp6GrLRsg2yXwW',
id: '2RM5Lx7VIp6GrLRsg2yXwW',
is_local: false,
name: 'Austerity',
popularity: 47,
preview_url: 'https://p.scdn.co/mp3-preview/92060dafd9885ae188be4b7bb3640ad41bf221b3?cid=3c5328c75f1f44c086b25e73608c453b',
track_number: 1,
type: 'track',
uri: 'spotify:track:2RM5Lx7VIp6GrLRsg2yXwW'
};
}