API DocsAPI Docs
get/api/map/weather
get/api/map/weather
获取指定国家明天的天气数据
Basic Information
Request Method:
get
Request URL:
https://www.lycoo.com/api/map/weather
Tags:
地图服务
Description
获取指定国家所有城市明天的天气预报数据
Query Parameters
Query Parameters Explanation
Query parameters are added at the end of the URL, starting with a question mark, for example:
https://www.lycoo.com/api/map/weather?country=example
Parameter Name | Type | Required | Example Value | Description |
---|---|---|---|---|
country | string | Required | example | 国家代码,如:CN |
Response Example
200获取成功
{
"success": true
}
400请求参数错误
{
"success": false,
"message": "必须提供国家代码"
}
404未找到天气数据
{
"success": false,
"message": "未找到该国家的天气数据"
}
500服务器错误
{
"success": false,
"message": "获取天气数据失败"
}