<!--
{
  "availability" : [
    "iOS: 8.0.0 - 11.0.0",
    "iPadOS: 8.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "tvOS: 8.0.0 - 11.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAsset/fetchAssets(withALAssetURLs:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAsset(cm)fetchAssetsWithALAssetURLs:options:"
  },
  "title" : "fetchAssets(withALAssetURLs:options:)"
}
-->

# fetchAssets(withALAssetURLs:options:)

Retrieves assets using URLs provided by the Assets Library framework.

```
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 [`PHFetchOptions`](/documentation/Photos/PHFetchOptions).

## Return Value

A fetch result that contains the requested [`PHAsset`](/documentation/Photos/PHAsset) objects, or an empty fetch result if no objects match the request.

## 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 <doc://com.apple.documentation/documentation/AssetsLibrary/ALAsset> objects and you need to retrieve the corresponding Photos framework objects.

---

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)