---
title: HourlyWeatherStatisticsQuery
framework: weatherkit
role: symbol
role_heading: Structure
path: weatherkit/hourlyweatherstatisticsquery
---

# HourlyWeatherStatisticsQuery

A structure that encapsulates a generic hourly weather statistics dataset request.

## Declaration

```swift
struct HourlyWeatherStatisticsQuery<T> where T : Decodable, T : Encodable, T : Equatable, T : Sendable
```

## Overview

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

## Topics

### Type Properties

- [temperature](weatherkit/hourlyweatherstatisticsquery/temperature.md)

## Relationships

### Conforms To

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