Skip to main content

Track

Track Resource

A Track represents an individual song or musical piece performed by artists and typically belongs to one or many album.

info
  • Can belong to multiple albums.
  • Can belong to multiple artists.

Attributes:

AttributeTypeDescription
idstringUnique ID for the track
trackTitlestringName of the track
artistsobject[]List of artists associated with the track
durationMsintegerDuration of the track in milliseconds
isrcstringInternational Standard Recording Code (Optional)
eanstringEuropean Article Number (Optional)
upcstringUniversal Product Code (Optional)
hrefstringKnown Spotify URLs for this track
availableCountriesstringList of available countries for this track, identified by their ISO 3166-1 alpha-2 code. Separated by commas (Optional)
popularityintegerThe popularity of the track, ranging from 0 to 100, with 100 being the most popular

Track Example:

{
"id": "878dadea-33c5-4c08-bdb9-e2b117475a99",
"trackTitle": "All Too Well",
"artists": [
{
"id": "c7b330b5-a62e-420c-bf02-943ca6bb8746",
"name": "Taylor Swift",
"href": "https://open.spotify.com/artist/06HL4z0CvFAxyc27GXpf02"
}
],
"durationMs": 329160,
"isrc": "USCJY1231021",
"ean": null,
"upc": null,
"href": "https://open.spotify.com/track/00vJzaoxM3Eja1doBUhX0P",
"availableCountries": "AR,AU,AT,BE,BO,BR,BG,CA,CL,CO,CR,CY,CZ,DK,DO,DE,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,CH,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,BA,HR,ME,MK,RS,SI,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,XK",
"popularity": 34
}