x-api-key header เท่านั้น — ไม่ต้อง session, ไม่ต้อง login| Header | ค่า | จำเป็น |
|---|---|---|
| x-api-key | YOUR_API_KEY | จำเป็น |
const res = await fetch('https://lnwthailive.online/api/public/matches', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { ok, tier, count, data } = await res.json();import requests
res = requests.get(
'https://lnwthailive.online/api/public/matches',
headers={'x-api-key': 'YOUR_API_KEY'}
)
data = res.json()
print(f"{data['count']} matches, tier: {data['tier']}")curl https://lnwthailive.online/api/public/matches \
-H "x-api-key: YOUR_API_KEY"{
"ok": true,
"tier": "pro",
"count": 12,
"data": [{
"id": "1610599",
"time": "02:00",
"league": "UEFA Champions League",
"teamHome": "Bayern Munich",
"teamAway": "Real Madrid",
"isLive": false,
"score": "vs",
"streamUrl": "/api/streams/1610599",
"channels": [{ "id": "epl-bein1", "name": "EPL BEIN1" }]
}]
}// วิเคราะห์บอลวันนี้
const res = await fetch('https://lnwthailive.online/api/analyse/today');
const { matches, total, date } = await res.json();
// ดึงข้อมูลเต็มของแมตช์ (14 API calls พร้อมกัน)
const detail = await fetch('https://lnwthailive.online/api/analyse/12345');
const match = await detail.json();
// match.odds, match.headToHead, match.votes, etc.import requests
# วิเคราะห์บอลวันนี้
res = requests.get('https://lnwthailive.online/api/analyse/today')
data = res.json()
print(f"{data['total']} matches on {data['date']}")
# ดึงข้อมูลเต็ม (14 sections)
detail = requests.get('https://lnwthailive.online/api/analyse/12345')
match = detail.json()# วิเคราะห์บอลวันนี้
curl https://lnwthailive.online/api/analyse/today
# รายละเอียดเต็ม (14 data sections)
curl https://lnwthailive.online/api/analyse/12345
# พรุ่งนี้
curl https://lnwthailive.online/api/analyse/tomorrow{
"id": 12345,
"name": "Arsenal vs Chelsea",
"matchDatetime": "2026-04-26T19:00:00",
"homeTeam": { "name": "Arsenal", "logo": "..." },
"awayTeam": { "name": "Chelsea", "logo": "..." },
"article": { "title": "...", "content": "<html>..." },
"odds": {
"ASIAN_HANDICAP": [{ "side": "home", "value": 1.85 }],
"OVER_UNDER": [{ "side": "over", "value": 1.90 }]
},
"headToHead": { "homeWon": 12, "drawn": 5, "total": 25 },
"votes": { "homePercent": 67, "awayPercent": 33 },
"teamStats": [{ "possessionPercent": 62 }],
"lineups": [{ "formation": "4-3-3" }],
"standings": [{ "position": 1, "points": 77 }],
"relatedMatches": [...]
}const res = await fetch('https://lnwthailive.online/api/public/standings', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { ok, tier, count, data } = await res.json();{
"ok": true, "tier": "pro", "isStale": false,
"count": 9,
"data": [{
"leagueName": "English Premier League",
"rows": [{
"rank": 1, "team": "Arsenal",
"mp": 34, "w": 24, "d": 5, "l": 5,
"gf": 76, "ga": 34, "gd": 42, "pts": 77
}]
}]
}const res = await fetch('https://lnwthailive.online/api/public/results', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { ok, matchCount, leagues } = await res.json();
// เลือกวัน
const res2 = await fetch('https://lnwthailive.online/api/public/results?date=2026-04-24');
// เฉพาะ live
const res3 = await fetch('https://lnwthailive.online/api/public/results?date=inplay');{
"ok": true, "tier": "pro",
"date": "2026-04-24",
"leagueCount": 8, "matchCount": 32,
"leagues": [{
"leagueName": "พรีเมียร์ลีก",
"matches": [{
"name": "Arsenal vs Chelsea",
"state": "FT",
"homeScore": 2, "awayScore": 1
}]
}]
}const res = await fetch('https://lnwthailive.online/api/public/boxing', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { ok, count, data } = await res.json();{
"ok": true, "tier": "pro",
"data": {
"programs": [{
"name": "มวยไทยช่อง 7 สี",
"events": [{
"stadium": "สนามมวยลุมพินี",
"state": "live",
"fights": [{
"weight": "130 lbs",
"redCorner": { "name": "..." },
"blueCorner": { "name": "..." }
}]
}]
}]
}
}const res = await fetch('https://lnwthailive.online/api/public/wuachon', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { ok, total, data } = await res.json();{
"ok": true, "tier": "pro",
"data": [{
"id": 1234,
"roundName": "คู่ที่ 5",
"type": "wuachon",
"typeLabel": "วัวชน",
"redCorner": { "name": "แดงลายสิงห์" },
"blueCorner": { "name": "น้ำเงินยอดมงคล" },
"stadium": "สนามชนโคบ้านเสาธง",
"stakes": 150000,
"stakesLabel": "150,000",
"parsedRates": { "redRate": "ต่อ 10/9", "blueRate": "รอง 5/4" },
"stats": { "redWinPercent": 55, "blueWinPercent": 45, "redWeight": 420 },
"stream": {
"url": "https://lnwthailive.online/api/public/wuachon/stream?code=CH5&stk=stk_token",
"type": "hls"
}
}]
}const res = await fetch('https://lnwthailive.online/api/ge-sports?type=Basketball', {
headers: { 'x-api-key': 'YOUR_API_KEY' }
});
const { success, count, matches } = await res.json();{
"success": true,
"count": 5,
"matches": [{
"id": "ge_12345",
"league": "NBA",
"teamHome": "Lakers",
"teamAway": "Warriors",
"isLive": true,
"channels": [
{ "id": "ch1", "name": "True Sport 1", "logo": "..." }
]
}]
}| HTTP | สาเหตุ |
|---|---|
| 401 | API key ไม่ถูกต้องหรือหมดอายุ |
| 429 | เกินจำนวนคำขอต่อนาที |
| 403 | ไม่มีสิทธิ์เข้าถึง |
| 500 | ข้อผิดพลาดฝั่ง Server |
| แผน | จำกัด/นาที | แคช | ราคา |
|---|---|---|---|
| Demo | 10 | 5 นาที | ฟรี |
| Starter | 60 | 5 นาที | ฿500/สัปดาห์ |
| Pro | 300 | 1 นาที | ฿3,500/เดือน |
| Enterprise | ไม่จำกัด | Real-time | ฿12,000/ปี |
Demo: 10 req/นาที · ซื้อ API Key เพื่อใช้งานจริง