---
title: "dailySummary(for:including:)"
framework: weatherkit
role: symbol
role_heading: Instance Method
path: "weatherkit/weatherservice/dailysummary(for:including:)"
---

# dailySummary(for:including:)

Returns day weather summaries for the requested location, for the past 30 days, including the present day.

## Declaration

```swift
final func dailySummary<each T>(for location: CLLocation, 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.

## Return Value

Return Value The requested day weather summaries.

## Discussion

Discussion note: 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. let (dailyPrecipitationSummary, dailyTemperatureSummary) = try await service.dailySummary(for: newYork, including: .precipitation, .temperature)
