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

# init(matching:equalTo:)

Creates a request to fetch items using a filter that matches a specific value.

## Declaration

```swift
init<Value>(matching keyPath: KeyPath<MusicItemType.FilterType, Value>, equalTo value: Value) where MusicItemType : FilterableMusicItem
```
