Query Weather
Completely free weather API with no registration required. Supports both domestic and international cities. Query by city name (Chinese or English) or by Adcode, or skip both parameters and let the API auto-locate by client IP. Returns full meteorological data — temperature, humidity, wind direction and force — with optional extended fields (apparent temperature, visibility, pressure, UV, air quality and pollutant breakdown), 18 lifestyle indices, up to 7 days of daily forecast, hourly forecasts (24 hours), and minute-level precipitation forecasts. JSON response with millisecond-level latency. Suitable for weather apps, travel planning, smart home systems, agricultural monitoring, and similar scenarios. · Weather forecast apps, travel planning tools, smart home systems, agricultural monitoring, logistics dispatch, outdoor activity reminders, travel apps, and mini-program weather features. · Query Weather
free weather API, weather lookup endpoint, real-time weather API, city weather forecast, meteorological data API, weather forecast endpoint, city code API, temperature lookup API, no-registration weather API, public weather endpoint, free weather API calls, apparent temperature API, air quality index, lifestyle index API, UV index, multi-day weather forecast, 7-day forecast API, hourly forecast API, minute-level precipitation API, international city weather, air pollutants API
GET /misc/weather - Query Weather
Checking the weather before heading out is always a good habit. This endpoint provides accurate, real-time weather data for both domestic and international cities.
Overview
Three query modes are supported:
- Pass adcode to query by administrative district code (highest priority).
- Pass city to query by city name. Both Chinese (北京) and English (Tokyo) are accepted.
- Pass neither and the API will auto-locate using the client IP.
The lang parameter accepts zh (default) and en. City-name translations cover 7000+ cities.
Optional modules
- extended=true: extended meteorological fields (apparent temperature, visibility, pressure, UV, air quality, and pollutant breakdown).
- forecast=true: multi-day forecast (up to 7 days), with daily high/low temperature, sunrise/sunset, wind speed, and other detailed data.
- hourly=true: hourly forecast (24 hours).
- minutely=true: minute-level precipitation forecast (domestic cities only, 2-minute resolution).
- indices=true: 18 lifestyle indices (clothing, UV, car wash, sports, pollen, and more).
Notes on the weather field
weather is a free-form weather description, not a fixed enum.
Common Chinese values returned by the API include: 晴 (sunny), 多云 (cloudy), 阴 (overcast), 小雨 (light rain), 中雨 (moderate rain), 大雨 (heavy rain), 雷阵雨 (thunderstorm), 小雪 (light snow), 中雪 (moderate snow), 大雪 (heavy snow), 雨夹雪 (sleet), 雾 (fog), 霾 (haze), 沙尘 (sand).
If your application needs a stable weather classification, map against weathercode instead. See the weather icon code table for all possible values.