本頁內容
真實結構範例與即用範本
在寫下第一行程式前,先看看 API 會傳回哪些資料
操作互動式必發成交走勢圖,預覽 AI 深度戰術報告與使用者預測分布,查看馬會 18 個盤口快照,並下載 Google Sheets/Excel 自動追蹤表。
1. 必發成交量與冷熱/盈虧指數
選擇主勝、和局或客勝,查看已記錄的成交量、報價及來源指數。以下為歷史範例,並非即時更新。
查看成交量變化 · 主勝
切換查看來源累計數值,或相鄰範例點之間的變化。
查看圖表數值
| 來源標籤 | 來源成交量 · 累計成交量 |
|---|---|
| 11-04 20:00 | 825,905 |
| 11-04 21:00 | 898,773 |
| 11-04 22:00 | 915,013 |
| 11-04 23:00 | 952,651 |
| 11-05 00:00 | 1,246,060 |
| 11-05 01:00 | 1,276,095 |
| 範例最新值 | 1,276,097 |
回應未註明成交量的貨幣或單位,因此數值不加貨幣符號。
marketIndexhotColdIndexprofitLossIndex指標由來源提供,回應未附計算公式。盈虧指數不代表你的帳戶盈虧。
比較成交占比,切換「相鄰點增量」查看成交變化,再對照報價及指數;數值不代表勝出機率或賽果預測。
數值來自同一份已儲存的 API 回應,保留來源時間標籤;最後一點代表此範例中的最新值。
展開查看完整必發原始 JSON 回應(賽事 #115274)
{
"data": {
"matchId": 115274,
"updatedAt": "2026-11-04T17:42:13.654674Z",
"detailedView": {
"overUnder": [
{
"over": {
"buyPrice": 1.59,
"buyQuantity": 391,
"marketIndex": 100,
"name": "over",
"profitLossIndex": 0,
"price": 1.56,
"profitLoss": -2470,
"proportion": "100.00%",
"sellPrice": 1.55,
"sellQuantity": 454,
"tradingVolume": 1723
}
}
],
"win": {
"away": {
"averageOdds": 8.28,
"buyPrice": 9,
"buyQuantity": 53,
"hotColdIndex": -5,
"marketIndex": 18,
"name": "away",
"profitLossIndex": 64,
"price": 9,
"probability": "8.79%",
"profitLoss": 923682,
"proportion": "4.00%",
"sellPrice": 8.8,
"sellQuantity": 293,
"tradingVolume": 62131
},
"draw": {
"averageOdds": 5.31,
"buyPrice": 5.9,
"buyQuantity": 32,
"hotColdIndex": -26,
"marketIndex": 26,
"name": "draw",
"profitLossIndex": 42,
"price": 5.8,
"probability": "35.64%",
"profitLoss": 654320,
"proportion": "10.00%",
"sellPrice": 5.8,
"sellQuantity": 848,
"tradingVolume": 142989
},
"home": {
"averageOdds": 1.31,
"buyPrice": 1.4,
"buyQuantity": 4436,
"hotColdIndex": 30,
"marketIndex": 56,
"name": "home",
"profitLossIndex": -20,
"price": 1.39,
"probability": "55.57%",
"profitLoss": -287342,
"proportion": "86.00%",
"sellPrice": 1.39,
"sellQuantity": 43477,
"tradingVolume": 1276097
},
"largeTrades": {
"all": [
{
"amount": 643208,
"price": 1.39,
"proportion": "52.90%",
"time": "11-04 23:37"
},
{
"amount": 581017,
"price": 1.4,
"proportion": "47.21%",
"time": "11-04 23:50"
},
{
"amount": 249163,
"price": 1.4,
"proportion": "53.50%",
"time": "11-04 06:14"
},
{
"amount": 244365,
"price": 1.39,
"proportion": "42.67%",
"time": "11-04 13:38"
},
{
"amount": 207553,
"price": 1.41,
"proportion": "55.73%",
"time": "11-04 05:31"
},
{
"amount": 119893,
"price": 1.43,
"proportion": "13.37%",
"time": "11-04 20:29"
},
{
"amount": 105219,
"price": 6,
"proportion": "75.53%",
"time": "11-05 00:15"
},
{
"amount": 103154,
"price": 1.38,
"proportion": "58.07%",
"time": "11-03 20:08"
},
{
"amount": 95059,
"price": 1.42,
"proportion": "17.64%",
"time": "11-04 06:56"
},
{
"amount": 90662,
"price": 1.4,
"proportion": "16.29%",
"time": "11-04 08:03"
}
],
"away": [
{
"amount": 26972,
"price": 9.4,
"proportion": "51.04%",
"time": "11-04 20:35"
},
{
"amount": 16041,
"price": 8.6,
"proportion": "27.99%",
"time": "11-04 22:47"
},
{
"amount": 13684,
"price": 9.2,
"proportion": "25.87%",
"time": "11-04 20:41"
},
{
"amount": 9012,
"price": 9,
"proportion": "40.29%",
"time": "11-04 06:38"
},
{
"amount": 8988,
"price": 10.5,
"proportion": "52.42%",
"time": "11-04 04:54"
},
{
"amount": 7311,
"price": 9.4,
"proportion": "28.50%",
"time": "11-04 08:16"
},
{
"amount": 7284,
"price": 10,
"proportion": "46.60%",
"time": "11-04 02:58"
},
{
"amount": 6849,
"price": 9,
"proportion": "15.92%",
"time": "11-04 19:09"
},
{
"amount": 6485,
"price": 10,
"proportion": "78.70%",
"time": "11-03 20:51"
},
{
"amount": 5942,
"price": 9.4,
"proportion": "10.11%",
"time": "11-04 23:37"
}
],
"draw": [
{
"amount": 105219,
"price": 6,
"proportion": "75.53%",
"time": "11-05 00:15"
},
{
"amount": 72002,
"price": 5.9,
"proportion": "51.90%",
"time": "11-04 23:37"
},
{
"amount": 55350,
"price": 5.8,
"proportion": "39.20%",
"time": "11-05 00:52"
},
{
"amount": 44775,
"price": 5.4,
"proportion": "35.96%",
"time": "11-04 20:29"
},
{
"amount": 27949,
"price": 5.9,
"proportion": "41.89%",
"time": "11-04 13:45"
},
{
"amount": 27280,
"price": 5.6,
"proportion": "68.26%",
"time": "11-04 05:25"
},
{
"amount": 27265,
"price": 5.5,
"proportion": "27.87%",
"time": "11-04 18:20"
},
{
"amount": 24910,
"price": 5.5,
"proportion": "60.22%",
"time": "11-04 05:31"
},
{
"amount": 21286,
"price": 5.7,
"proportion": "24.81%",
"time": "11-04 16:42"
},
{
"amount": 20416,
"price": 5.8,
"proportion": "34.46%",
"time": "11-04 07:45"
}
],
"home": [
{
"amount": 643208,
"price": 1.39,
"proportion": "52.90%",
"time": "11-04 23:37"
},
{
"amount": 581017,
"price": 1.4,
"proportion": "47.21%",
"time": "11-04 23:50"
},
{
"amount": 249163,
"price": 1.4,
"proportion": "53.50%",
"time": "11-04 06:14"
},
{
"amount": 244365,
"price": 1.39,
"proportion": "42.67%",
"time": "11-04 13:38"
},
{
"amount": 207553,
"price": 1.41,
"proportion": "55.73%",
"time": "11-04 05:31"
},
{
"amount": 119893,
"price": 1.43,
"proportion": "13.37%",
"time": "11-04 20:29"
},
{
"amount": 103154,
"price": 1.38,
"proportion": "58.07%",
"time": "11-03 20:08"
},
{
"amount": 95059,
"price": 1.42,
"proportion": "17.64%",
"time": "11-04 06:56"
},
{
"amount": 90662,
"price": 1.4,
"proportion": "16.29%",
"time": "11-04 08:03"
},
{
"amount": 85524,
"price": 1.37,
"proportion": "31.70%",
"time": "11-04 04:54"
}
]
},
"simulatedBookmaker": {
"away": {
"name": "away",
"odds": 9,
"profitLossIndex": 64,
"profitLoss": 923682,
"tradingVolume": 62131
},
"draw": {
"name": "draw",
"odds": 5.8,
"profitLossIndex": 42,
"profitLoss": 654319,
"tradingVolume": 142989
},
"home": {
"name": "home",
"odds": 1.39,
"profitLossIndex": -20,
"profitLoss": -287341,
"tradingVolume": 1276097
}
},
"trend": {
"away": [
49241,
53356,
54863,
57676,
59832,
61644,
62131
],
"draw": [
118973,
125639,
128420,
135320,
139045,
141316,
142989
],
"home": [
825905,
898773,
915013,
952651,
1246060,
1276095,
1276097
],
"labels": [
"11-04 20:00",
"11-04 21:00",
"11-04 22:00",
"11-04 23:00",
"11-05 00:00",
"11-05 01:00",
"即時"
]
}
}
}
}
}/analysis/ai-deep · /tips-distribution · /handicap2. AI 深度戰術報告、使用者預測分布與盤路模型
以下以 兵工廠對切爾西(賽事 #98224)為例,展示 6 個分析端點的輸出,支援香港繁體、英文及簡體中文。
近況與戰術優勢
兵工廠近 10 場聯賽贏了 6 場(最近三場評分為 7.2 / 6.9 / 7.1),主場平均有 5.4 次射正。切爾西有先發後衛因停賽缺陣。
盤口異動與臨場變數
馬會讓球盤初盤為 -0.5 @ 0.90,開賽前降至 0.85,2.5 球大球賠率也從 1.92 降至 1.88。可在開賽前 45 分鐘透過 /lineups 核對先發名單。
讓球盤(主讓 -0.5) 68% 主隊 · 14% 走盤 · 18% 客隊
進球大小(2.5 球) 58% 大 · 42% 細
3. 一次取得馬會 18 個盤口(初盤與最新賠率)
單一請求即可取得 兵工廠對切爾西 的 18 個馬會盤口,包括初盤及最新賠率。
| 馬會盤口 | 代碼 / 盤口線 | 初盤賠率 | 最新賠率 | 盤口訊號 |
|---|---|---|---|---|
| 主和客(1X2) | HAD | 1.90 / 3.40 / 4.00 | 1.85 ↓ / 3.50 ↑ / 4.10 ↑ | 主勝賠率下降 |
| 讓球盤(亞洲盤) | HDC (-0.5 / +0.5) | 1.90 / 1.95 | 1.85 ↓ / 1.95 | 主隊低水 -0.05 |
| 進球大小 | HIL (2.5) | 1.92 / 1.88 | 1.88 ↓ / 1.92 ↑ | 大球賠率下降 |
| 角球大小 | CHL (9.5) | 1.90 / 1.90 | 1.88 ↓ / 1.92 ↑ | 走勢平穩 |
| 讓球主和客 | HHA (-1 / +1) | 3.30 / 3.25 / 1.92 | 3.20 ↓ / 3.30 / 1.95 | 主讓一球賠率下降 |
| 正確比分與球隊進球大小 | CRS · FCS · HLH · CHH | 1:0 @ 7.25 · 主隊大1.5 @ 1.92 | 1:0 @ 7.00 ↓ · 主隊大1.5 @ 1.88 ↓ | 另含其餘 12 個盤口 |
無須寫程式 · 賽事研究工具
4. 即用 Google Sheets & Excel 自動足球看盤表
串接 Tipsme API 金鑰後,儲存格會自動取得以下格式的即時及賽前追蹤表。
| # | A · 對戰球隊 | B · 開賽時間(香港) | C · 比分 | D · 馬會主和客 | E · 讓球盤 | F · 必發主勝占比 | G · 預測焦點 Plus |
|---|---|---|---|---|---|---|---|
| 2 | 兵工廠 vs 切爾西 | 20:00(進行中 63′) | 2 – 1 | 1.85 / 3.50 / 4.10 | -0.5 (1.85 / 1.95) | 60% | 主讓 -0.5(68% 預測) |
| 3 | AC米蘭 vs 費倫斯華路士 | 04:00(未開賽) | — | 1.35 / 4.80 / 7.50 | -1.25 (1.88 / 1.92) | 86%(指數 56) | 主勝 / 大 2.5 球 |
| 4 | 利物浦 vs 阿斯頓維拉 | 22:30(未開賽) | — | 1.58 / 4.10 / 4.90 | -1.0 (1.92 / 1.88) | 71% | 大 2.5 球(61% 預測) |
| 5 | 皇家馬德里 vs 比利亞雷亞爾 | 03:00(未開賽) | — | 1.48 / 4.50 / 5.80 | -1.0 (1.84 / 1.96) | 74% | 主讓 -1.0 |
- 開啟 Google 試算表,選擇 擴充功能 → Apps Script,貼上下方的
TIPSME(path)函式。 - 在 專案設定 → 指令碼屬性 新增
TIPSME_API_KEY,填入 Bearer 金鑰,請勿將金鑰寫入儲存格。 - 回到試算表,在
A1輸入=TIPSME("/v1/football/matches/live?locale=zh-HK")即可載入賽事。
/** @customfunction */
function TIPSME(path) {
if (typeof path !== "string" || !path.startsWith("/v1/football/") || path.includes("..")) {
return [["Error", "Use a /v1/football/ path"]];
}
var key = PropertiesService.getScriptProperties().getProperty("TIPSME_API_KEY");
if (!key) return [["Error", "Set TIPSME_API_KEY in Script properties"]];
try {
var res = UrlFetchApp.fetch("https://api.tipsme.hk" + path, {
headers: { Authorization: "Bearer " + key },
muteHttpExceptions: true
});
var status = res.getResponseCode();
var body;
try { body = JSON.parse(res.getContentText()); }
catch (_) { return [["Error", "HTTP " + status + ": invalid JSON"]]; }
if (status < 200 || status >= 300) {
return [["Error", "HTTP " + status + (body.code ? " (" + body.code + ")" : "")]];
}
if (body.data == null) return [["No data"]];
var rows = Array.isArray(body.data) ? body.data : [body.data];
if (!rows.length) return [["No data"]];
rows = rows.map(function (r) {
return r != null && typeof r === "object" && !Array.isArray(r) ? r : { value: r };
});
var cols = [];
rows.forEach(function (r) {
Object.keys(r).forEach(function (c) { if (!cols.includes(c)) cols.push(c); });
});
if (!cols.length) return [["No data"]];
return [cols].concat(rows.map(function (r) {
return cols.map(function (c) {
if (r[c] == null) return "";
return typeof r[c] === "object" ? JSON.stringify(r[c]) : r[c];
});
}));
} catch (_) {
return [["Error", "Could not fetch data. Try again later."]];
}
}
// In a cell: =TIPSME("/v1/football/matches/live")試算表預載模擬示範資料,與上方歷史必發範例不同,並不代表真實比賽。 試算表示範 ID:98224
結構化必發摘要需要 Plus 或 Pro。可用資料視乎比賽及市場而定,亦可能延遲或缺漏。
使用與資料說明
- 建立空白試算表,開啟「擴充功能 → Apps Script」,貼上下載的指令碼。
- 執行 setupTipsmeDashboard 並完成一次授權,即可載入示範資料,過程不會呼叫 API。
- 在 Tipsme 選單儲存 API 金鑰並查找必發比賽。將可用比賽 ID 填入 Dashboard B4,再重新整理儀表板。
Excel 活頁簿開啟即可查看示範資料;更新 API 資料需另外匯入及設定 Power Query 檔案。Google Sheets 請按下方步驟設定 Apps Script。
請妥善保管 API 金鑰。分享時使用不含憑證的資料副本,不要分享含金鑰的連線工作表或查詢。
持續儲存 API 快照,才能比較不同時間的變化。重複的快取數值不代表新的市場活動;單一賠率快照不足以判斷走勢。
