---
title: artistName
framework: intents
role: symbol
role_heading: Instance Property
path: intents/inmediasearch/artistname
---

# artistName

The name of the artist to search for.

## Declaration

```swift
var artistName: String? { get }
```

## Discussion

Discussion Only use this property for combination queries in conjunction with the mediaName property. For example, “Play the song requestedSongName on the album requestedAlbumName by requestedArtistName”. {   mediaName: requestedSongName   mediaType: song   albumName: requestedAlbumName   artistName: requestedArtistName } Do not use this property when the user requests to play an artist. For example, “Play the band requestedArtistName”. {   mediaName: requestedArtistName   mediaType: artist }

## See Also

### Modifying the Media Name

- [albumName](intents/inmediasearch/albumname.md)
