<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMediaQuery/audiobooks()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMediaQuery(cm)audiobooksQuery"
  },
  "title" : "audiobooks()"
}
-->

# audiobooks()

Creates a media query that matches audio book items and that groups and sorts collections by audio book name.

```
class func audiobooks() -> MPMediaQuery
```

## Return Value

A media query that matches media items of type [`audioBook`](/documentation/MediaPlayer/MPMediaType/audioBook) and that uses the default grouping type of [`MPMediaGrouping.title`](/documentation/MediaPlayer/MPMediaGrouping/title).

## Discussion

A media item can have more than one media type; for example, an item could be of types “music” and “podcast.” An [`audiobooks()`](/documentation/MediaPlayer/MPMediaQuery/audiobooks()) query matches all [`audioBook`](/documentation/MediaPlayer/MPMediaType/audioBook) items, whether or not they’re also of other media types.

---

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)