---
title: WeatherService
framework: weatherkit
role: symbol
role_heading: Class
path: weatherkit/weatherservice
---

# WeatherService

Provides an interface for obtaining weather data.

## Declaration

```swift
final class WeatherService
```

## Topics

### Creating the object

- [init()](weatherkit/weatherservice/init().md)

### Obtaining forecasts

- [weather(for:)](weatherkit/weatherservice/weather(for:).md)
- [weather(for:including:_:)](weatherkit/weatherservice/weather(for:including:_:).md)
- [weather(for:including:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:).md)
- [weather(for:including:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:).md)
- [weather(for:including:_:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:_:).md)
- [weather(for:including:_:_:_:_:_:)](weatherkit/weatherservice/weather(for:including:_:_:_:_:_:).md)
- [shared](weatherkit/weatherservice/shared.md)

### Providing attribution

- [attribution](weatherkit/weatherservice/attribution.md)

### Instance Methods

- [dailyStatistics(for:forDaysIn:including:)](weatherkit/weatherservice/dailystatistics(for:fordaysin:including:).md)
- [dailyStatistics(for:including:)](weatherkit/weatherservice/dailystatistics(for:including:).md)
- [dailyStatistics(for:startDay:endDay:including:)](weatherkit/weatherservice/dailystatistics(for:startday:endday:including:).md)
- [dailySummary(for:forDaysIn:including:)](weatherkit/weatherservice/dailysummary(for:fordaysin:including:).md)
- [dailySummary(for:including:)](weatherkit/weatherservice/dailysummary(for:including:).md)
- [hourlyStatistics(for:forHoursIn:including:)](weatherkit/weatherservice/hourlystatistics(for:forhoursin:including:).md)
- [hourlyStatistics(for:including:)](weatherkit/weatherservice/hourlystatistics(for:including:).md)
- [hourlyStatistics(for:startHour:endHour:including:)](weatherkit/weatherservice/hourlystatistics(for:starthour:endhour:including:).md)
- [monthlyStatistics(for:forMonthsIn:including:)](weatherkit/weatherservice/monthlystatistics(for:formonthsin:including:).md)
- [monthlyStatistics(for:including:)](weatherkit/weatherservice/monthlystatistics(for:including:).md)
- [monthlyStatistics(for:startMonth:endMonth:including:)](weatherkit/weatherservice/monthlystatistics(for:startmonth:endmonth:including:).md)
- [weather(for:including:)](weatherkit/weatherservice/weather(for:including:)-3cg1d.md)
- [weather(for:including:)](weatherkit/weatherservice/weather(for:including:)-5jqwy.md)

## Relationships

### Conforms To

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

## See Also

### Fundamentals

- [Fetching weather forecasts with WeatherKit](weatherkit/fetching_weather_forecasts_with_weatherkit.md)
- [Weather](weatherkit/weather.md)
