<!--
{
  "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/WeatherService/dailySummary(for:forDaysIn:including:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit0A7ServiceC12dailySummary3for0F6DaysIn9includingAA05DailyaE0VyxGxQp_tSo10CLLocationC_10Foundation12DateIntervalVAA0jaE5QueryVyxGxQptYaKRvzSeRzSERzSQRzs8SendableRzlF"
  },
  "title" : "dailySummary(for:forDaysIn:including:)"
}
-->

# dailySummary(for:forDaysIn:including:)

Returns day weather summaries for the requested location, for each day within the provided date interval.

```
final func dailySummary<each T>(for location: CLLocation, forDaysIn interval: DateInterval, including dataSets: repeat DailyWeatherSummaryQuery<each T>) async throws -> (repeat DailyWeatherSummary<each T>) where repeat each T : Decodable, repeat each T : Encodable, repeat each T : Equatable, repeat each T : Sendable
```

## Parameters

`location`

The requested location.

`interval`

The date interval for which to obtain day weather summaries. The end date of the interval will be capped at 1 year after the start date.

## Return Value

The requested day weather summaries.

## Discussion> Throws: Weather data error `WeatherError`

This is a variadic API in which any combination of data sets can be requested and returned as a tuple. The following example will get a daily weather summary for New York City.

```swift
let (dailyPrecipitationSummary, dailyTemperatureSummary) = try await service.dailySummary(for: newYork, forDaysIn: timeInterval, including: .precipitation, .temperature)
```

---

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)