<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKWebsiteDataRecord",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKWebsiteDataRecord"
  },
  "title" : "WKWebsiteDataRecord"
}
-->

# WKWebsiteDataRecord

A record of the data that a particular website stores persistently.

```
@MainActor class WKWebsiteDataRecord
```

## Overview

Use [`WKWebsiteDataRecord`](/documentation/WebKit/WKWebsiteDataRecord) objects to discover the types of information that a website stores. Records identify the data types a website stores, but don’t identify the actual data. You might use this information to help the user manage website data. For example, Safari provides a way for users to view and remove website data. The domain name of each record contains the website’s domain name and suffix.

You don’t create [`WKWebsiteDataRecord`](/documentation/WebKit/WKWebsiteDataRecord) objects directly. WebKit creates these records and stores them in the web view’s data store. Use the [`fetchDataRecords(ofTypes:completionHandler:)`](/documentation/WebKit/WKWebsiteDataStore/fetchDataRecords(ofTypes:completionHandler:)) of that data store to retrieve the current record objects. You also use that object to remove unwanted records.

## Topics

### Getting the Record Information

[`displayName`](/documentation/WebKit/WKWebsiteDataRecord/displayName)

The display name for the data record.

### Getting the Data Type

[`dataTypes`](/documentation/WebKit/WKWebsiteDataRecord/dataTypes)

The types of data associated with the record.

[Data Store Record Types](/documentation/WebKit/data-store-record-types)

Explore the constants that identify the types of data that websites store.



---

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)