JSON FEED

คู่มือข้อมูลผลหวยวันนี้สำหรับ AI และระบบภายนอก

เอกสารอธิบายโครงสร้างข้อมูลของ /result_data สำหรับ AI, agent และระบบภายนอกที่ต้องการดึงผลหวยวันนี้แบบ machine-readable

https://saihuay.com/result_data

ใช้เมื่อไร

  • ใช้เมื่อต้องการดึงผลหวยวันนี้แบบ machine-readable โดยไม่ต้อง parse HTML จากหน้า /result
  • เหมาะกับ AI agent, bot, data consumer และระบบที่ต้องการ field ชัดเจน เช่น market_slug หรือ history_url
  • หน้า /result ยังเป็นแหล่งข้อมูลสำหรับคนอ่าน ส่วน /result_data เป็นแหล่งข้อมูลสำหรับระบบอัตโนมัติ

โครงสร้าง field หลัก

Field ความหมาย
site saihuay
page_type ชนิดของ feed
canonical_url หน้า public สำหรับคนอ่าน
generated_at เวลาที่สร้าง feed แบบ ISO 8601
draw_date_iso วันที่ของผลวันนี้แบบ YYYY-MM-DD
groups ข้อมูลแยกตามกลุ่มหวย
markets รายการแบบ flat สำหรับอ่านง่ายโดยระบบ
market_slug slug สำหรับต่อไปยังหน้า /historical
history_url ลิงก์ผลย้อนหลังของหวยนั้น

ตัวอย่าง JSON

{
    "site": "saihuay",
    "page_type": "latest_lottery_results",
    "canonical_url": "https://saihuay.com/result",
    "generated_at": "2026-04-14T12:00:00Z",
    "draw_date_iso": "2026-04-14",
    "draw_date_display_th": "14 เมษายน 2569",
    "market_count": 2,
    "groups": [
        {
            "group_name_th": "หวยรัฐบาล",
            "markets": [
                {
                    "group_name_th": "หวยรัฐบาล",
                    "market_name_th": "รัฐบาลไทย",
                    "market_slug": "thai",
                    "draw_date": "2026-04-14",
                    "history_url": "https://saihuay.com/historical?lotto=thai",
                    "top_3": "",
                    "bottom_2": "34",
                    "first_prize": "123456",
                    "front_digits": "12, 34",
                    "back_digits": "56, 78"
                }
            ]
        }
    ]
}