<!--
{
  "availability" : [
    "iOS: 8.0.0 - 16.0.0",
    "iPadOS: 8.0.0 - 16.0.0",
    "macCatalyst: 13.1.0 - 16.0.0",
    "macOS: 10.15.0 - 13.0.0",
    "tvOS: 10.0.0 - 16.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetCollection/fetchAssetCollections(withALAssetGroupURLs:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetCollection(cm)fetchAssetCollectionsWithALAssetGroupURLs:options:"
  },
  "title" : "fetchAssetCollections(withALAssetGroupURLs:options:)"
}
-->

# fetchAssetCollections(withALAssetGroupURLs:options:)

Retrieves asset collections using URLs provided by the Assets Library framework.

```
class func fetchAssetCollections(withALAssetGroupURLs assetGroupURLs: [URL], options: PHFetchOptions?) -> PHFetchResult<PHAssetCollection>
```

## Parameters

`assetGroupURLs`

An array of <doc://com.apple.documentation/documentation/Foundation/NSURL> objects, each an asset group URL that was previously retrieved from an <doc://com.apple.documentation/documentation/AssetsLibrary/ALAssetsGroup> object.

`options`

Options that specify a filter predicate and sort order for the fetched asset collections, or `nil` to use default options. For details, see [`PHFetchOptions`](/documentation/Photos/PHFetchOptions).

## Return Value

A fetch result that contains the requested [`PHAssetCollection`](/documentation/Photos/PHAssetCollection) 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/ALAssetsGroup> 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)