---
title: WeatherQuery
framework: weatherkit
role: symbol
role_heading: Structure
path: weatherkit/weatherquery
---

# WeatherQuery

A structure that encapsulates a generic weather dataset request.

## Declaration

```swift
struct WeatherQuery<T>
```

## Overview

Overview Use the properties of this structure to create a weather query. You can combine multiple weather queries into a single WeatherService request. Here’s how to get the weather for New York City: let (hourly, daily, alerts) = try await service.weather(for: newYork, including: .hourly, .daily, .alerts)

## Topics

### Creating queries

- [alerts](weatherkit/weatherquery/alerts.md)
- [availability](weatherkit/weatherquery/availability.md)
- [current](weatherkit/weatherquery/current.md)
- [daily](weatherkit/weatherquery/daily.md)
- [hourly](weatherkit/weatherquery/hourly.md)
- [minute](weatherkit/weatherquery/minute.md)
- [daily(startDate:endDate:)](weatherkit/weatherquery/daily(startdate:enddate:).md)
- [hourly(startDate:endDate:)](weatherkit/weatherquery/hourly(startdate:enddate:).md)

### Type Properties

- [changes](weatherkit/weatherquery/changes.md)
- [historicalComparisons](weatherkit/weatherquery/historicalcomparisons.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Requests

- [CurrentWeather](weatherkit/currentweather.md)
- [WeatherAttribution](weatherkit/weatherattribution.md)
- [WeatherMetadata](weatherkit/weathermetadata.md)
- [WeatherSeverity](weatherkit/weatherseverity.md)
