---
title: "fetchAssets(withALAssetURLs:options:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phasset/fetchassets(withalasseturls:options:)"
---

# fetchAssets(withALAssetURLs:options:)

Retrieves assets using URLs provided by the Assets Library framework.

## Declaration

```swift
class func fetchAssets(withALAssetURLs assetURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAsset>
```

## Parameters

- `assetURLs`: An array of doc://com.apple.documentation/documentation/Foundation/NSURL objects, each an asset URL previously retrieved from an doc://com.apple.documentation/documentation/AssetsLibrary/ALAsset object.
- `options`: Options that specify a filter predicate and sort order for the fetched assets, or nil to use default options. For details, see doc://com.apple.photokit/documentation/Photos/PHFetchOptions.

## Return Value

Return Value A fetch result that contains the requested PHAsset objects, or an empty fetch result if no objects match the request.

## Discussion

Discussion The Assets Library framework is deprecated in iOS 8.0 and later, replaced by the Photos framework. Use this method if your app has previously stored URLs from ALAsset objects and you need to retrieve the corresponding Photos framework objects.

## See Also

### Fetching Assets

- [Fetching Assets](photokit/fetching-assets.md)
- [fetchAssets(in:options:)](photos/phasset/fetchassets(in:options:).md)
- [fetchAssets(with:options:)](photos/phasset/fetchassets(with:options:).md)
- [fetchAssets(withLocalIdentifiers:options:)](photos/phasset/fetchassets(withlocalidentifiers:options:).md)
- [fetchKeyAssets(in:options:)](photos/phasset/fetchkeyassets(in:options:).md)
- [fetchAssets(with:)](photos/phasset/fetchassets(with:).md)
- [fetchAssets(withBurstIdentifier:options:)](photos/phasset/fetchassets(withburstidentifier:options:).md)
