<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNContactFetchRequest/init(keysToFetch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContactFetchRequest(im)initWithKeysToFetch:"
  },
  "title" : "init(keysToFetch:)"
}
-->

# init(keysToFetch:)

Creates a fetch request for the specified keys.

```
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 [Contact Keys](/documentation/Contacts/contact-keys).

## Return Value

The initialized [`CNContactFetchRequest`](/documentation/Contacts/CNContactFetchRequest) instance.

## Discussion

This is the designated initializer for this class. Using `init` raises an exception.

---

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)