以下IP兼容http/https
1.查询天气【weather】
http://fc.dingxiaolin.com/weather?city=北京
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | { "success": true, "data": { "city": "北京", "realtime": { "temperature": "13", "humidity": "30", "info": "晴", "wid": "00", "direct": "西北风", "power": "5级", "aqi": "20" }, "future": [ { "date": "2020-04-20", "temperature": "4/17℃", "weather": "晴", "wid": { "day": "00", "night": "00" }, "direct": "西北风" }, { "date": "2020-04-21", "temperature": "4/15℃", "weather": "晴", "wid": { "day": "00", "night": "00" }, "direct": "西北风转西风" }, { "date": "2020-04-22", "temperature": "6/16℃", "weather": "晴", "wid": { "day": "00", "night": "00" }, "direct": "西北风" }, { "date": "2020-04-23", "temperature": "6/19℃", "weather": "晴", "wid": { "day": "00", "night": "00" }, "direct": "北风转西北风" }, { "date": "2020-04-24", "temperature": "9/24℃", "weather": "晴", "wid": { "day": "00", "night": "00" }, "direct": "西风转北风" } ] } } |
2.获取ip地址【getipAddress】
http://fc.dingxiaolin.com/getipAddress //不写IP则获取访问IP地址
https://fc.dingxiaolin.com/getipAddress?ip=24.48.0.1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | { "success": true, "data": { "status": "success", "country": "加拿大", "countryCode": "CA", "region": "QC", "regionName": "Quebec", "city": "蒙特利尔", "zip": "H1S", "lat": 45.5808, "lon": -73.5825, "timezone": "America/Toronto", "isp": "Le Groupe Videotron Ltee", "org": "Videotron Ltee", "as": "AS5769 Videotron Telecom Ltee", "query": "24.48.0.1" } } |
3.车牌图片识别【scanCarCode】