<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/LibrarySongFilter",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit17LibrarySongFilterP"
  },
  "title" : "LibrarySongFilter"
}
-->

# LibrarySongFilter

Song properties your app uses as a filter for a library request.

```
protocol LibrarySongFilter
```

## Topics

### Instance Properties

[`var albumTitle: String?`](/documentation/MusicKit/LibrarySongFilter/albumTitle)

The title of the album the song appears on.

[`var albums: MusicItemCollection<Album>?`](/documentation/MusicKit/LibrarySongFilter/albums)

The song’s associated albums.

[`var artistName: String?`](/documentation/MusicKit/LibrarySongFilter/artistName)

The artist’s name.

[`var artists: MusicItemCollection<Artist>?`](/documentation/MusicKit/LibrarySongFilter/artists)

The song’s associated artists.

[`var composerName: String?`](/documentation/MusicKit/LibrarySongFilter/composerName)

The name of the song’s composer.

[`var genres: MusicItemCollection<Genre>?`](/documentation/MusicKit/LibrarySongFilter/genres)

The song’s associated genres.

[`var id: MusicItemID`](/documentation/MusicKit/LibrarySongFilter/id)

The unique identifier for the song.

[`var title: String`](/documentation/MusicKit/LibrarySongFilter/title)

The title of the song.

---

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)