Alexa查询,返回全球\本地的排名情况及排名详情。
接口地址:http://route.showapi.com/24-2 (注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。)
支持格式:json
请求方法:HTTP协议,支持GET/POST方法。
二、请求参数/ Request parameter
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。1、系统级参数(所有接入点都需要的参数):
参数名称 类型 示例值 必须 描述 showapi_appid String 100 是 易源应用id showapi_sign String 698d51a19d8a121ce581499d7b701668 是 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选,在url后带上appid和secret即可 showapi_timestamp String 20141114142239 否 客户端时间。
格式yyyyMMddHHmmss,如20141114142239
为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。showapi_res_gzip String 1或0 否 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 ... 2、应用级参数(每个接入点有自己的参数,当前接入点的参数见下表):
参数名称 类型 默认值 示例值 必须 描述 domain String baidu.com 是 需要查询的域名
请求示例:String res=new ShowApiRequest("http://route.showapi.com/24-2","my_appId","my_appSecret") .addTextPara("domain","baidu.com") .post(); System.out.println(res);
三、返回参数/ Return parameter
以JSON格式返回结果。
1、系统级参数(所有接入点都会返回的参数): 展开收起
名称 类型 示例值 描述 showapi_res_body String {"city":"昆明","prov":"云南"} 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 showapi_res_code int 0 易源返回标志,0为成功,其他为失败。
0成功
-1,系统调用错误
-2,可调用次数或金额为0
-3,读取超时
-4,服务端返回数据解析错误
-5,后端服务器DNS解析错误
-6,服务不存在或未上线
-7, API创建者的网关资源不足
-1000,系统维护
-1002,showapi_appid字段必传
-1003,showapi_sign字段必传
-1004,签名sign验证有误
-1005,showapi_timestamp无效
-1006,app无权限调用接口
-1007,没有订购套餐
-1008,服务商关闭对您的调用权限
-1009,调用频率受限
-1010,找不到您的应用
-1011,子授权app_child_id无效
-1012,子授权已过期或失效
-1013,子授权ip受限
-1014,token权限无效
showapi_res_error String 用户输入有误! 错误信息的展示 showapi_res_id String ce135f6739294c63be0c021b76b6fbff 本次请求id ... 2、应用级参数(系统级输出参数showapi_res_body字段中的json数据结构): 展开收起
名称 类型 示例值 描述 ret_code String 0 扣费标识,0标识查询成功并扣费 remark String 查询成功! 接口调用提示信息 global_rank_delta String 排名变化参考值 global_pv_rank String 全球排名pv domain String baidu.com 所查询的域名 global_uv_rank String 全球排名uv local_rank String 域名所属国家/地区排名 local_code String 所属国家/地区代码 ...
返回示例:{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_body": {
"ret_code": 0,
"remark": "查询成功.",
"global_rank_delta": "0",
"global_pv_rank": "4",
"domain": "baidu.com",
"global_uv_rank": "4",
"local_rank": "1",
"local_code": "CN"
}
}
接口地址:http://route.showapi.com/24-3 (注意:接口支持https,更安全,但稍慢一些,你懂的。请根据自己的情况进行选择。)
支持格式:json
请求方法:HTTP协议,支持GET/POST方法。
二、请求参数/ Request parameter
非文件上传的POST时,enctype=application/x-www-form-urlencoded。
文件上传的POST时,enctype=multipart/form-data。1、系统级参数(所有接入点都需要的参数):
参数名称 类型 示例值 必须 描述 showapi_appid String 100 是 易源应用id showapi_sign String 698d51a19d8a121ce581499d7b701668 是 为了验证用户身份,以及确保参数不被中间人篡改,需要传递调用者的数字签名。 可选,在url后带上appid和secret即可 showapi_timestamp String 20141114142239 否 客户端时间。
格式yyyyMMddHHmmss,如20141114142239
为了在一定程度上防止“重放攻击”,平台只接受在10分钟之内的请求。如果不传或传空串,则系统不再做此字段的检测。showapi_res_gzip String 1或0 否 返回值是否用gzip方式压缩。此值为1时将压缩,其他值不压缩。 ... 2、应用级参数(每个接入点有自己的参数,当前接入点的参数见下表):
参数名称 类型 默认值 示例值 必须 描述 domain String baidu.com是 要查询的域名
请求示例:String res=new ShowApiRequest("http://route.showapi.com/24-3","my_appId","my_appSecret") .addTextPara("domain","baidu.com") .post(); System.out.println(res);
三、返回参数/ Return parameter
以JSON格式返回结果。
1、系统级参数(所有接入点都会返回的参数): 展开收起
名称 类型 示例值 描述 showapi_res_body String {"city":"昆明","prov":"云南"} 消息体的JSON封装,所有应用级的返回参数将嵌入此对象 。 showapi_res_code int 0 易源返回标志,0为成功,其他为失败。
0成功
-1,系统调用错误
-2,可调用次数或金额为0
-3,读取超时
-4,服务端返回数据解析错误
-5,后端服务器DNS解析错误
-6,服务不存在或未上线
-7, API创建者的网关资源不足
-1000,系统维护
-1002,showapi_appid字段必传
-1003,showapi_sign字段必传
-1004,签名sign验证有误
-1005,showapi_timestamp无效
-1006,app无权限调用接口
-1007,没有订购套餐
-1008,服务商关闭对您的调用权限
-1009,调用频率受限
-1010,找不到您的应用
-1011,子授权app_child_id无效
-1012,子授权已过期或失效
-1013,子授权ip受限
-1014,token权限无效
showapi_res_error String 用户输入有误! 错误信息的展示 showapi_res_id String ce135f6739294c63be0c021b76b6fbff 本次请求id ... 2、应用级参数(系统级输出参数showapi_res_body字段中的json数据结构): 展开收起
名称 类型 示例值 描述 ret_code String 0 查询成功扣费标识,0表示成功,其他值为失败.remark String 查询成功. 接口调用情况说明global_rank String 全球排名page_rank String 综合排名domain String 域名daily_uv String 日uvdaily_pv String 日pvthree_month_traffic Object[] 最近三个月流量情况- time_range String 三个月 本结构的数据说明(最近三个月的情况)- traffic_rank String 4 流量排名- traffic_rank_delta String 0 流量排名变化- reach_rank String 4 访问量排名- reach_rank_delta String 0 访问量排名变化- reach_permillion String 1279903 每百万人中访问人数- reach_permillion_delta String +0.35 每百万人中访问人数变化- pageviews_permillion String 16530 每百万人访问页面中访问本站的页面数- pageviews_permillion_delta String +8.03 每百万人访问页面中访问本站的页面数变化- pageviews_rank String 4 页面访问量排名- pageviews_rank_delta String 0 页面访问量排名变化- pageviews_peruser String 6.5 平均每个访问者浏览的页面数- pageviews_peruser_delta String +7.8 平均每个访问者浏览的页面数变化情况- avg_daily_uv String 329760000 三个月平均日UV(估算)- avg_daily_pv String 2002438000 三个月平均日PV(估算)month_traffic Object[] 最近月流量情况- time_range String 一个月 本结构的数据说明(最近一个月的数据情况)- traffic_rank String 4 流量排名- traffic_rank_delta String 0 流量排名变化- reach_rank String 4 访问量排名- reach_rank_delta String 0 访问量排名变化- reach_permillion String 1279903 每百万人中访问人数- reach_permillion_delta String +0.35 每百万人中访问人数变化- pageviews_permillion String 16530 每百万人访问页面中访问本站的页面数- pageviews_permillion_delta String +8.03 每百万人访问页面中访问本站的页面数变化- pageviews_rank String 4 页面访问量排名- pageviews_rank_delta String 0 页面访问量排名变化- pageviews_peruser String 6.5 平均每个访问者浏览的页面数- pageviews_peruser_delta String +7.8 平均每个访问者浏览的页面数变化情况- avg_daily_uv String 329760000 平均日UV(估算)- avg_daily_pv String 2002438000 平均日PV(估算)week_traffic Object[] 周流量情况- time_range String 一星期 本结构的数据说明(最近一周的信息)- traffic_rank String 4 流量排名- traffic_rank_delta String 0 流量排名变化- reach_rank String 4 访问量排名- reach_rank_delta String 0 访问量排名变化- reach_permillion String 1279903 每百万人中访问人数- reach_permillion_delta String +0.35 每百万人中访问人数变化- pageviews_permillion String 16530 每百万人访问页面中访问本站的页面数- pageviews_permillion_delta String +8.03 每百万人访问页面中访问本站的页面数变化- pageviews_rank String 4 页面访问量排名- pageviews_rank_delta String 0 页面访问量排名变化- pageviews_peruser String 6.5 平均每个访问者浏览的页面数- pageviews_peruser_delta String +7.8 平均每个访问者浏览的页面数变化情况- avg_daily_uv String 329760000 平均日UV(估算)- avg_daily_pv String 2002438000 平均日PV(估算)day_traffic Object[] 日流量- time_range String 一天 最近一天内的流量排名情况- traffic_rank String 4 流量排名- traffic_rank_delta String 0 流量排名变化- reach_rank String 4 访问量排名- reach_rank_delta String 0 访问量排名变化- reach_permillion String 1279903 每百万人中访问人数- reach_permillion_delta String +0.35 每百万人中访问人数变化- pageviews_permillion String 16530 每百万人访问页面中访问本站的页面数- pageviews_permillion_delta String +8.03 每百万人访问页面中访问本站的页面数变化- pageviews_rank String 4 页面访问量排名- pageviews_rank_delta String 0 页面访问量排名变化- pageviews_peruser String 6.5 平均每个访问者浏览的页面数- pageviews_peruser_delta String +7.8 平均每个访问者浏览的页面数变化情况- avg_daily_uv String 329760000 最近平均日UV(估算)- avg_daily_pv String 2002438000 最近平均日PV(估算)country_details_list Object[] 相关国家\地区详细情况- country String 美国 国家名称- code String US 国家编码- rank String 91 排名- per_users String 1.2% 访问比例- per_pageviews String 1.5% 页面访问比例subdomain_list Object[] 子域名情况- subdomain String zhidao.baidu.com 子域名- reach_percentage String 38.74% 网站访问比例- pageviews_percentage String 17.78% 页面访问比例- pageviews_peruser String 3.34 页面浏览量...
返回示例:{
"showapi_res_code": 0,
"showapi_res_error": "",
"showapi_res_body": {
"ret_code": 0,
"remark": "查询成功.",
"global_rank": "4",
"page_rank": "4",
"domain": "baidu.com",
"daily_uv": "323200000",
"daily_pv": "1851936000",
"three_month_traffic": {
"avg_daily_pv": "1798099000",
"reach_permillion_delta": "-1.36",
"pageviews_rank": "4",
"traffic_rank": "4",
"reach_permillion": "100700",
"pageviews_peruser": "5.580",
"reach_rank_delta": "0",
"reach_rank": "4",
"traffic_rank_delta": "0",
"pageviews_peruser_delta": "-2.45",
"time_range": "三个月",
"avg_daily_uv": "322240000",
"pageviews_permillion": "15300",
"pageviews_rank_delta": "0",
"pageviews_permillion_delta": "-3.78"
},
"month_traffic": {
"avg_daily_pv": "1758615000",
"reach_permillion_delta": "-0.37",
"pageviews_rank": "4",
"traffic_rank": "4",
"reach_permillion": "99740",
"pageviews_peruser": "5.510",
"reach_rank_delta": "0",
"reach_rank": "4",
"traffic_rank_delta": "0",
"pageviews_peruser_delta": "-1.78",
"time_range": "一个月",
"avg_daily_uv": "319168000",
"pageviews_permillion": "14970",
"pageviews_rank_delta": "0",
"pageviews_permillion_delta": "-2.26"
},
"week_traffic": {
"avg_daily_pv": "1784063000",
"reach_permillion_delta": "-0.628",
"pageviews_rank": "4",
"traffic_rank": "4",
"reach_permillion": "101000",
"pageviews_peruser": "5.52",
"reach_rank_delta": "0",
"reach_rank": "4",
"traffic_rank_delta": "0",
"pageviews_peruser_delta": "-0.719",
"time_range": "一星期",
"avg_daily_uv": "323200000",
"pageviews_permillion": "15170",
"pageviews_rank_delta": "0",
"pageviews_permillion_delta": "-1.34"
},
"day_traffic": {
"avg_daily_pv": "1851936000",
"reach_permillion_delta": "+0.1",
"pageviews_rank": "4",
"traffic_rank": "4",
"reach_permillion": "101000",
"pageviews_peruser": "5.73",
"reach_rank_delta": "0",
"reach_rank": "4",
"traffic_rank_delta": "0",
"pageviews_peruser_delta": "+7.1",
"time_range": "一天",
"avg_daily_uv": "323200000",
"pageviews_permillion": "15100",
"pageviews_rank_delta": "0",
"pageviews_permillion_delta": "+7.3"
},
"country_details_list": [
{
"rank": 1,
"per_users": "93.3%",
"code": "CN",
"per_pageviews": "94.0%",
"country": "中国"
},
{
"rank": 12,
"per_users": "2.4%",
"code": "JP",
"per_pageviews": "2.3%",
"country": "日本"
},
{
"rank": 90,
"per_users": "1.2%",
"code": "US",
"per_pageviews": "1.0%",
"country": "美国"
},
{
"rank": 22,
"per_users": "0.7%",
"code": "TW",
"per_pageviews": "0.4%",
"country": "台湾"
},
{
"rank": 8,
"per_users": "0.6%",
"code": "HK",
"per_pageviews": "0.5%",
"country": "香港"
},
{
"rank": 17,
"per_users": "0.6%",
"code": "KR",
"per_pageviews": "0.6%",
"country": "韩国"
},
{
"rank": 0,
"per_users": "1.3%",
"code": "OTHER",
"per_pageviews": "1.3%",
"country": "其他"
}
],
"subdomain_list": [
{
"pageviews_peruser": "2.19",
"subdomain": "baidu.com",
"reach_percentage": "71.98%",
"pageviews_percentage": "28.64%"
},
{
"pageviews_peruser": "2.96",
"subdomain": "tieba.baidu.com",
"reach_percentage": "30.80%",
"pageviews_percentage": "16.55%"
},
{
"pageviews_peruser": "2.28",
"subdomain": "zhidao.baidu.com",
"reach_percentage": "30.40%",
"pageviews_percentage": "12.57%"
},
{
"pageviews_peruser": "2.47",
"subdomain": "baike.baidu.com",
"reach_percentage": "18.34%",
"pageviews_percentage": "8.22%"
},
{
"pageviews_peruser": "2.01",
"subdomain": "wenku.baidu.com",
"reach_percentage": "11.58%",
"pageviews_percentage": "4.23%"
},
{
"pageviews_peruser": "3.52",
"subdomain": "pan.baidu.com",
"reach_percentage": "10.19%",
"pageviews_percentage": "6.52%"
},
{
"pageviews_peruser": "1.65",
"subdomain": "jingyan.baidu.com",
"reach_percentage": "10.10%",
"pageviews_percentage": "3.02%"
},
{
"pageviews_peruser": "1.23",
"subdomain": "baijiahao.baidu.com",
"reach_percentage": "8.03%",
"pageviews_percentage": "1.79%"
},
{
"pageviews_peruser": "1.23",
"subdomain": "map.baidu.com",
"reach_percentage": "6.54%",
"pageviews_percentage": "1.46%"
},
{
"pageviews_peruser": "2.63",
"subdomain": "image.baidu.com",
"reach_percentage": "6.27%",
"pageviews_percentage": "3.00%"
},
{
"pageviews_peruser": "1.07",
"subdomain": "baijia.baidu.com",
"reach_percentage": "5.64%",
"pageviews_percentage": "1.09%"
},
{
"pageviews_peruser": "1.25",
"subdomain": "youxi.baidu.com",
"reach_percentage": "5.30%",
"pageviews_percentage": "1.21%"
},
{
"pageviews_peruser": "1.14",
"subdomain": "news.baidu.com",
"reach_percentage": "5.03%",
"pageviews_percentage": "1.04%"
},
{
"pageviews_peruser": "2.37",
"subdomain": "fanyi.baidu.com",
"reach_percentage": "3.35%",
"pageviews_percentage": "1.44%"
},
{
"pageviews_peruser": "1.02",
"subdomain": "mbd.baidu.com",
"reach_percentage": "2.65%",
"pageviews_percentage": "0.49%"
},
{
"pageviews_peruser": "1.06",
"subdomain": "ir.baidu.com",
"reach_percentage": "2.22%",
"pageviews_percentage": "0.43%"
},
{
"pageviews_peruser": "1.06",
"subdomain": "e.baidu.com",
"reach_percentage": "1.85%",
"pageviews_percentage": "0.36%"
},
{
"pageviews_peruser": "1.06",
"subdomain": "koubei.baidu.com",
"reach_percentage": "1.77%",
"pageviews_percentage": "0.34%"
},
{
"pageviews_peruser": "3.57",
"subdomain": "xueshu.baidu.com",
"reach_percentage": "1.71%",
"pageviews_percentage": "1.11%"
},
{
"pageviews_peruser": "1.38",
"subdomain": "passport.baidu.com",
"reach_percentage": "1.57%",
"pageviews_percentage": "0.39%"
},
{
"pageviews_peruser": "1.02",
"subdomain": "music.baidu.com",
"reach_percentage": "1.47%",
"pageviews_percentage": "0.27%"
},
{
"pageviews_peruser": "1.80",
"subdomain": "v.baidu.com",
"reach_percentage": "1.26%",
"pageviews_percentage": "0.41%"
},
{
"pageviews_peruser": "1.02",
"subdomain": "site.baidu.com",
"reach_percentage": "0.99%",
"pageviews_percentage": "0.18%"
},
{
"pageviews_peruser": "1.02",
"subdomain": "jianyi.baidu.com",
"reach_percentage": "0.89%",
"pageviews_percentage": "0.17%"
},
{
"pageviews_peruser": "1.03",
"subdomain": "123.baidu.com",
"reach_percentage": "0.83%",
"pageviews_percentage": "0.15%"
},
{
"pageviews_peruser": "1.02",
"subdomain": "house.baidu.com",
"reach_percentage": "0.83%",
"pageviews_percentage": "0.15%"
},
{
"pageviews_peruser": "2.53",
"subdomain": "tongji.baidu.com",
"reach_percentage": "0.75%",
"pageviews_percentage": "0.34%"
},
{
"pageviews_peruser": "1.00",
"subdomain": "sp0.baidu.com",
"reach_percentage": "0.46%",
"pageviews_percentage": "0.08%"
},
{
"pageviews_peruser": "2.93",
"subdomain": "cpu.baidu.com",
"reach_percentage": "0.43%",
"pageviews_percentage": "0.23%"
},
{
"pageviews_peruser": "1.2",
"subdomain": "cas.baidu.com",
"reach_percentage": "0.34%",
"pageviews_percentage": "0.08%"
},
{
"pageviews_peruser": "1.1",
"subdomain": "top.baidu.com",
"reach_percentage": "0.34%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "4.0",
"subdomain": "ziyuan.baidu.com",
"reach_percentage": "0.33%",
"pageviews_percentage": "0.24%"
},
{
"pageviews_peruser": "2.1",
"subdomain": "yun.baidu.com",
"reach_percentage": "0.32%",
"pageviews_percentage": "0.12%"
},
{
"pageviews_peruser": "1.1",
"subdomain": "haokan.baidu.com",
"reach_percentage": "0.27%",
"pageviews_percentage": "0.06%"
},
{
"pageviews_peruser": "2.0",
"subdomain": "zhaopin.baidu.com",
"reach_percentage": "0.25%",
"pageviews_percentage": "0.09%"
},
{
"pageviews_peruser": "1.2",
"subdomain": "hanyu.baidu.com",
"reach_percentage": "0.23%",
"pageviews_percentage": "0.05%"
},
{
"pageviews_peruser": "1.5",
"subdomain": "tiyu.baidu.com",
"reach_percentage": "0.23%",
"pageviews_percentage": "0.06%"
},
{
"pageviews_peruser": "1.9",
"subdomain": "app.baidu.com",
"reach_percentage": "0.22%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "1.6",
"subdomain": "cloud.baidu.com",
"reach_percentage": "0.19%",
"pageviews_percentage": "0.05%"
},
{
"pageviews_peruser": "2.0",
"subdomain": "m.baidu.com",
"reach_percentage": "0.19%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "2.5",
"subdomain": "bce.baidu.com",
"reach_percentage": "0.18%",
"pageviews_percentage": "0.08%"
},
{
"pageviews_peruser": "2.8",
"subdomain": "index.baidu.com",
"reach_percentage": "0.17%",
"pageviews_percentage": "0.08%"
},
{
"pageviews_peruser": "2.3",
"subdomain": "zhannei.baidu.com",
"reach_percentage": "0.17%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "2.1",
"subdomain": "naotu.baidu.com",
"reach_percentage": "0.16%",
"pageviews_percentage": "0.06%"
},
{
"pageviews_peruser": "4.4",
"subdomain": "fengchao.baidu.com",
"reach_percentage": "0.08%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "4.0",
"subdomain": "xiongzhang.baidu.com",
"reach_percentage": "0.07%",
"pageviews_percentage": "0.05%"
},
{
"pageviews_peruser": "7.8",
"subdomain": "wiki.baidu.com",
"reach_percentage": "0.05%",
"pageviews_percentage": "0.07%"
},
{
"pageviews_peruser": "0",
"subdomain": "OTHER",
"reach_percentage": "0%",
"pageviews_percentage": "2.68%"
}
]
}
}
易源数据通过打破资源壁垒,搭建起数据资源的基础设施,将接口纳入统一的接口池,把多个异构数据源合并到同一根管线上,以统一的访问和控制方式,对外提供统一格式的数据。
让开发者可以像搭积木一样通过各种API操纵资源。
截至2017年12月,平台已经拥有API接口230个,日调用量2000万,覆盖全网10万+真实消费者,为超过3000+的企业用户提供全域数据服务。
电话: 4009988033
微博: http://www.weibo.com/showapi
邮箱: services@showapi.com
QQ: 3007663665
微信: show_api
企业和程序员可以通过进制数据封装的API或SDK极速接入其他数据资源,同时进制数据提供数据交易等服务。通过进制数据,不仅开发成本极大降低,而且可以获得其他丰富的数据服务:数据交易,数据分析,区块链Token管理等服务。
电话:173-6457-5198
QQ① 群:792473404
客服 QQ:1643296538
微信客服:binstds
扫描二维码添加客服微信
周一至周五 9:00 - 21:00(其中周三为 9:00 - 18:00)
周六 9:00 - 12:00(节假日除外)
进制数据团队
2020.01.01