<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaIntelligence",
  "identifier" : "/documentation/MediaIntelligence/VideoAnalyzer/analyze(_:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Intelligence"
    ],
    "preciseIdentifier" : "s:17MediaIntelligence13VideoAnalyzerC7analyze_3fors6ResultOyAFQzs5Error_pGxQp_tAA0abC5AssetV_xxQptYaKRvzAC7RequestRzlF"
  },
  "title" : "analyze(_:for:)"
}
-->

# analyze(_:for:)

Analyzes a video asset using the specified requests.

```
final nonisolated(nonsending) func analyze<each T>(_ asset: MediaIntelligenceVideoAsset, for request: repeat each T) async throws -> (repeat Result<(each T).Result, any Error>) where repeat each T : VideoAnalyzer.Request
```

## Parameters

`asset`

The video asset to analyze.

`request`

One or more analysis requests to perform.

## Return Value

A tuple of <doc://com.apple.documentation/documentation/Swift/Result> values, one per request.

## Discussion

Pass one or more values of type [`VideoAnalyzer.Request`](/documentation/MediaIntelligence/VideoAnalyzer/Request). The
method returns a tuple containing one <doc://com.apple.documentation/documentation/Swift/Result> per request, in
the same order you provided them. Check each element individually
because a failure in one request doesn’t affect the others.

---

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)