Songs.Attributes
The attributes for a song resource.
Declaration
object Songs.AttributesProperties
| Name | Type | Description |
|---|---|---|
albumName Required | string | The name of the album the song appears on. |
artistName Required | string | The artist’s name. |
artistUrl | string | (Extended) The URL of the artist for the content. |
artwork Required | Artwork | The album artwork. |
attribution | string | (Classical music only) The name of the artist or composer to attribute the song with. |
audioVariants | [string] | (Extended) Indicates the specific audio variant for a song. |
composerName | string | The song’s composer. |
contentRating | string | The Recording Industry Association of America (RIAA) rating of the content. No value means no rating. |
discNumber | integer | The disc number of the album the song appears on. |
durationInMillis Required | integer | The duration of the song in milliseconds. |
editorialNotes | EditorialNotes | The notes about the song that appear in the Apple Music catalog. |
genreNames Required | [string] | The genre names the song is associated with. |
hasLyrics Required | boolean | Indicates whether the song has lyrics available in the Apple Music catalog. If |
inFavorites | boolean | Whether the catalog resource ID is in the person’s favorites. |
isAppleDigitalMaster Required | boolean | Indicates whether the response delivered the song as an Apple Digital Master. |
isrc | string | The International Standard Recording Code (ISRC) for the song. |
movementCount | integer | (Classical music only) The movement count of the song. |
movementName | string | (Classical music only) The movement name of the song. |
movementNumber | integer | (Classical music only) The movement number of the song. |
name Required | string | The localized name of the song. |
playParams | PlayParameters | When present, this attribute indicates that the song is available to play with an Apple Music subscription. The value map may be used to initiate playback. Previews of the song audio may be available with or without an Apple Music subscription. |
previews Required | [Preview] | The preview assets for the song. |
releaseDate | string | The release date of the song, when known, in YYYY-MM-DD or YYYY format. Prerelease songs may have an expected release date in the future. |
trackNumber | integer | The number of the song in the album’s track list. |
url Required | string | The URL for sharing the song in Apple Music. |
workName | string | (Classical music only) The name of the associated work. |