文档
测试

火星天气

GET
/weather/v2/marsInfo

接口描述

查询火星天气

请求头

参数名
类型
描述
必填
ACCESSTOKEN
string
登录注册时返回的用户ppId
必填

响应参数

参数名
类型
描述
必填
code
int
返回结果码 1000-成功 非1000-未成功
必填
data
object
返回结果对象
必填
marsWeather
object
最新火星天气
必填
adCode
string
区域id
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
countryZh
string
国家名称
必填
date
string
日期
必填
leaderZh
string
上级城市
必填
pressure
string
大气压
必填
provinceZh
string
省份名称
必填
solar
int
太阳日
必填
sunRise
string
日出时间
必填
sunSet
string
日落时间
必填
temMax
string
最高气温
必填
temMin
string
最低气温
必填
temAvg
string
火星表面平均气温
必填
earthDay
string
地球每天时长
必填
marsDay
string
火星每天时长
必填
marsWeekWeather
array
一周火星天气数组
必填
adCode
string
区域id
必填
cityId
string
城市id
必填
cityZh
string
城市名称
必填
countryZh
string
国家名称
必填
date
string
日期
必填
leaderZh
string
上级城市名称
必填
pressure
string
大气压强
必填
provinceZh
string
省份名称
必填
solar
int
太阳日
必填
sunRise
string
日出时间
必填
sunSet
string
日落时间
必填
temMax
string
最高气温
必填
temMin
string
最低气温
必填
temAvg
string
火星表面平均温度
必填
earthDay
string
地球每天时长
必填
marsDay
string
火星每天时长
必填
message
string
返回结果信息
必填

说明 / 示例

{ "code": 1000, "data": { "marsWeather": { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-20", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "859", "provinceZh": "火星", "solar": 3183, "sunRise": "05:59", "sunSet": "17:42", "temAvg": "-62", "temMax": "-22", "temMin": "-79" }, "marsWeekWeather": [ { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-20", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "859", "provinceZh": "火星", "solar": 3183, "sunRise": "05:59", "sunSet": "17:42", "temAvg": "-62", "temMax": "-22", "temMin": "-79" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-19", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "859", "provinceZh": "火星", "solar": 3182, "sunRise": "05:59", "sunSet": "17:42", "temAvg": "-62", "temMax": "-24", "temMin": "-80" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-18", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "859", "provinceZh": "火星", "solar": 3181, "sunRise": "05:59", "sunSet": "17:42", "temAvg": "-62", "temMax": "-25", "temMin": "-80" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-17", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "860", "provinceZh": "火星", "solar": 3180, "sunRise": "06:00", "sunSet": "17:43", "temAvg": "-62", "temMax": "-24", "temMin": "-78" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-16", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "860", "provinceZh": "火星", "solar": 3179, "sunRise": "06:00", "sunSet": "17:43", "temAvg": "-62", "temMax": "-22", "temMin": "-79" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-15", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "862", "provinceZh": "火星", "solar": 3178, "sunRise": "06:00", "sunSet": "17:43", "temAvg": "-62", "temMax": "-23", "temMin": "-80" }, { "adCode": "M0001", "cityId": "M0001", "cityZh": "盖尔环形山(火星)", "countryZh": "火星", "date": "2021-07-14", "earthDay": "23:56", "leaderZh": "火星", "marsDay": "24:37", "pressure": "861", "provinceZh": "火星", "solar": 3177, "sunRise": "06:00", "sunSet": "17:44", "temAvg": "-62", "temMax": "-21", "temMin": "-79" } ] }, "message": "查询火星天气成功" }