---
title: "shareMetadata(for:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckcontainer/sharemetadata(for:)"
---

# shareMetadata(for:)

Fetches the share metadata for the specified share URL.

## Declaration

```swift
func shareMetadata(for url: URL) async throws -> CKShare.Metadata
```

## Parameters

- `url`: The share URL that CloudKit uses to locate the metadata.

## Discussion

Discussion Returns The share metadata for the share URL.
