lottery-prize-result-check
彩票中獎結果核對
支援雙色球、七樂彩、大樂透等彩種。透過輸入彩種型別、期號及使用者號碼,快速返回該期開獎號碼及中獎核對結果,僅供資訊輔助查詢。
呼叫價格
5 匠幣/次
快速接入
保持統一返回結構,直接透過服務端發起請求即可接入。
https://openapi.toolkk.com/v1/lottery-prize-result-checkcURL 示例
curl --request POST \
--url 'https://openapi.toolkk.com/v1/lottery-prize-result-check' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--data '{\n "type": "cjdlt",\n "expect": "2025062",\n "lotteryNo": "13,19,28,30,33@02,12"\n}'Python 示例
import os
import requests
url = "https://openapi.toolkk.com/v1/lottery-prize-result-check"
payload = {
"type": "cjdlt",
"expect": "2025062",
"lotteryNo": "13,19,28,30,33@02,12"
}
headers = {
"Content-Type": "application/json",
"X-API-Key": os.getenv("TOOLKK_API_KEY", "YOUR_API_KEY"),
}
response = requests.request("POST", url, headers=headers, json=payload, timeout=30)
response.raise_for_status()
print(response.json())Go 示例
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
endpoint := "https://openapi.toolkk.com/v1/lottery-prize-result-check"
payload := []byte("{\n \"type\": \"cjdlt\",\n \"expect\": \"2025062\",\n \"lotteryNo\": \"13,19,28,30,33@02,12\"\n}")
req, err := http.NewRequest("POST", endpoint, bytes.NewBuffer(payload))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}Java 示例
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class ToolkkExample {
public static void main(String[] args) throws Exception {
String payload = "{\n \"type\": \"cjdlt\",\n \"expect\": \"2025062\",\n \"lotteryNo\": \"13,19,28,30,33@02,12\"\n}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://openapi.toolkk.com/v1/lottery-prize-result-check"))
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.header("Content-Type", "application/json")
.header("X-API-Key", "YOUR_API_KEY")
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}PHP 示例
<?php
$endpoint = 'https://openapi.toolkk.com/v1/lottery-prize-result-check';
$payload = "{\n \"type\": \"cjdlt\",\n \"expect\": \"2025062\",\n \"lotteryNo\": \"13,19,28,30,33@02,12\"\n}";
$ch = curl_init($endpoint);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY',
],
CURLOPT_POSTFIELDS => $payload,
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
curl_close($ch);
echo $response;響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"resultDetails": "一等奖,奖金跟随奖池浮动",
"resultDesc": "5+2",
"openCode": "13,19,28,30,33+02+12",
"expect": "2025062",
"type": "cjdlt",
"name": "超级大乐透",
"resultList": [
{
"num": "13",
"lottery": true,
"blue": false
},
{
"num": "19",
"lottery": true,
"blue": false
},
{
"num": "28",
"lottery": true,
"blue": false
},
{
"num": "30",
"lottery": true,
"blue": false
},
{
"num": "33",
"lottery": true,
"blue": false
},
{
"num": "02",
"lottery": true,
"blue": true
},
{
"num": "12",
"lottery": true,
"blue": true
}
]
}
}範例用於理解回傳結構,實際結果以介面回傳為準。
- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 30 次/分鐘
- 超時時間
- 15000 ms
服務端呼叫時,將 API Key 放在 X-API-Key 請求頭中。
建議按 response code 與業務欄位雙重判斷呼叫結果。
高頻呼叫場景請結合速率限制與重試策略使用。
請求欄位
從伺服器發起請求,並在 X-API-Key 標頭中傳入金鑰。
請求欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| type | string | 未標註 | 未標註 | cjdlt |
| expect | string | 未標註 | 未標註 | 2025062 |
| lotteryNo | string | 未標註 | 未標註 | 13,19,28,30,33@02,12 |
請求示例
{
"type": "cjdlt",
"expect": "2025062",
"lotteryNo": "13,19,28,30,33@02,12"
}- 鑑權方式
- 請求頭傳入 X-API-Key
- 預設限流
- 30 次/分鐘
- 超時時間
- 15000 ms
響應欄位
範例用於理解回傳結構,實際結果以介面回傳為準。
響應欄位
以下欄位根據示例 JSON 自動提取,僅作接入參考。
| 欄位路徑 | 型別 | 必填 | 說明 | 示例值 |
|---|---|---|---|---|
| code | string | 未標註 | 未標註 | SUCCESS |
| message | string | 未標註 | 未標註 | success |
| data | object | 未標註 | 未標註 | {...} |
| data.resultDetails | string | 未標註 | 未標註 | 一等奖,奖金跟随奖池浮动 |
| data.resultDesc | string | 未標註 | 未標註 | 5+2 |
| data.openCode | string | 未標註 | 未標註 | 13,19,28,30,33+02+12 |
| data.expect | string | 未標註 | 未標註 | 2025062 |
| data.type | string | 未標註 | 未標註 | cjdlt |
| data.name | string | 未標註 | 未標註 | 超级大乐透 |
| data.resultList | array | 未標註 | 未標註 | [{"num":"13","lottery":true,"blue":false},{"num":"19","lottery":true,"blue":false},{"num":"28","lottery":true,"blue":false},{"num":"30","lottery":true,"blue":false},{"num":"33","lottery":true,"blue":false},{"num":"02","lottery":true,"blue":true},{"num":"12","lottery":true,"blue":true}] |
| data.resultList[] | object | 未標註 | 未標註 | {...} |
響應示例
{
"code": "SUCCESS",
"message": "success",
"data": {
"resultDetails": "一等奖,奖金跟随奖池浮动",
"resultDesc": "5+2",
"openCode": "13,19,28,30,33+02+12",
"expect": "2025062",
"type": "cjdlt",
"name": "超级大乐透",
"resultList": [
{
"num": "13",
"lottery": true,
"blue": false
},
{
"num": "19",
"lottery": true,
"blue": false
},
{
"num": "28",
"lottery": true,
"blue": false
},
{
"num": "30",
"lottery": true,
"blue": false
},
{
"num": "33",
"lottery": true,
"blue": false
},
{
"num": "02",
"lottery": true,
"blue": true
},
{
"num": "12",
"lottery": true,
"blue": true
}
]
}
}介面簡介
介面功能、應用情境、使用限制與常見問題。
介面能力
本 API 提供雙色球、七樂彩、大樂透等常見彩種的中獎結果輔助核對功能。開發者可透過傳入指定的彩種型別、期號以及使用者購買的號碼,快速獲取該期的官方開獎號碼,並由系統比對得出初步的中獎情況(如中獎等級、命中紅藍球數量等)。本介面僅提供歷史開獎資訊與號碼比對服務,不具備任何預測、薦號功能,也不引導任何投注行為。
請求與返回
在請求時,需提供三個核心引數:type(彩種程式碼,如雙色球為 ssq)、expect(期號,如 2026082)以及 lotteryNo(使用者號碼,紅藍球通常用特定符號如 @ 分隔)。 返回結果將包含:name(彩種名稱)、expect(期號)、openCode(該期實際開獎號碼)、resultDesc(命中情況,如 0+1)以及 resultDetails(具體中獎等級或未中獎提示)。若 resultList 為空,通常表示未獲得對應獎項。
使用場景
- 彩票資訊查詢工具:整合至便民資訊查詢網站或小程式,幫助使用者快速比對往期號碼。
- 個人記賬與管理:用於個人開發的彩票記錄工具,方便回顧歷史購買記錄與開獎結果的核對。
使用說明與限制
- 免責宣告:本介面返回的核對結果由演算法計算得出,可能因資料同步延遲或解析異常存在偏差。所有結果僅供輔助參考,正式兌獎必須以實體票據、國家福利彩票/體育彩票發行機構的官方公告與線下銷售網點核驗結果為準。
- :請嚴格按照介面要求的格式傳入號碼,分隔符錯誤可能導致核對失敗。若遇查詢失敗,請先檢查期號是否已開獎及彩種程式碼是否正確。