<!--
{
  "availability" : [
    "iOS: 7.0.0 - 18.0.0",
    "iPadOS: 7.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.9.0 - 15.0.0",
    "tvOS: 9.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetResourceLoadingRequest/streamingContentKeyRequestData(forApp:contentIdentifier:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetResourceLoadingRequest(im)streamingContentKeyRequestDataForApp:contentIdentifier:options:error:"
  },
  "title" : "streamingContentKeyRequestData(forApp:contentIdentifier:options:)"
}
-->

# streamingContentKeyRequestData(forApp:contentIdentifier:options:)

Obtains key request data for a specific combination of application and content.

```
func streamingContentKeyRequestData(forApp appIdentifier: Data, contentIdentifier: Data, options: [String : Any]? = nil) throws -> Data
```

## Parameters

`appIdentifier`

An opaque content identifier for the application. The value of this identifier depends on the particular system used to provide the decryption key.

`contentIdentifier`

An opaque identifier for the content. The value of this identifier depends on the particular system used to provide the decryption key.

`options`

Additional information necessary to obtain the key, or `nil` if no additional information is required.

## Return Value

The key request data that must be transmitted to the key vendor to obtain the content key.

## Topics

### Configuration options

[`AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey`](/documentation/AVFoundation/AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey)

Specifies whether the content key request requires a persistable key to be returned from the key vendor.



---

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)