WeatherKit

Accurate, hyperlocal weather for your app, from the service behind Apple Weather.

Introduced
2022
WWDC22
Kind
Framework
Runs on
Get it from
iOS
16.0+
iPadOS
16.0+
Mac Catalyst
16.0+
macOS
13.0+
tvOS
16.0+
visionOS
1.0+
watchOS
9.0+

Overview

WeatherKit provides current conditions, minute-by-minute precipitation, hourly and 10-day forecasts, severe weather alerts and historical statistics. Use the Swift framework on Apple platforms or the REST API anywhere else.

Every Apple Developer Program membership includes 500,000 calls a month, and apps show Apple Weather attribution.

Forecasts

Current, minute, hourly and daily forecasts.

Severe weather alerts

Official alerts for the requested location.

REST API

Use the same data from any platform.

Included

500,000 calls a month with membership.

Forecast.swift
import CoreLocation import WeatherKit let cupertino = CLLocation(latitude: 37.33, longitude: -122.01) let weather = try await WeatherService.shared.weather(for: cupertino) let now = weather.currentWeather print(now.temperature.formatted(), now.condition.description)

History

How it grew up.

2022

Introduced

Apple's weather service opens to developers.

2023

Dark Sky API

The Dark Sky API shuts down and developers move to WeatherKit.

2024

Historical data

Comparisons to historical averages and snowfall totals in iOS 18.