---
title: Resource
framework: applemusicapi
role: symbol
role_heading: Object
path: applemusicapi/resource
---

# Resource

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

## Declaration

```data
object Resource
```

## Properties

id: Persistent identifier of the resource. type: The type of resource. href: A URL subpath that fetches the resource as the primary object. This member is only present in responses. attributes: Attributes belonging to the resource (can be a subset of the attributes). The members are the names of the attributes defined in the object model. relationships: Relationships belonging to the resource (can be a subset of the relationships). The members are the names of the relationships defined in the object model. See Relationship object for the values of the members. meta: Information about the request or response. The members may be any of the endpoint parameters. views: The relationship views for the resource.

## Discussion

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

## Topics

### Related Objects

- [Resource.Attributes](applemusicapi/resource/attributes-data.dictionary.md)
- [Resource.Relationships](applemusicapi/resource/relationships-data.dictionary.md)

### Dictionaries

- [Resource.Meta](applemusicapi/resource/meta-data.dictionary.md)
- [Resource.Views](applemusicapi/resource/views-data.dictionary.md)

## See Also

### Getting Resource and Relationship Information

- [Relationship](applemusicapi/relationship.md)
