---
title: url
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresponse/url
---

# url

The URL for the response.

## Declaration

```swift
var url: URL? { get }
```

## See Also

### Getting the response properties

- [expectedContentLength](foundation/urlresponse/expectedcontentlength.md)
- [suggestedFilename](foundation/urlresponse/suggestedfilename.md)
- [mimeType](foundation/urlresponse/mimetype.md)
- [textEncodingName](foundation/urlresponse/textencodingname.md)
