---
title: data
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webarchive/data
---

# data

The data representation of the receiver.

## Declaration

```swift
var data: Data! { get }
```

## Discussion

Discussion Can be used to save the web archive to a file, to put it on the pasteboard using the WebArchivePboardType type, or used to initialize another web archive using the init(data:) method.

## See Also

### Getting attributes

- [mainResource](webkit/webarchive/mainresource.md)
- [subresources](webkit/webarchive/subresources.md)
- [subframeArchives](webkit/webarchive/subframearchives.md)
