JSON FEED

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

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

https://www.gjl365n.xyz/result_data.php

ใช้เมื่อไร

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

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

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

ตัวอย่าง JSON

{
    "site": "GJL365N",
    "page_type": "latest_lottery_results",
    "canonical_url": "https://www.gjl365n.xyz/result.php",
    "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://www.gjl365n.xyz/historical.php?lotto=thai",
                    "top_3": "",
                    "bottom_2": "34",
                    "first_prize": "123456",
                    "front_digits": "12, 34",
                    "back_digits": "56, 78"
                }
            ]
        }
    ]
}