搜了一个
http://baidu.lehecai.com/api/hao123/new_lottery_all.php

解决方案 »

  1.   

    写了一个双色球摇奖:<?php
    /* Created on [2011-11-22] Author[yushuai.niu] */ $redCodes = array();
    $blueCodes = array();
    for($i=1; $i <= 33; $i++){
    $redCodes[$i] = $i;
    if($i <= 16){
    $blueCodes[$i] = $i;
    }
    }
    $redballs = array_rand($redCodes,6);
    $blueball = array_rand($blueCodes,1);
    foreach($redballs as $key => $redball){
    if($redball < 10){
    $redball = "0".$redball;
    }else{
    $redball = $redball;
    }
    $reds[] = $redball;
    }
    if($blueball < 10){
    $blue = "0".$blueball;
    }else{
    $blue = $blueball;
    }?><html>
    <head>
    <meta http-equiv="Content-Language" content="en" />
    <meta name="GENERATOR" content="PHPEclipse 1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>double color ball</title>
    </head>
    <body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">   <h4>double color ball</h4>   <table border=1>
        <tr>
        <?php
         if(isset($reds)){
         foreach($reds as $red){
    echo "<td>{$red}</td>";
         }
         }else{
         for($j=1; $j <= 6; $j++){
         echo "<td>&nbsp;</td>";
         }
         }
         if(isset($blue)){
         echo "<td style='color:blue;'><b>{$blue}</b></td>";
         }else{
         echo "<td>&nbsp;</td>";
         }
        ?>
        </tr>
      </table>
      <form action="ticket.php" method="post" enctype="text/plain">
       <input type="submit" name="submit" value="get codes"/>
      </form></body>
    </html>
      

  2.   

    http://data.maicai.cn/kaijiang/
    您地显得无聊吧
      

  3.   

    抓就是采集. 接口 是官方的api 才能叫接口。没有api就只能靠自己写采集代码去抓取..
      

  4.   

    我也想要。net的接口!能给我发一份么?[email protected]
      

  5.   

    能不能也发一份接口给我?非常感谢!
    [email protected]
      

  6.   

    [email protected]
    也发一份我呀。
      

  7.   

    同求,朋友也给我发一份吧![email protected] 
      

  8.   

    想做概率分析 朋友能给个吗? [email protected]
      

  9.   

    哥们,给一个吧,[email protected]
      

  10.   

    彩票控,接口。http://www.caipiaokong.com/open.php
      

  11.   

    同求,给一个吧,[email protected] 
      

  12.   

    同求彩票接口
    [email protected] 
      

  13.   

    同求~~找了好久了~~给个吧
    [email protected]
      

  14.   

    http://www.caipiaokong.com/open/这里有彩票数据API,不过是收费的。
      

  15.   

    api.opencai.net
    这里是免费的。
      

  16.   

    http://www.haoservice.com/docs/33/history
    {"error_code":0,"reason":"Success","result":[{"LotteryDate":"2014-10-10T00:00:00","LotteryQh":2014275,"LotteryNumber":"8,9,7","LotterySales":"51,509,678"},{"LotteryDate":"2014-10-09T00:00:00","LotteryQh":2014274,"LotteryNumber":"3,6,1","LotterySales":"49,932,960"},{"LotteryDate":"2014-10-08T00:00:00","LotteryQh":2014273,"LotteryNumber":"3,7,0","LotterySales":"48,877,282"},{"LotteryDate":"2014-10-
    .....
    01T00:00:00","LotteryQh":2014001,"LotteryNumber":"6,8,7","LotterySales":"50,650,400"}]}
      

  17.   

    http://www.haoservice.com/docs/33彩票查询接口,
    返回示例: {
            "reason":"Success",
            "error_code":0,
            "result":{
                    "lottery":"福彩3D",           /*彩票类型*/
                    "lottery_no":"2014054",       /*期号*/
                    "lottery_time":"2014-03-03",  /*开奖日期*/
                    "lottery_nums":"2 5 7 ",      /*开奖号码*/
                    "lottery_sales":"53,297,148"  /*本期销量*/
            }
        }