← Back to Skills Marketplace
584
Downloads
10
Stars
0
Active Installs
6
Versions
Install in OpenClaw
/install caipiao
Description
查彩票分类、最新与历史开奖、号码是否中奖等。当用户说:双色球最新开奖号码?大乐透上期结果?或类似彩票开奖问题时,使用本技能。
README (SKILL.md)
\r \r
极速数据彩票开奖(Jisu Caipiao)\r
\r
数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r
- 彩票开奖(
/caipiao/query)\r - 历史开奖信息(
/caipiao/history)\r - 彩票分类(
/caipiao/class)\r - 查询是否中奖(
/caipiao/winning)\r \r 可用于对话中回答「今晚双色球开奖号码是多少」「最近 10 期大乐透号码」「有哪些彩种」「我这注彩票中没中奖」等问题。\r \r
前置配置:获取 API Key\r
\r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/caipiao/caipiao.py`\r
\r
## 使用方式\r
\r
### 1. 彩票分类(class)\r
\r
```bash\r
python3 skills/caipiao/caipiao.py class\r
```\r
\r
返回各彩种的 `caipiaoid`、名称、上级 ID 以及下期开奖时间等。\r
\r
### 2. 最新或指定期彩票开奖(query)\r
\r
```bash\r
# 最新一期\r
python3 skills/caipiao/caipiao.py query '{"caipiaoid":13}'\r
\r
# 指定期号\r
python3 skills/caipiao/caipiao.py query '{"caipiaoid":13,"issueno":"2014127"}'\r
```\r
\r
### 3. 历史开奖信息(history)\r
\r
```bash\r
python3 skills/caipiao/caipiao.py history '{"caipiaoid":13,"start":0,"num":10}'\r
```\r
\r
### 4. 查询是否中奖(winning)\r
\r
```bash\r
python3 skills/caipiao/caipiao.py winning '{"caipiaoid":11,"number":"02 06 15 25 30 32","refernumber":"08"}'\r
```\r
\r
## 请求参数摘要\r
\r
### /caipiao/query\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|-----------|--------|------|----------------------------------|\r
| caipiaoid | int | 是 | 彩票 ID |\r
| issueno | string | 否 | 期号,不传则为当前期 |\r
\r
### /caipiao/history\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|-----------|--------|------|---------------------------------------|\r
| caipiaoid | int | 是 | 彩票 ID |\r
| issueno | string | 否 | 期号,不传默认当前期历史向前 |\r
| num | int | 否 | 获取数量,最大 20,默认 10 |\r
| start | int | 否 | 起始位置,默认 0 |\r
\r
### /caipiao/class\r
\r
无请求参数。\r
\r
### /caipiao/winning\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|-------------|--------|------|---------------------------------------|\r
| caipiaoid | string | 是 | 彩票 ID |\r
| issueno | string | 否 | 期号,默认最新一期 |\r
| number | string | 是 | 彩票号码(红球,如 `20 03 05 07 22`) |\r
| refernumber | string | 否 | 剩余号码(蓝球等) |\r
| type | string | 否 | 投注类型(1 直选,2 组三,3 组六) |\r
\r
## 返回结果说明(节选)\r
\r
### /caipiao/query\r
\r
```json\r
{\r
"caipiaoid": "13",\r
"issueno": "2014127",\r
"number": "05 07 10 18 19 21 27",\r
"refernumber": "28",\r
"opendate": "2014-10-29",\r
"deadline": "2014-12-27",\r
"saleamount": "7482530",\r
"prize": [\r
{\r
"prizename": "二等奖",\r
"require": "中6+0",\r
"num": "50",\r
"singlebonus": "608921"\r
}\r
],\r
"totalmoney": "..."\r
}\r
```\r
\r
### /caipiao/history\r
\r
返回对象包含 `caipiaoid` 和 `list`,`list` 中每期包含开奖日期、期号、号码、销售额及奖级列表。\r
\r
### /caipiao/class\r
\r
返回彩种数组,每项如:\r
\r
```json\r
{\r
"caipiaoid": 11,\r
"name": "双色球",\r
"parentid": 1,\r
"nextopentime": "2025-03-09 21:30:00",\r
"nextbuyendtime": "2025-03-09 20:00:00",\r
"lastissueno": "2025024",\r
"nextissueno": "2025025"\r
}\r
```\r
\r
### /caipiao/winning\r
\r
```json\r
{\r
"caipiaoid": "11",\r
"number": "02 06 15 25 30 32",\r
"refernumber": "08",\r
"issueno": "2016081",\r
"winstatus": "0",\r
"prizename": "二等奖",\r
"require": "中6+0",\r
"singlebonus": "239666",\r
"winnumber": "02 06 15 25 30 32",\r
"winrefernumber": "07"\r
}\r
```\r
\r
## 错误返回示例\r
\r
```json\r
{\r
"error": "api_error",\r
"code": 201,\r
"message": "彩票ID为空"\r
}\r
```\r
\r
## 常见错误码\r
\r
来源于 [极速数据彩票开奖文档](https://www.jisuapi.com/api/caipiao/):\r
\r
| 代号 | 说明 |\r
|------|--------------|\r
| 201 | 彩票 ID 为空 |\r
| 202 | 彩票号码为空 |\r
| 203 | 不支持的彩种 |\r
| 210 | 没有信息 |\r
\r
系统错误码:101 APPKEY 为空或不存在、102 已过期、103 无权限、104 超过次数限制、105 IP 被禁止、106 IP 超限、107 接口维护中、108 接口已停用。\r
\r
## 推荐用法\r
\r
1. 用户:「今晚双色球开奖号码」→ 先用 `class` 找到双色球的 `caipiaoid`(通常为 11),再调用 `query` 并格式化展示中奖号码及奖池。 \
\r
2. 用户:「最近 10 期大乐透走势」→ 使用 `history` 拉取最近若干期数据,提取号码并可视化(折线/表格)。 \
\r
3. 用户:「帮我看看这注是否中奖」→ 使用 `winning`,将用户提供的号码和期号(可选)传入,并根据 `winstatus`、`prizename`、`singlebonus` 给出自然语言反馈。 \
\r
4. 用户:「支持哪些彩种」→ 调用 `class`,罗列所有 `name` 与对应 `caipiaoid`,方便后续对话使用 ID 进行精确查询。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息 \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测 \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询 \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别 \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令 \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换 \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
Usage Guidance
This skill simply calls JisuAPI's lottery endpoints and needs your JISU_API_KEY. Only install it if you trust jisuapi.com and are willing to send lottery numbers and query parameters to that service. Ensure you don't paste a more-privileged or reusable secret into JISU_API_KEY, be aware of API usage limits/costs, and have Python's requests package available in the runtime. If you need stricter privacy, avoid sending personally identifying data to the external API or use a provider you control.
Capability Analysis
Type: OpenClaw Skill
Name: caipiao
Version: 1.0.5
The skill is a legitimate wrapper for the JisuAPI lottery drawing service. The Python script (caipiao.py) implements standard API calls to api.jisuapi.com using the requests library and handles user-provided API keys via environment variables as documented in SKILL.md. No malicious patterns, such as data exfiltration, unauthorized execution, or prompt injection, were detected.
Capability Assessment
Purpose & Capability
Name and description match behavior: the code and SKILL.md call JisuAPI lottery endpoints and the skill requests the JISU_API_KEY primary credential which is required to call that API. Requiring python3 is appropriate for the provided script.
Instruction Scope
SKILL.md only instructs running the included Python script and setting JISU_API_KEY; it does not direct the agent to read unrelated files, access other environment variables, or transmit data to endpoints other than api.jisuapi.com. User-provided lottery numbers are sent to the JisuAPI winning endpoint as expected.
Install Mechanism
There is no install spec (instruction-only) which is low risk. The bundled Python script uses the requests library but the skill does not declare or install Python package dependencies; this is an operational note rather than a security concern.
Credentials
Only JISU_API_KEY is required and is the primary credential for the stated API integration. No unrelated credentials, config paths, or broad secrets are requested.
Persistence & Privilege
always is false (default). The skill does not request permanent/force-included presence or modify other skill/system configs. Autonomous invocation is allowed but that is the platform default and not by itself a concern.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install caipiao - After installation, invoke the skill by name or use
/caipiao - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.5
- 优化技能名称和描述,使意图与应用场景更明确,便于用户发现和理解功能。
- 简化文档结构,对部分标题和API页面指引进行了微调。
- 保持功能和接口不变,详细说明推荐场景与使用方法。
- 修正细节描述,提升文档可读性。
v1.0.4
- 增加了「关于极速数据」和服务介绍,突出数据来源和接口能力
- 优化了前置配置说明,详细引导申请和配置 API Key 步骤
- 结构更简明,推荐用法与错误码表保留,易于开发者理解和使用
- 无功能或接口参数变动,主要为文档和说明增强
v1.0.3
No visible changes in this version.
- No file or documentation changes detected.
- Behavior and usage remain the same as the previous version.
v1.0.2
No file changes detected in this version.
- No updates to features, documentation, or functionality.
- Behavior remains the same as the previous version.
v1.0.1
No significant user-facing changes in this release.
- Documentation: Updated API reference link wording from "官方彩票开奖文档" to "极速数据彩票开奖文档" in the error code section.
- No changes to source files detected.
v1.0.0
极速数据彩票开奖技能(jisu-caipiao)首次发布。
- 支持使用极速数据彩票开奖 API 查询彩票分类、最新开奖、历史开奖和是否中奖。
- 命令行参数覆盖 class、query、history、winning 四大功能。
- 提供详细请求参数、结果、错误码说明及常见用例。
- 需配置环境变量 JISU_API_KEY 运行。
- 适合对接对话场景查询双色球、大乐透等彩种开奖号码及中奖信息。
Metadata
Frequently Asked Questions
What is Lottery Drawing Inquiry - 彩票开奖查询?
查彩票分类、最新与历史开奖、号码是否中奖等。当用户说:双色球最新开奖号码?大乐透上期结果?或类似彩票开奖问题时,使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 584 downloads so far.
How do I install Lottery Drawing Inquiry - 彩票开奖查询?
Run "/install caipiao" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Lottery Drawing Inquiry - 彩票开奖查询 free?
Yes, Lottery Drawing Inquiry - 彩票开奖查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Lottery Drawing Inquiry - 彩票开奖查询 support?
Lottery Drawing Inquiry - 彩票开奖查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Lottery Drawing Inquiry - 彩票开奖查询?
It is built and maintained by 极速数据 (@jisuapi); the current version is v1.0.5.
More Skills