工具 API

get_current_weather

Get current weather and a 3-day forecast for any city, airport code, or coordinates. Uses wttr.in — no API key needed, very fast. Args: location: City name (e.g. "Beijing"), airport IATA code (e.g. "PEK"), or "lat,lon" coordinates (e.g. "39.9,116.4"). Use '+' for spaces, e.g. "New+York". units: "metric" (°C, km/h) or "uscs" (°F, mph). Default: "metric". lang: Language code for condition descriptions (e.g. "zh", "en", "ja"). Default: "zh".

lifestyle1 积分

调用信息

工具标识
weather-free.get_current_weather
服务提供方
天气查询
平均响应
1989 ms
近 7 天调用
5

输入参数

location必填

string

units

string

lang

string