An OpenAPI 3 specification for Apple's WeatherKit REST API with interactive Swagger UI documentation.
🔗 SwaggerUI: https://codybrom.github.io/weatherkit-openapi/
Apple provides a powerful WeatherKit REST API but hasn't published an official OpenAPI/Swagger specification. This project fills that gap by offering:
- Complete API endpoint documentation
- Request/response schema definitions
- Interactive UI for exploring the API structure
- Reference for client code generation
Caution
Privacy Note: The Swagger UI interface runs entirely client-side. Your weather data, coordinates, and JWT tokens never leave your device. Due to CORS restrictions, direct API calls from the Swagger UI won't work - it's designed for documentation purposes only.
All WeatherKit endpoints require JWT authentication with ES256 signature.
Authorization: Bearer <your_jwt_token>
For details on generating valid tokens, see Apple's authentication documentation.
This specification covers all endpoints of the Apple WeatherKit REST API:
- Weather data by location (latitude/longitude)
- Current weather conditions
- Daily forecasts
- Hourly forecasts
- Weather alerts
- Historical weather data
- Weather dataset availability
You can use this OpenAPI specification to generate client code in various languages:
# Using OpenAPI Generator
openapi-generator-cli generate -i openapi.yaml -g python -o ./python-client
# Using Swagger Codegen
swagger-codegen generate -i openapi.yaml -l javascript -o ./js-client
The provided Swagger UI lets you explore:
- Available endpoints
- Required parameters
- Expected responses
- Schema definitions
Contributions are welcome! If you notice missing endpoints, incorrect schemas, or other issues:
- Fork the repository
- Create a feature branch
- Submit a pull request
Please ensure your changes align with Apple's official documentation.
This is an unofficial specification and is not endorsed by or affiliated with Apple Inc. All endpoint specifications are based on Apple's public documentation and may not represent the complete or current API functionality. Always refer to Apple's official WeatherKit documentation for the most accurate information.
MIT