เริ่มต้นใช้งาน
ส่งเฉพาะ x-api-key header เท่านั้น — ไม่ต้อง session, ไม่ต้อง login, ไม่ต้องทำอะไรเพิ่ม
GET
/api/public/matches
รายการแข่งขันทั้งหมด พร้อมช่องถ่ายทอดสดและ Stream URL
ต้องมี x-api-key header
การยืนยันตัวตน
Headerค่าจำเป็นหมายเหตุ
x-api-keyYOUR_API_KEYจำเป็นติดต่อทีมเพื่อขอรับ key
ตัวอย่างโค้ด
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)
{ "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สาเหตุวิธีแก้
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 การเรียก API จริงใช้เพียง x-api-key header เดียว
Live API Tester
ป้องกันทางฝั่ง Server
พร้อมใช้งาน
10:00
GET /api/demo/matchesทดสอบฟรี

Demo: 10 req/นาที · ซื้อ API Key สำหรับ Production