---
title: MonthlyWeatherStatisticsQuery
framework: weatherkit
role: symbol
role_heading: Structure
path: weatherkit/monthlyweatherstatisticsquery
---

# MonthlyWeatherStatisticsQuery

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

## Declaration

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

## Overview

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

## Topics

### Type Properties

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

## Relationships

### Conforms To

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