เริ่มต้นใช้งาน

ส่งเฉพาะ x-api-key header เท่านั้น — ไม่ต้อง session, ไม่ต้อง login
GET
/api/public/matches
รายการแข่งขันทั้งหมด พร้อมช่องถ่ายทอดสดและ Stream URL
ต้องมี x-api-key header
ลองเรียก
GET
/api/public/matches/live-incidents
?ids=id1,id2
ดึงแจ้งเตือนสด (Goal, Red Card) หลายคู่พร้อมกัน (Pro+)
ต้องมี x-api-key header
ลองเรียก

การยืนยันตัวตน

Headerค่าจำเป็นหมายเหตุ
x-api-keyYOUR_API_KEYจำเป็นติดต่อทีมเพื่อขอรับ key

ตัวอย่างโค้ด — Matches

JavaScript / TypeScript
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();
Python
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
curl https://lnwthailive.online/api/public/matches \ -H "x-api-key: YOUR_API_KEY"

Response Schema — Matches

JSON Schema
{ "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" }] }] }

วิเคราะห์ผลบอล (Analysis)

GET
/api/analyse
?type=today|tomorrow|all&page=1&page_size=20
ดึงรายการวิเคราะห์บอล — รองรับ pagination และ filter
ลองเรียก
GET
/api/analyse/today
วิเคราะห์บอลวันนี้ทั้งหมด
ลองเรียก
GET
/api/analyse/tomorrow
วิเคราะห์บอลพรุ่งนี้ทั้งหมด
ลองเรียก
GET
/api/analyse/[id]
ดึงบทวิเคราะห์แบบเต็ม — 14 API calls พร้อมกัน พร้อมข้อมูลเชิงลึกทุกมิติ
ข้อมูลที่ได้จาก /api/analyse/[id]:
article บทวิเคราะห์
odds อัตราต่อรอง
headToHead สถิติพบกัน
homeLatestMatches ผลงานเหย้า
awayLatestMatches ผลงานเยือน
lineups ไลน์อัพ
lineupPlayers ผู้เล่น
votes โหวตแฟนบอล
teamStats สถิติทีม
standings ตารางคะแนน
returns ผลตอบแทน
relatedMatches แมตช์เกี่ยวข้อง
JavaScript / TypeScript
// วิเคราะห์บอลวันนี้ 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.
Python
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
# วิเคราะห์บอลวันนี้ curl https://lnwthailive.online/api/analyse/today # รายละเอียดเต็ม (14 data sections) curl https://lnwthailive.online/api/analyse/12345 # พรุ่งนี้ curl https://lnwthailive.online/api/analyse/tomorrow
Response Schema
{ "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": [...] }

ตารางคะแนน (Standings)

GET
/api/public/standings
ตารางคะแนนทุกลีก — cache stale-while-revalidate
ต้องมี x-api-key header
JavaScript
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();
Response Schema
{ "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 }] }] }

ผลบอลสด (Results)

GET
/api/public/results
ผลบอลวันนี้ (default) — cache 60 วินาที
ต้องมี x-api-key header
GET
/api/public/results
?date=YYYY-MM-DD
เลือกวันที่ต้องการ
GET
/api/public/results
?date=inplay
เฉพาะแมทช์ที่กำลังเล่นอยู่
JavaScript
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');
Response Schema
{ "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 }] }] }

มวยไทยสด (Boxing)

GET
/api/public/boxing
รายการมวยทั้งหมด — คู่มวย, สนาม, ช่องถ่ายทอดสด
ต้องมี x-api-key header
GET
/api/public/boxing
?date=YYYY-MM-DD
เลือกวันที่ต้องการ
GET
/api/boxing/today
รายการมวยวันนี้เท่านั้น (Bangkok UTC+7)
GET
/api/boxing/stream/:channel
?date=ISO_DATETIME
เปิดเซสชันสตรีมมวย
GET
/api/boxing/live/:channel
m3u8 playlist สำหรับเล่นสด (HLS)
JavaScript
const res = await fetch('https://lnwthailive.online/api/public/boxing', { headers: { 'x-api-key': 'YOUR_API_KEY' } }); const { ok, count, data } = await res.json();
Response Schema
{ "ok": true, "tier": "pro", "data": { "programs": [{ "name": "มวยไทยช่อง 7 สี", "events": [{ "stadium": "สนามมวยลุมพินี", "state": "live", "fights": [{ "weight": "130 lbs", "redCorner": { "name": "..." }, "blueCorner": { "name": "..." } }] }] }] } }

วัวชน & ไก่ชน (Wuachon & Cockfighting)

GET
/api/public/wuachon
?type=wuachon|cock|all
รายการวัวชน/ไก่ชนทั้งหมด พร้อมวิเคราะห์ สถิติ เงินเดิมพัน และ Stream URL
ต้องมี x-api-key header
GET
/api/public/wuachon/stream
?code=CH5&stk=api_token_xxx
ดึงลิงก์ HLS (m3u8) วัวชน/ไก่ชน แบบเข้ารหัสยืนยันสิทธิ์ Token
ต้องมี x-api-key header
JavaScript
const res = await fetch('https://lnwthailive.online/api/public/wuachon', { headers: { 'x-api-key': 'YOUR_API_KEY' } }); const { ok, total, data } = await res.json();
Response Schema
{ "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" } }] }

ThaiGoLive (Special Events)

GET
/api/thaigo/events
รายการกีฬาทั้งหมด (บอลนอก, บาส, อื่นๆ) แบบ Real-time
ต้องมี x-api-key header
ลองเรียก
GET
/api/thaigo/live/:channel
m3u8 playlist สำหรับเล่นสด (Smart Multi-CDN)

GeSports (Multi-Sports)

GET
/api/ge-sports
?type=Basketball|Tennis|Badminton|Golf|Baseball|Motorsport|Futsal|Netball|Australian_Football|Rugby|Ice_Hockey|Athletics|Cycling|Cricket|Darts|Fighting
ดึงรายการกีฬาทุกประเภทพร้อมช่องสตรีมและไอคอน (ยกเว้นฟุตบอล)
ต้องมี x-api-key header
ลองเรียก
* รองรับประเภทกีฬา: Basketball, Tennis, Badminton, Golf, Baseball, Motorsport, Futsal, Netball, Australian_Football, Rugby, Ice_Hockey, Athletics, Cycling, Cricket, Darts, Fighting
* ข้อมูลประกอบด้วย: ลีก, ทีม, โลโก้ทีม, สถานะสด, ช่องรายการสำรอง และไอคอนช่อง
JavaScript
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();
Response Schema
{ "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สาเหตุวิธีแก้
401API key ไม่ถูกต้องหรือหมดอายุติดต่อทีมเพื่อต่ออายุ
429เกินจำนวนคำขอต่อนาทีรอ 1 นาทีหรืออัพเกรดแผน
403ไม่มีสิทธิ์เข้าถึงใช้ /api/public/* เท่านั้น
500ข้อผิดพลาดฝั่ง Serverลองใหม่อีกครั้ง

อัตราการเรียกใช้ตามแผน

แผนจำกัด/นาทีแคชราคา
Demo105 นาทีฟรี
Starter605 นาที฿500/สัปดาห์
Pro3001 นาที฿3,500/เดือน
Enterpriseไม่จำกัดReal-time฿12,000/ปี
เครื่องมือทดสอบ APIเรียกข้อมูลแบบ Real-time ด้วย Demo key — ไม่ต้อง login
ทดสอบเรียกใช้งาน API (Real-time)
ป้องกันทางฝั่ง Server
พร้อมใช้งาน
GET /api/demo/matchesทดสอบฟรี

Demo: 10 req/นาที · ซื้อ API Key เพื่อใช้งานจริง