x-api-key header เท่านั้น — ไม่ต้อง session, ไม่ต้อง login, ไม่ต้องทำอะไรเพิ่ม| Header | ค่า | จำเป็น | หมายเหตุ |
|---|---|---|---|
| x-api-key | YOUR_API_KEY | จำเป็น | ติดต่อทีมเพื่อขอรับ 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",
"homeLogo": "https://...",
"awayLogo": "https://...",
"isLive": false,
"score": "vs",
"streamUrl": "/api/streams/1610599",
"playerUrl": "/player/1610599",
"channels": [
{
"id": "epl-bein1",
"name": "EPL BEIN1",
"logo": "/api/imgproxy?url=...",
"streamUrl": "/api/streams/1610599?channel=epl-bein1"
}
]
}
]
}| HTTP | สาเหตุ | วิธีแก้ |
|---|---|---|
| 401 | API key ไม่ถูกต้องหรือหมดอายุ | ติดต่อทีมเพื่อต่ออายุ |
| 429 | เกินจำนวนคำขอต่อนาที | รอ 1 นาทีหรืออัพเกรดแผน |
| 403 | ไม่มีสิทธิ์เข้าถึง | ใช้ /api/public/* เท่านั้น |
| 500 | ข้อผิดพลาดฝั่ง Server | ลองใหม่อีกครั้ง |
| แผน | จำกัด/นาที | แคช | ราคา |
|---|---|---|---|
| Demo | 10 | 5 นาที | ฟรี |
| Starter | 60 | 5 นาที | ฿500/สัปดาห์ |
| Pro | 300 | 1 นาที | ฿3,500/เดือน |
| Enterprise | ไม่จำกัด | Real-time | ฿12,000/ปี |
x-api-key header เดียวDemo: 10 req/นาที · ซื้อ API Key สำหรับ Production