JSON FEED

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

เอกสารอธิบาย /index_data สำหรับ AI และระบบภายนอก — ภาพรวมเว็บ รายการตลาด และการ์ดผลหวยล่าสุดบนหน้าแรก (machine-readable, เฉพาะ bot ที่อนุมัติ)

https://saihuay.com/index_data

ใช้เมื่อไร

  • ใช้เมื่อต้องการภาพรวมของเว็บไซต์ ส่วนหลัก และตลาดหวยทั้งหมดจากหน้าแรกแบบ machine-readable
  • เหมาะกับ agent ที่ต้องการรู้จุดเริ่มต้นของเว็บนี้ก่อนจะเลือก feed เฉพาะทางต่อ
  • ถ้าต้องการผลวันนี้แบบตารางเต็ม ให้ใช้ /result_data แต่ถ้าต้องการภาพรวมหน้าแรกรวมการ์ดผลหวยล่าสุด ให้ใช้ /index_data
  • เข้าถึงได้เฉพาะ bot/crawler ที่อนุมัติ (User-Agent ที่รู้จัก) — เบราว์เซอร์ทั่วไปจะได้ HTTP 403 เหมือน /result_data

field หลัก

Field ความหมาย
homepage_latest_results การ์ดผลหวยล่าสุดบนหน้าแรก (#lottoLatestSection) — filters, cards พร้อม top_3, bottom_2, draw_result/first_prize และ front_digits/back_digits สำหรับรัฐบาลไทย
access_policy ค่า approved_crawlers_only — ต้องใช้ User-Agent ของ bot ที่อนุมัติ
primary_sections จุดเข้าใช้งานหลักของเว็บ พร้อม page_url, feed_url และ guide_url
groups กลุ่มหวยพร้อมรายการตลาดทั้งหมดที่แสดงบนหน้าแรก
supported_languages ภาษาที่เว็บรองรับสำหรับ public page

ตัวอย่าง JSON

{
    "site": "saihuay",
    "page_type": "homepage_overview",
    "canonical_url": "https://saihuay.com/",
    "generated_at": "2026-04-14T12:00:00Z",
    "access_policy": "approved_crawlers_only",
    "supported_languages": [
        "th",
        "en",
        "zh",
        "lo",
        "vi"
    ],
    "group_count": 2,
    "market_count": 3,
    "primary_sections": [
        {
            "section_key": "homepage_latest_results",
            "page_url": "https://saihuay.com/",
            "section_anchor": "lottoLatestSection",
            "feed_url": "https://saihuay.com/index_data",
            "guide_url": "https://saihuay.com/index_data_guide"
        },
        {
            "section_key": "latest_results",
            "page_url": "https://saihuay.com/result",
            "feed_url": "https://saihuay.com/result_data",
            "guide_url": "https://saihuay.com/result_data_guide"
        }
    ],
    "homepage_latest_results": {
        "section_title_th": "ผลหวยล่าสุด",
        "section_anchor": "lottoLatestSection",
        "card_count": 2,
        "filters": [
            {
                "filter_key": "all",
                "label_th": "ทั้งหมด",
                "groups": []
            },
            {
                "filter_key": "หวยลาว",
                "label_th": "หวยลาว",
                "groups": [
                    "หวยลาว"
                ]
            }
        ],
        "cards": [
            {
                "market_name_th": "ลาวสตาร์",
                "market_slug": "lao_star",
                "market_display_name": "Lao STAR",
                "group_name_th": "หวยลาว",
                "filter_groups": [
                    "หวยลาว"
                ],
                "draw_date_display": "24 มิ.ย. 2569",
                "draw_date_iso": "2026-06-24",
                "scheduled_draw_time": "22:00",
                "has_result": true,
                "top_3": "885",
                "bottom_2": "56",
                "first_prize": "",
                "draw_result": "12345",
                "history_url": "https://saihuay.com/historical?lotto=lao_star"
            },
            {
                "market_name_th": "รัฐบาลไทย",
                "market_slug": "thai",
                "market_display_name": "Thai Government Lottery",
                "group_name_th": "หวยรัฐบาล",
                "filter_groups": [
                    "หวยรัฐบาล"
                ],
                "draw_date_display": "1 ก.ค. 2569",
                "draw_date_iso": "2026-07-01",
                "scheduled_draw_time": "16:00",
                "has_result": false,
                "top_3": "",
                "bottom_2": "",
                "first_prize": "",
                "draw_result": "",
                "front_digits": "123, 456",
                "back_digits": "789, 012",
                "history_url": "https://saihuay.com/historical?lotto=thai"
            }
        ]
    },
    "groups": [
        {
            "group_name_th": "หวยรัฐบาล",
            "group_display_name": "Government Lottery",
            "market_count": 2,
            "markets": [
                {
                    "market_slug": "thai",
                    "market_name_th": "รัฐบาลไทย",
                    "market_display_name": "Thai Government Lottery",
                    "historical_url": "https://saihuay.com/historical?lotto=thai",
                    "historical_feed_url": "https://saihuay.com/historical_data?lotto=thai",
                    "lucky_url": "https://saihuay.com/lucky?lotto=thai",
                    "lucky_feed_url": "https://saihuay.com/lucky_data?lotto=thai"
                }
            ]
        }
    ]
}