---
title: "init(keysToFetch:)"
framework: contacts
role: symbol
role_heading: Initializer
path: "contacts/cncontactfetchrequest/init(keystofetch:)"
---

# init(keysToFetch:)

Creates a fetch request for the specified keys.

## Declaration

```swift
init(keysToFetch: [any CNKeyDescriptor])
```

## Parameters

- `keysToFetch`: An array of contact property keys and/or key descriptors from contacts objects to be fetched in the returned contacts. For a list of possible keys, see doc://com.apple.contacts/documentation/Contacts/contact-keys.

## Return Value

Return Value The initialized CNContactFetchRequest instance. Discussion This is the designated initializer for this class. Using init raises an exception.

## See Also

### Creating a Fetch Request

- [CNKeyDescriptor](contacts/cnkeydescriptor.md)
