cURL
curl "https://api.ruseo.cn/api/lottery?type=ssq&date=2025-05-18&limit=1"
支持多种彩票类型开奖结果查询,包括双色球、大乐透、福彩3D、排列3、排列5、七星彩、七乐彩。支持查询最新开奖和历史开奖数据。
https://api.ruseo.cn/api/lottery
接口调用前需要确认的核心配置。
/api/lotterylottery必填参数必须传入,示例值可直接用于联调。
免费API不强制要求API Key,但如果您希望统计个人调用次数,请在请求时附加参数 key=您的API_KEY。
注册账号后即可获得API Key。
| 参数名 | 必填 | 类型 | 说明 | 示例值 |
|---|---|---|---|---|
key |
否 | string | 可选参数:携带此参数可统计您的个人调用次数。请注册账号获取API Key。 | YOUR_API_KEY |
type |
是 | string | 彩票类型:ssq(双色球)、dlt(大乐透)、fc3d(福彩3D)、pl3(排列3)、pl5(排列5)、qxc(七星彩)、qlc(七乐彩) | ssq |
date |
否 | string | 查询日期,格式 YYYY-MM-DD(可选,默认返回最新开奖) | 2025-05-18 |
limit |
否 | int | 返回期数,默认1,最大10 | 1 |
优先使用示例地址测试请求参数是否正确。
https://api.ruseo.cn/api/lottery?type=ssq&date=2025-05-18&limit=1
curl "https://api.ruseo.cn/api/lottery?type=ssq&date=2025-05-18&limit=1"
$url = 'https://api.ruseo.cn/api/lottery?type=ssq&date=2025-05-18&limit=1';
$response = file_get_contents($url);
$data = json_decode($response, true);
fetch('https://api.ruseo.cn/api/lottery?type=ssq&date=2025-05-18&limit=1')
.then(res => res.json())
.then(data => console.log(data));
实际返回内容以接口脚本处理结果为准。
{
"code": 0,
"msg": "success",
"data": {
"route": "lottery",
"example": true
}
}
| 参数名 | 类型 | 说明 | 示例值 |
|---|---|---|---|
lottery_type |
string | 彩票类型代码 | ssq |
lottery_name |
string | 彩票名称 | 双色球 |
list |
array | 开奖结果列表 | [{"issue":"2025150","date":"2025-05-18","week":"周日"...}] |
list[].issue |
string | 期号 | 2025150 |
list[].date |
string | 开奖日期 | 2025-05-18 |
list[].week |
string | 星期 | 周日 |
list[].red_balls |
array | 红球号码(双色球) | ["03","08","12","19","25","33"] |
list[].blue_ball |
string | 蓝球号码(双色球) | 16 |
list[].front_balls |
array | 前区号码(大乐透) | ["05","12","18","25","33"] |
list[].back_balls |
array | 后区号码(大乐透) | ["03","09"] |
list[].winning_numbers |
array | 开奖号码(3D/排列3/排列5/七星彩) | ["1","2","3"] |
list[].sum |
int | 号码和值(3D/排列3) | 6 |
list[].type |
string | 号码类型(3D/排列3):豹子、组三、组六 | 组六 |
list[].basic_balls |
array | 基本号码(七乐彩) | ["03","08","12","19","25","28","33"] |
list[].special_ball |
string | 特别号码(七乐彩) | 16 |
list[].prize_pool |
string | 奖池金额 | 2,500,000,000元 |
list[].first_prize |
string | 一等奖注数 | 5注 |
list[].second_prize |
string | 二等奖注数 | 120注 |
update_time |
string | 数据更新时间 | 2025-05-19 10:30:00 |
from_cache |
boolean | 是否来自缓存 | false |
点击左侧“发送请求”查看结果...