Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第三方接口 #29

Open
Marinerer opened this issue Jun 4, 2019 · 5 comments
Open

第三方接口 #29

Marinerer opened this issue Jun 4, 2019 · 5 comments

Comments

@Marinerer
Copy link
Owner

No description provided.

@Marinerer
Copy link
Owner Author

聚合接口

@Marinerer
Copy link
Owner Author

Marinerer commented Jun 4, 2019

客户端IP

新浪接口

获取当前城市信息

http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js

获取指定IP所在城市信息

http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip=218.192.3.42

搜狐接口

http://pv.sohu.com/cityjson?ie=utf-8

淘宝接口

http://ip.taobao.com/service/getIpInfo.php?ip=114.114.114.114

站长之家接口

http://ip.chinaz.com/getip.aspx

@Marinerer
Copy link
Owner Author

天气

腾讯接口

天气(各城市排行)

http://weather.gtimg.cn/aqi/cityrank.json

城市ID

http://mat1.gtimg.com/weather/index2014/wtData_v2.js

获取城市天气(javascript)

http://weather.gtimg.cn/city/01010101.js
//http://weather.gtimg.cn/city/{城市ID}.js

获取城市天气(jsonp)

http://weather.gtimg.cn/aqi/01010508.json
//http://weather.gtimg.cn/aqi/{城市ID}.json

调用方法(参考)

http://mat1.gtimg.com/weather/index2014/wtEvent_v2.js

搜索方法(参考)

http://mat1.gtimg.com/weather/index2014/searchEvent_v3.js?v3

etouch接口

通过城市名字获得天气数据(json)

http://wthrcdn.etouch.cn/weather_mini?city=北京市

通过城市ID获得天气数据(json)

http://wthrcdn.etouch.cn/weather_mini?citykey=101010100

通过城市名字获得天气数据(xml)

http://wthrcdn.etouch.cn/WeatherApi?city=北京市

通过城市ID获得天气数据(xml)

http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100

@Marinerer
Copy link
Owner Author

股票

指数接口

上证指数

http://qt.gtimg.cn/q=s_sh000001

道琼斯指数

http://qt.gtimg.cn/q=s_usDJI

腾讯济安

http://qt.gtimg.cn/q=s_sh000847

恒生指数

http://qt.gtimg.cn/q=s_r_hkHSI

股票行情接口

http://sqt.gtimg.cn/q=sh600519
//返回
v_sh600519="1~贵州茅台~600519~456.86~452.55~454.00~56259~27176~29084~456.80~4~456.68~8~456.67~1~456.62~4~456.61~1~456.81~11~456.87~2~456.89~1~456.90~1~456.97~1~14:59:59/456.80/6/M/274055/28944|14:59:59/456.80/3/B/137040/28937|14:59:53/456.69/7/S/319760/28928|14:59:50/456.81/17/S/776642/28925|14:59:47/456.89/5/B/228435/28920|14:59:44/456.81/8/S/365448/28916~20170719150557~4.31~0.95~463.62~452.80~456.80/56259/2574934655~56259~257493~0.45~31.97~~463.62~452.80~2.39~5739.08~5739.08~7.26~497.81~407.30~2.03";

代码含义[以~分割字符串,下标从0开始]

0: 未知 1: 股票名字 2: 股票代码 3: 当前价格 4: 昨收 5: 今开 6: 成交量(手) 7: 外盘 8: 内盘 9: 买一 10: 买一量(手) 11-18: 买二 买五 19: 卖一 20: 卖一量 21-28: 卖二 卖五 29: 最近逐笔成交 30: 时间 31: 涨跌 32: 涨跌% 33: 最高 34: 最低 35: 价格/成交量(手)/成交额 36: 成交量(手) 37: 成交额(万) 38: 换手率 39: 市盈率 40: 41: 最高 42: 最低 43: 振幅 44: 流通市值 45: 总市值 46: 市净率 47: 涨停价 48: 跌停价

@Marinerer
Copy link
Owner Author

壁纸

Bing壁纸

接口一:

http://cn.bing.com/iod/1366/1024/201706221600

接口二:w表示宽度,h高度,t表示时间

http://cn.bing.com/ImageResolution.aspx?w=1366&h=1024&t=2017622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant