<!--
{
  "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/podcasts()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMediaQuery(cm)podcastsQuery"
  },
  "title" : "podcasts()"
}
-->

# podcasts()

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

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

## Return Value

A media query that matches media items of type [`podcast`](/documentation/MediaPlayer/MPMediaType/podcast) and that has a grouping type of [`MPMediaGrouping.podcastTitle`](/documentation/MediaPlayer/MPMediaGrouping/podcastTitle). This query only returns podcasts downloaded to the user’s library.

## Discussion

A media item can have more than one media type; for example, an item could be of types “music” and “podcast.” A [`podcasts()`](/documentation/MediaPlayer/MPMediaQuery/podcasts()) query matches all [`podcast`](/documentation/MediaPlayer/MPMediaType/podcast) 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)