---
title: "init(matching:memberOf:)"
framework: musickit
role: symbol
role_heading: Initializer
path: "musickit/musiccatalogresourcerequest/init(matching:memberof:)"
---

# init(matching:memberOf:)

Creates a request to fetch items using a filter that matches any value from an array of possible values.

## Declaration

```swift
init<Value>(matching keyPath: KeyPath<MusicItemType.FilterType, Value>, memberOf values: [Value]) where MusicItemType : FilterableMusicItem
```
