<!--
{
  "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/DailyWeatherStatisticsQuery",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit05DailyA15StatisticsQueryV"
  },
  "title" : "DailyWeatherStatisticsQuery"
}
-->

# DailyWeatherStatisticsQuery

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

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

## Overview

Use the properties of this structure to create a daily weather statistics query. You can combine multiple queries into a single `WeatherService` request.

Here’s how to get daily weather statistics for New York City:

```swift
let (dailyPrecipitationStatistics, dailyTemperatureStatistics) = try await service.dailyStatistics(for: newYork, spanning: timeInterval, including: .precipitation, .temperature)
```

## Topics

### Type Properties

[`static var precipitation: DailyWeatherStatisticsQuery<DayPrecipitationStatistics>`](/documentation/WeatherKit/DailyWeatherStatisticsQuery/precipitation)

The daily precipitation statistics query.

[`static var temperature: DailyWeatherStatisticsQuery<DayTemperatureStatistics>`](/documentation/WeatherKit/DailyWeatherStatisticsQuery/temperature)

The daily 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)