---
title: URLQueryItem
framework: foundation
role: symbol
role_heading: Structure
path: foundation/urlqueryitem
---

# URLQueryItem

A single name-value pair from the query portion of a URL.

## Declaration

```swift
struct URLQueryItem
```

## Topics

### Creating Query Items

- [init(name:value:)](foundation/urlqueryitem/init(name:value:).md)

### Accessing the Item’s Components

- [name](foundation/urlqueryitem/name.md)
- [value](foundation/urlqueryitem/value.md)

### Using Reference Types

- [NSURLQueryItem](foundation/nsurlqueryitem.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [ReferenceConvertible](foundation/referenceconvertible.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### URLs

- [URL](foundation/url.md)
- [URLComponents](foundation/urlcomponents.md)
