π‘ API Documentation
Everything you need to use the weather API.
π Swagger UI
Browse every endpoint, read the parameters and send test requests from your browser.
π· GraphQL API
Request exactly the fields you need with a single GraphQL query, and explore the schema interactively.
π REST API
Simple HTTP endpoints that return weather, forecasts, alerts, earthquakes and more.
Quick Start
Weather API:
curl -q -LSsf https://wthr.top/api/v1/weather?location=London
GraphQL query
curl -q -LSsf https://wthr.top/api/v1/server/graphql -d '{query}'
π Global Coverage
Weather data for any location on Earth, by city name, ZIP code or coordinates.
π No API Key
Public endpoints work without registration or an API key.
π Multiple Formats
Responses are available as JSON, plain text and formatted console output.
β‘ Real-Time Data
Current conditions and alerts are refreshed continuously from upstream providers.