<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSURLQueryItem/value",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSURLQueryItem(py)value"
  },
  "title" : "value"
}
-->

# value

The value for the query item.

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

## 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

[`queryItems`](/documentation/Foundation/NSURLComponents/queryItems)

The query URL component as an array of name/value pairs.



---

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)