---
title: value
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurlqueryitem/value
---

# value

The value for the query item.

## Declaration

```swift
var value: String? { get }
```

## Discussion

Discussion For example, in the URL http://www.apple.com/search/?q=iPad, the value parameter is iPad. This string is not percent-encoded.

## See Also

### Related Documentation

- [queryItems](foundation/nsurlcomponents/queryitems.md)

### Reading a Query Item’s Name and Value

- [name](foundation/nsurlqueryitem/name.md)
