<!--
{
  "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/MusicLibrarySearchResponse/TopResult",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A21LibrarySearchResponseV9TopResultO"
  },
  "title" : "MusicLibrarySearchResponse.TopResult"
}
-->

# MusicLibrarySearchResponse.TopResult

An item that represents one of the top results in a library search response.

```
enum TopResult
```

## Topics

### Enumeration Cases

[`case album(Album)`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/album(_:))

An item that corresponds to an album.

[`case artist(Artist)`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/artist(_:))

An item that corresponds to an artist.

[`case musicVideo(MusicVideo)`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/musicVideo(_:))

An item that corresponds to a music video.

[`case playlist(Playlist)`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/playlist(_:))

An item that corresponds to a playlist.

[`case song(Song)`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/song(_:))

An item that corresponds to a song.

### Instance Properties

[`var artwork: Artwork?`](/documentation/MusicKit/MusicLibrarySearchResponse/TopResult/artwork)

The artwork of this top result for library search.

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

The unique identifier of this item.

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

The title of this top result for library search.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`MusicItem`](/documentation/MusicKit/MusicItem)

[`Decodable`](/documentation/Swift/Decodable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Copyable`](/documentation/Swift/Copyable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)