Current
currentGet current/real-time weather for a location, including temperature, condition, humidity, wind, UV, and air quality (AQI). Location can be a city name, "lat,lon", zip code, or IATA airport code. Example: current({ q: "London", aqi: true }).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Location — city name (e.g. "London"), "lat,lon" (e.g. "48.8567,2.3508"), US/UK/Canada zip/postcode, IATA airport code (e.g. "DXB"), or "auto:ip". NOTE on IATA codes: WeatherAPI resolves them to that airport's CITY, not the airport's own weather station — for the actual airport-station reading (can differ by several degrees) use the aviation-weather pack's metar tool with the airport's ICAO code instead. | |
| aqi | No | Include air quality (AQI) data. Default true. | |
| _apiKey | No | Optional — your own WeatherAPI.com API key for higher limits; omit to use the shared Pipeworx key. |