---
title: DailyWeatherStatisticsQuery
framework: weatherkit
role: symbol
role_heading: Structure
path: weatherkit/dailyweatherstatisticsquery
---

# DailyWeatherStatisticsQuery

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

## Declaration

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

## Overview

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: let (dailyPrecipitationStatistics, dailyTemperatureStatistics) = try await service.dailyStatistics(for: newYork, spanning: timeInterval, including: .precipitation, .temperature)

## Topics

### Type Properties

- [precipitation](weatherkit/dailyweatherstatisticsquery/precipitation.md)
- [temperature](weatherkit/dailyweatherstatisticsquery/temperature.md)

## Relationships

### Conforms To

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