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

# MonthlyWeatherStatisticsQuery

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

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

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

[`static var precipitation: MonthlyWeatherStatisticsQuery<MonthPrecipitationStatistics>`](/documentation/WeatherKit/MonthlyWeatherStatisticsQuery/precipitation)

The monthly precipitation statistics query.

[`static var temperature: MonthlyWeatherStatisticsQuery<MonthTemperatureStatistics>`](/documentation/WeatherKit/MonthlyWeatherStatisticsQuery/temperature)

The monthly temperature statistics query.

## Relationships

### Conforms To

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

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

---

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)