Thai Lottery API

Free Thai Lottery API - ตรวจหวยฟรี สำหรับนักพัฒนา

https://lottocheck.org/api/v1/lottery/latest

Features

เร็วและแม่นยำ

Cache system ช่วยให้การเรียกใช้เร็วขึ้น

ฟรี 100%

ไม่ต้องสมัคร ไม่ต้องใช้ API Key

CORS Enabled

เรียกใช้ได้จากทุกที่ ทุก domain

API Endpoints

1. ดึงผลหวยล่าสุด

GET /api/v1/lottery/latest

ดึงข้อมูลผลหวยงวดล่าสุด

Response Example:

{ "status": "success", "source": "cache", "data": { "date": "16 ธันวาคม 2567", "prizes": [{ "id": "prizeFirst", "name": "รางวัลที่ 1", "reward": "6000000", "amount": 1, "number": ["835729"] }], "runningNumbers": [...] } }
fetch('https://lottocheck.org/api/v1/lottery/latest') .then(res => res.json()) .then(data => console.log(data));

2. ดึงผลหวยตามวันที่

GET /api/v1/lottery/{date}

ดึงข้อมูลผลหวยตามวันที่ที่ระบุ

Parameters:

ParameterTypeDescription
datestringวันที่ในรูปแบบ DDMMYYYY เช่น 16122024

Example:

https://lottocheck.org/api/v1/lottery/16122024

3. ดึงรายการงวด

GET /api/v1/lottery/list

ดึงรายการงวดหวยย้อนหลัง

Query Parameters:

ParameterTypeDefaultDescription
limitnumber24จำนวนงวดที่ต้องการ
pagenumber1หน้าที่ต้องการ

Example:

https://lottocheck.org/api/v1/lottery/list?limit=10&page=1

4. ตรวจสอบเลข

POST /api/v1/lottery/check

ตรวจสอบว่าเลขที่ส่งมาถูกรางวัลหรือไม่

Request Body:

{ "number": "123456", // เลข 6 หลัก (required) "date": "latest" // งวดที่ต้องการตรวจ (optional) }

Response Example:

{ "status": "success", "lottery_date": "16 ธันวาคม 2567", "number_checked": "123456", "is_winner": true, "total_reward": 6000000, "prizes_won": [{ "prize_id": "prizeFirst", "prize_name": "รางวัลที่ 1", "reward": "6000000", "match_type": "exact" }] }

✅ ไม่มี Rate Limits

  • • ไม่จำกัดจำนวน requests ฟรี 100%
  • • เรียกใช้ได้ไม่จำกัด
  • • ข้อมูลมี cache 5 นาทีสำหรับงวดล่าสุด และ cache ถาวรสำหรับงวดเก่า
  • • กรุณาใช้งานอย่างมีความรับผิดชอบ

💬 Support

หากพบปัญหาหรือต้องการความช่วยเหลือ สามารถติดต่อได้ที่: