<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/WeatherService",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit0A7ServiceC"
  },
  "title" : "WeatherService"
}
-->

# WeatherService

Provides an interface for obtaining weather data.

```
final class WeatherService
```

## Topics

### Creating the object

[`init()`](/documentation/WeatherKit/WeatherService/init())

Creates a weather service object.

### Obtaining forecasts

[`weather(for:)`](/documentation/WeatherKit/WeatherService/weather(for:))

Returns the weather forecast for the requested location.

[`weather(for:including:_:)`](/documentation/WeatherKit/WeatherService/weather(for:including:_:))

Returns the weather forecast for the requested location.

[`weather(for:including:_:_:)`](/documentation/WeatherKit/WeatherService/weather(for:including:_:_:))

Returns the weather forecast for the requested location.

[`weather(for:including:_:_:_:)`](/documentation/WeatherKit/WeatherService/weather(for:including:_:_:_:))

Returns the weather forecast for the requested location.

[`weather(for:including:_:_:_:_:)`](/documentation/WeatherKit/WeatherService/weather(for:including:_:_:_:_:))

Returns the weather forecast for the requested location.

[`weather(for:including:_:_:_:_:_:)`](/documentation/WeatherKit/WeatherService/weather(for:including:_:_:_:_:_:))

Returns the weather forecast for the requested location.

[`shared`](/documentation/WeatherKit/WeatherService/shared)

A single, shared weather service object.

### Providing attribution

[`attribution`](/documentation/WeatherKit/WeatherService/attribution)

The required attribution which includes a legal attribution page and Apple Weather mark.



---

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)