---
title: mediaItems
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insearchformediaintent/mediaitems
---

# mediaItems

The media items for which to search.

## Declaration

```swift
var mediaItems: [INMediaItem]? { get }
```

## Discussion

Discussion A media item such as a song, TV show, or podcast episode. Although the array can contain more than one INMediaItem object, the system uses only the first item in the array. You set mediaItems when creating the INSearchForMediaIntent object.

## See Also

### Searching for Media

- [mediaSearch](intents/insearchformediaintent/mediasearch.md)
