API调用说明

彩票数据API服务平台(d.polocai.com)是菠萝彩为彩票网络媒体、彩票行业内公司、机构,以及具备一定开发能力的彩票爱好者等,提供彩票开奖数据、指标数据、走势图表、在线应用等多种彩票相关的分析和应用数据。

 

用户可以在页面上查看数据的返回演示,若需要可直接购买并调用相关的接口API采用标准HTTP标准GET协议目前数据调用格式主要包括:JSon和Xml。若有其他类型的数据格式需求,请联系管理员。

 

本使用说明主要为帮助用户快速了解数据调用的申请步骤为了确保站点能接收正确数据,请到会员后台下载“接口调用说明文档”,查阅相关操作方法


1、注册会员,并登录会员后台进行充值;(免费注册)

2、在“域名IP管理”下配置好需要添加接口的网站子账号(可配置多个);

3、在彩票API列表中筛选需要的API加入购物车,然后选择对应的子账号,并完成付款;

4、遵照接口调用说明文档要求设置参数变量;

5、完成对应站点的数据调用。


(注意事项:采用邮箱注册的用户,部分邮箱服务商会将验证码邮件误认为垃圾邮件,若未能正常接收邮件,请到对应垃圾邮件列表中查找。)



一、彩票开奖数据调用示例立即调用开奖接口

 

以双色球开奖数据为例,要查询双色球近N期的开奖数据,需分别设置好如下参数:用户账号(usekey)、彩种代码(code)、密钥(secret)、返回条数(num)、返回格式(fomat

 

如查询最近5期,返回数据格式为JSon

 

返回结果:

{"rows":5,"code":"ssq","info":"Hello World,Get last Success!","dataList":[{"phase_num":"2018097","time_draw":"2018-08-21 21:30:00","num1":"01","num2":"02","num3":"17","num4":"20","num5":"25","num6":"28","num7":"13","createtime":"2018-08-21 21:21:05"},{"phase_num":"2018096","time_draw":"2018-08-19 21:30:00","num1":"01","num2":"05","num3":"09","num4":"20","num5":"28","num6":"32","num7":"12","createtime":"2018-08-19 21:23:05"},{"phase_num":"2018095","time_draw":"2018-08-16 21:30:00","num1":"10","num2":"11","num3":"12","num4":"21","num5":"26","num6":"33","num7":"09","createtime":"2018-08-16 21:23:05"},{"phase_num":"2018094","time_draw":"2018-08-14 21:30:00","num1":"04","num2":"07","num3":"16","num4":"20","num5":"24","num6":"30","num7":"05","createtime":"2018-08-14 21:23:05"},{"phase_num":"2018093","time_draw":"2018-08-12 21:30:00","num1":"04","num2":"18","num3":"20","num4":"21","num5":"29","num6":"33","num7":"07","createtime":"2018-08-12 21:25:05"}]}



二、指标数据调用示例立即调用指标接口

 

以双色球彩票为例,目前指标包括:和值、和值尾、极距、奇偶形态、大中小形态、质合形态、奇偶比、大小比、质合比、基本号码、红1位、红2位、红3位、红4位、红5位、红6位、极和、蓝球号码、振幅、奇偶、大小、质合、尾数、五行、五行形态、012路形态、AC值等。

 

调用参数设置如下:用户账号(usekey)、彩种代码(code)、密钥(secret)、指标代码(index_id)。

 

如查询“奇偶”指标,返回结果为:

{"status":0,"appMsg":"Success","dataList":[{"index_id":"4510337000000000000","base_num":"奇","num_data":8,"cycle_period":"2","period_num":null,"real_num":3,"theory_num":3,"appear_rate":0.286,"theory_odds":0.500,"odds_offset":0.214,"average_miss":1.667,"max_miss":2,"last_miss":0,"this_miss":2,"desire_odds":1.200,"invest_value":1.000,"return_odds":-1.000,"mout_num":3,"mmiss_num":2,"max_period":"2008149-2009003","theory_max_miss":"18.0"},{"index_id":"4510337000000000001","base_num":"偶","num_data":8,"cycle_period":"2","period_num":null,"real_num":3,"theory_num":3,"appear_rate":0.429,"theory_odds":0.500,"odds_offset":0.071,"average_miss":1.000,"max_miss":3,"last_miss":2,"this_miss":0,"desire_odds":0.000,"invest_value":0.000,"return_odds":1.000,"mout_num":2,"mmiss_num":3,"max_period":"2012145-2012152","theory_max_miss":"18.0"}]} 




三、走势图表调用示例立即调用图表接口

 

目前提供3种类型的图表安装接入,包括:走势图、K线图、直方图。每种类型图表里面都包含N个指标图形。

 

以双色球为例,当前双色球走势图有综合、红球、蓝球、定位、高级等多个分类的图表,下面各有多个图表单位。如:综合分类下面的基本走势图表。

 

返回结果部分截图如下:

image.png


点这里查看演示详情> 


0754-88705968

电话服务时间:周一至周六 9:00-18:00

24小时在线服务 (QQ61762165)

扫码关注官方微信

Copyright@2018 菠萝彩 备案许可证:粤ICP备14010719号-2 粤公网安备 44050702000325号