1. 老黄历
QUERY
- datestring必填string
日期
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.yanglistringstring
阳历日期
- data.yinlistringstring
阴历日期
- data.yistringstring
宜
- data.jistringstring
忌
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "yangli": "2022-10-30",
7 "yinli": "壬寅(虎)年十月初六",
8 "yi": "祭祀 解除 破屋 坏垣 馀事勿取",
9 "ji": "诸事不宜"
10 }
11}
2. 手机号归属地
QUERY
- phonestring必填string
手机号
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.provincestringstring
省
- data.citystringstring
市
- data.areaCodestringstring
区/县号
- data.zipCodestringstring
邮编
- data.ispstringstring
运营商
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "province": "北京",
7 "city": "北京",
8 "areaCode": "010",
9 "zipCode": "100000",
10 "isp": "中国联通"
11 }
12}
3. ip归属地
QUERY
- ipstring必填string
ip地址(只支持ipv4)
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.countrystringstring
国家/地区
- data.provincestringstring
省份
- data.citystringstring
城市
- data.districtstringstring
区/县
- data.longitudestringstring
经度(粗略的)
- data.latitudestringstring
纬度(粗略的)
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "country": "中国",
7 "province": "北京市",
8 "city": "市辖区",
9 "district": "西城区",
10 "longitude": "116.3861",
11 "latitude": "39.9143"
12 }
13}
4. 经纬度转地址
QUERY
- longitudenumber必填double
经度
- latitudenumber必填double
纬度
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.countrystringstring
国家/地区
- data.provincestringstring
省份
- data.citystringstring
城市
- data.districtstringstring
区/县
- data.townstringstring
街道/乡镇
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "country": "中国",
7 "province": " 北京市",
8 "city": "市辖区",
9 "district": "怀柔区",
10 "town": "琉璃庙镇"
11 }
12}
5. 查询天气预报-根据省市区
QUERY
- provincestring必填string
省/直辖市
- citystring必填string
市
- districtstring必填string
区
- typestring必填可选值:LIVE , FORECAST|string
类型 LIVE:实况天气 FORECAST:预报天气
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.provincestringstring
省份/直辖市
- data.citystringstring
城市
- data.districtstringstring
区/县
- data.liveInfoobject
实况天气数据信息(type传LIVE时有值)
- 子属性
- liveInfo.weatherstringstring
天气现象(汉字描述)
- liveInfo.temperaturestringstring
实时气温,单位:摄氏度
- liveInfo.windDirectionstringstring
风向描述
- liveInfo.windPowerstringstring
风力级别,单位:级
- liveInfo.humiditystringstring
空气湿度
- liveInfo.reportTimestringstring
数据发布的时间
- data.forecastInfosarray
预报数据(type传FORECAST时有值,且size=3)按顺序为当天、第二天、第三天的预报数据
- 数组成员object
- forecastInfos.datestringstring
日期
- forecastInfos.weekstringstring
星期几
- forecastInfos.dayWeatherstringstring
白天天气现象
- forecastInfos.nightWeatherstringstring
晚上天气现象
- forecastInfos.dayTempstringstring
白天温度
- forecastInfos.nightTempstringstring
晚上温度
- forecastInfos.dayWindstringstring
白天风向
- forecastInfos.nightWindstringstring
晚上风向
- forecastInfos.dayPowerstringstring
白天风力
- forecastInfos.nightPowerstringstring
晚上风力
- forecastInfos.reportTimestringstring
预报发布时间
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "province": "河南省",
7 "city": "洛阳市",
8 "district": "涧西区",
9 "liveInfo": {
10 "weather": "晴",
11 "temperature": "15",
12 "windDirection": "西",
13 "windPower": "≤3",
14 "humidity": "73",
15 "reportTime": "2022-10-30 21:00:07"
16 },
17 "forecastInfos": [
18 {
19 "date": "2022-10-30",
20 "week": "7",
21 "dayWeather": "晴",
22 "nightWeather": "晴",
23 "dayTemp": "11",
24 "nightTemp": "0",
25 "dayWind": "西北",
26 "nightWind": "西北",
27 "dayPower": "4",
28 "nightPower": "4",
29 "reportTime": "2022-10-30 21:01:14"
30 }
31 ]
32 }
33}
6. 查询天气预报-根据省市区
QUERY
- longitudenumber必填double
经度
- latitudenumber必填double
纬度
- typestring必填可选值:LIVE , FORECAST|string
类型 LIVE:实况天气 FORECAST:预报天气
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.provincestringstring
省份/直辖市
- data.citystringstring
城市
- data.districtstringstring
区/县
- data.liveInfoobject
实况天气数据信息(type传LIVE时有值)
- 子属性
- liveInfo.weatherstringstring
天气现象(汉字描述)
- liveInfo.temperaturestringstring
实时气温,单位:摄氏度
- liveInfo.windDirectionstringstring
风向描述
- liveInfo.windPowerstringstring
风力级别,单位:级
- liveInfo.humiditystringstring
空气湿度
- liveInfo.reportTimestringstring
数据发布的时间
- data.forecastInfosarray
预报数据(type传FORECAST时有值,且size=3)按顺序为当天、第二天、第三天的预报数据
- 数组成员object
- forecastInfos.datestringstring
日期
- forecastInfos.weekstringstring
星期几
- forecastInfos.dayWeatherstringstring
白天天气现象
- forecastInfos.nightWeatherstringstring
晚上天气现象
- forecastInfos.dayTempstringstring
白天温度
- forecastInfos.nightTempstringstring
晚上温度
- forecastInfos.dayWindstringstring
白天风向
- forecastInfos.nightWindstringstring
晚上风向
- forecastInfos.dayPowerstringstring
白天风力
- forecastInfos.nightPowerstringstring
晚上风力
- forecastInfos.reportTimestringstring
预报发布时间
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "province": "河南省",
7 "city": "洛阳市",
8 "district": "涧西区",
9 "liveInfo": {
10 "weather": "晴",
11 "temperature": "15",
12 "windDirection": "西",
13 "windPower": "≤3",
14 "humidity": "73",
15 "reportTime": "2022-10-30 21:00:07"
16 },
17 "forecastInfos": [
18 {
19 "date": "2022-10-30",
20 "week": "7",
21 "dayWeather": "晴",
22 "nightWeather": "晴",
23 "dayTemp": "11",
24 "nightTemp": "0",
25 "dayWind": "西北",
26 "nightWind": "西北",
27 "dayPower": "4",
28 "nightPower": "4",
29 "reportTime": "2022-10-30 21:01:14"
30 }
31 ]
32 }
33}
7. 简繁体转换
QUERY
- strstring必填string
原始字符串
- typestring必填可选值:J2F , F2J|string
类型 J2F:简体转繁体 F2J:繁体转简体
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataobject
具体接口数据
- 子属性
- data.strstringstring
转换后的字符串
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": {
6 "str": "厲害"
7 }
8}
8. 中文转拼音
QUERY
- strstring必填string
中文字符串
- typestring必填可选值:NONE , NUM , UNICODE|string
音调类型 NONE:无音调 NUM:数字音调 UNICODE:unicode音调
- apiKeystring必填string
apiKey
参数
- codeintint32
状态码 0成功 非0失败
- msgstringstring
错误信息
- detailstringstring
错误明细
- dataarray
具体接口数据
- 数组成员string
Example 1
请求示例
成功示例
1{
2 "code": 0,
3 "msg": "SUCCESS",
4 "detail": "SUCCESS",
5 "data": [
6 "string"
7 ]
8}