<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.5.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecureDownloadCopyURLs",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@F@SecureDownloadCopyURLs"
  },
  "title" : "SecureDownloadCopyURLs"
}
-->

# SecureDownloadCopyURLs

Returns a list of URLs from which the data can be downloaded.

```
OSStatus SecureDownloadCopyURLs(SecureDownloadRef downloadRef, CFArrayRef*urls);
```

## Parameters

`downloadRef`

The secure download object to query.

`urls`

A pointer to a <doc://com.apple.documentation/documentation/CoreFoundation/CFArray> object that the function sets to point at a new array containing one or more <doc://com.apple.documentation/documentation/CoreFoundation/CFURL> objects indicating the urls to download.

## Return Value

A result code. See [Secure Download Result Codes](/documentation/Security/secure-download-result-codes).

## Discussion

The first URL in the list is the preferred download location. The other URLs are backup locations in case earlier locations in the list can’t be accessed.

---

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)