本页提供「SG 时时彩」现场开奖直播、下期倒计时与开奖历史查询,页面数据与彩数据官方接口同步。
开发者可免费调用 JSON API(lotCode=10075)获取当前开奖与历史记录,接入方式与 API 文档中心一致,不影响原有接口兼容。
彩数据覆盖境内外数十个彩种,支持开奖网、APP 与数据服务秒级刷新。
| 期号 | 日期 | 开奖号码 |
|---|---|---|
| 等待开奖 | ||
<?php
// SG 时时彩 — 当前开奖
$apiKey = 'YOUR_API_KEY';
$url = 'https://api.csjid.com/CQShiCai/getBaseCQShiCai.do?lotCode=10075&apiKey=' . urlencode($apiKey);
$json = file_get_contents($url);
$data = json_decode($json, true);
print_r($data);
// 开奖历史(按日期)
$date = date('Y-m-d');
$histUrl = 'https://api.csjid.com/CQShiCai/getBaseCQShiCaiList.do?lotCode=10075&date=' . urlencode($date) . '&apiKey=' . urlencode($apiKey);
$hist = json_decode(file_get_contents($histUrl), true);
print_r($hist);
# SG 时时彩 — 当前开奖 / 历史
import json
from urllib.parse import urlencode
from urllib.request import urlopen
api_key = "YOUR_API_KEY"
base = "https://api.csjid.com"
def get_json(path, params):
url = f"{base}{path}?{urlencode(params)}"
with urlopen(url, timeout=15) as resp:
return json.loads(resp.read().decode("utf-8"))
current = get_json("/CQShiCai/getBaseCQShiCai.do", {"lotCode": "10075", "apiKey": api_key})
print(current)
history = get_json("/CQShiCai/getBaseCQShiCaiList.do", {
"lotCode": "10075",
"date": "YYYY-MM-DD",
"apiKey": api_key,
})
print(history)
// SG 时时彩 — 浏览器 / Node 均可
const apiKey = 'YOUR_API_KEY';
const base = 'https://api.csjid.com';
async function fetchLottery() {
const currentUrl = base + '/CQShiCai/getBaseCQShiCai.do?lotCode=10075&apiKey=' + encodeURIComponent(apiKey);
const current = await fetch(currentUrl).then(r => r.json());
console.log('current', current);
const date = new Date().toISOString().slice(0, 10);
const historyUrl = base + '/CQShiCai/getBaseCQShiCaiList.do?lotCode=10075&date=' + date + '&apiKey=' + encodeURIComponent(apiKey);
const history = await fetch(historyUrl).then(r => r.json());
console.log('history', history);
}
fetchLottery();
将 YOUR_API_KEY 替换为注册后获取的 apiKey。接口域名 api.csjid.com,与文档中心一致。
本页提供「SG 时时彩」现场开奖直播、下期倒计时与开奖历史查询,页面数据与彩数据官方接口同步。
开发者可免费调用 JSON API(lotCode=10075)获取当前开奖与历史记录,接入方式与 API 文档中心一致,不影响原有接口兼容。
彩数据覆盖境内外数十个彩种,支持开奖网、APP 与数据服务秒级刷新。