<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "AppleMusicAPI",
  "identifier" : "/documentation/AppleMusicAPI/Resource",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple Music API"
    ],
    "preciseIdentifier" : "data:music_api:Resource"
  },
  "title" : "Resource"
}
-->

# Resource

A resource—such as an album, song, or playlist.

```
object Resource
```

## Discussion

A Resource object may contain just these identifier members: `id`, `type`, `href`, and `meta`.

## Topics

### Related Objects

[`object Resource.Attributes`](/documentation/AppleMusicAPI/Resource/Attributes-data.dictionary)

Attributes representing the metadata of the resource.

[`object Resource.Relationships`](/documentation/AppleMusicAPI/Resource/Relationships-data.dictionary)

Relationships belonging to the resource.

### Dictionaries

[`object Resource.Meta`](/documentation/AppleMusicAPI/Resource/Meta-data.dictionary)

Information about the request or response.

[`object Resource.Views`](/documentation/AppleMusicAPI/Resource/Views-data.dictionary)

Views belonging to the resource.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)