<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKDatabase/record(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So10CKDatabaseC8CloudKitE6record3forSo8CKRecordCSo0F2IDC_tYaKF"
  },
  "title" : "record(for:)"
}
-->

# record(for:)

Fetches a specific record.

```
func record(for recordID: CKRecord.ID) async throws -> CKRecord
```

## Parameters

`recordID`

The identifier of the record to fetch.

## Return Value

The requested record.

## Discussion

This method throws an error if the record cannot be found or if the request fails, such as when the network is unavailable or the device doesn’t have an active iCloud account.

For information on a more convenient way to fetch specific records, see [`records(for:desiredKeys:)`](/documentation/CloudKit/CKDatabase/records(for:desiredKeys:)).

---

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)