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

# name

The name of the query item.

## Declaration

```swift
var name: String { get }
```

## Discussion

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

## See Also

### Related Documentation

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

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

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