---
title: "fetchFaces(in:)"
framework: Media Intelligence
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "mediaintelligence/facegroupanalyzer/fetchfaces(in:)"
---

# fetchFaces(in:)

Returns the faces from the specified assets.

## Declaration

```swift
final func fetchFaces(in assetIDs: [MediaIntelligenceImageAsset.ID]) throws -> some AsyncSequence<(assetID: MediaIntelligenceImageAsset.ID, faces: Array<FaceGroupAnalyzer.Face>), any Error>

```

## Parameters

- `assetIDs`: The asset identifiers to look up.

## Return Value

Return Value An async sequence of (assetID, faces) pairs.

## See Also

### Fetching and identifying faces

- [fetchFaces(_:)](mediaintelligence/facegroupanalyzer/fetchfaces(_:).md)
- [fetchFaces(for:)](mediaintelligence/facegroupanalyzer/fetchfaces(for:).md)
- [fetchAssetIDs(for:)](mediaintelligence/facegroupanalyzer/fetchassetids(for:).md)
- [identifyFaces(in:)](mediaintelligence/facegroupanalyzer/identifyfaces(in:).md)
