<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSearchForMediaIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSearchForMediaIntent"
  },
  "title" : "INSearchForMediaIntent"
}
-->

# INSearchForMediaIntent

A request to search for a media item.

```
class INSearchForMediaIntent
```

## Overview

The system creates an [`INSearchForMediaIntent`](/documentation/Intents/INSearchForMediaIntent) object when the user asks Siri to search for a media item, or searches for a musician or band in Spotlight.

To handle this intent, provide a handler that conforms to the [`INSearchForMediaIntentHandling`](/documentation/Intents/INSearchForMediaIntentHandling) protocol. Your handler should confirm the request and create an [`INSearchForMediaIntentResponse`](/documentation/Intents/INSearchForMediaIntentResponse) object with the media to search for.

### Additional Intent Attributes

The following table lists additional attributes of this intent object:

|Attribute                      |Description              |
|-------------------------------|-------------------------|
|Supported by                   |Siri Intents (audio only)|
|Always requires unlocked device|No                       |

## Topics

### Initializing the Intent Object

[`init(mediaItems:mediaSearch:)`](/documentation/Intents/INSearchForMediaIntent/init(mediaItems:mediaSearch:))

Creates an intent that describes the media items for which to search and where to search for them.

### Searching for Media

[`mediaItems`](/documentation/Intents/INSearchForMediaIntent/mediaItems)

The media items for which to search.

[`mediaSearch`](/documentation/Intents/INSearchForMediaIntent/mediaSearch)

The location to search for the media item.



---

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)