Authenticate to Apple's WeatherKit REST API with a signed JWT and fetch weather data for a coordinate

domain: weatherkit.apple.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In the Apple Developer portal, create a Services ID and a WeatherKit-enabled private key, noting the key ID (kid) and team/service identifiers.
  2. Construct a JWT with an ES256-signed header (alg, kid, id) and payload (iss, iat, exp, sub) using the private key, per Apple's WeatherKit REST API authentication spec.
  3. Send requests to the WeatherKit REST endpoint with the JWT in the Authorization: Bearer header.
  4. Request the desired data sets (currentWeather, forecastDaily, forecastHourly, weatherAlerts, etc.) via the availability/weather endpoints for a given lat/lon and language.
  5. Sign and issue new JWTs server-side only — never embed the private key or generate tokens in client-side/browser code.

Known gotchas

Related routes

Query point/time-series weather parameters from the Meteomatics API using OAuth token authentication
api.meteomatics.com · 5 steps · unrated
Authenticate with App Store Connect API using JWT and manage TestFlight builds
app-store-connect · 6 steps · unrated
Authenticate to Weathermatic's SmartLink Network v2 API with a developer token/secret pair and control a zone
weathermatic.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans