<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/HourlyWeatherStatisticsQuery",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit06HourlyA15StatisticsQueryV"
  },
  "title" : "HourlyWeatherStatisticsQuery"
}
-->

# HourlyWeatherStatisticsQuery

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

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

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

[`static var temperature: HourlyWeatherStatisticsQuery<HourTemperatureStatistics>`](/documentation/WeatherKit/HourlyWeatherStatisticsQuery/temperature)

The hourly temperature statistics query.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)