语言
/v1/weather/current
返回由城市名称或纬度/经度指定的位置的当前天气数据。 响应包括温度(感觉类似)、湿度、降水量、风速和风向、云量、数字天气代码和人类可读的描述。
City name to look up weather for. Provide either city or lat/lng.
Latitude of the location. Use with lng.
Longitude of the location. Use with lat.
curl -X POST https://api.botoi.com/v1/weather/current \ -H "Content-Type: application/json" \ -d '{"city":"London","lat":51.5074,"lng":-0.1278}'
根据访问者当地的天气个性化主页横幅或产品推荐。 零售网站可以在下雨时推销雨伞,或在晴朗的天空中推销防晒霜,从而提高与上下文相关的转化率。
在派遣司机之前检查送货路线沿线的天气状况。 标记有大风或强降水的路线,以便调度员可以改变路线或延迟发货,以保护货物和驾驶员的安全。
轮询当前天气数据以触发智能家居操作。 当云量低于 20% 时关闭电动百叶窗,仅在降水量为零时启动喷水器,或根据感觉温度调整恒温器设定点。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.