Giải pháp dữ liệu Xổ Số Kiến Thiết toàn diện 3 Miền
Nhanh chóng - Chuẩn JSON - Miễn Phí
Tích Hợp NgayDán đoạn mã sau vào trang web của bạn để hiển thị kết quả tương tự.
Base URL: https://xoso-api.webviet.vn/
| Method | Dịch Vụ | Endpoint (URL Đầy Đủ) | Mô Tả |
|---|---|---|---|
| GET | Miền Nam | https://xoso-api.webviet.vn/api.php?region=mn |
Lấy KQXS MN mới nhất (CACHE 60s) |
| GET | Miền Trung | https://xoso-api.webviet.vn/api.php?region=mt |
Lấy KQXS MT mới nhất (CACHE 60s) |
| GET | Miền Bắc | https://xoso-api.webviet.vn/api.php?region=mb |
Lấy KQXS MB mới nhất (CACHE 60s) |
| GET | Lịch Sử | https://xoso-api.webviet.vn/api.php?date=dd-mm-yyyy |
Lấy KQXS theo ngày (VD: 10-01-2026) |
| GET | LIVE MN | https://xoso-api.webviet.vn/api-tructiep.php?region=mn |
Kết quả trực tiếp MN (NO-CACHE) |
| GET | LIVE MT | https://xoso-api.webviet.vn/api-tructiep.php?region=mt |
Kết quả trực tiếp MT (NO-CACHE) |
| GET | LIVE MB | https://xoso-api.webviet.vn/api-tructiep.php?region=mb |
Kết quả trực tiếp MB (NO-CACHE) |
province=slug : Lọc theo tỉnh (VD: ?region=mn&province=ben-tre).Để hệ thống tự động cập nhật, bạn cần thiết lập 2 Cron Job sau trên Hosting/VPS của mình.
Chạy 1 lần mỗi ngày để chốt sổ.
Thời gian: 20:00 hàng ngày
0 20 * * * php /path/to/public/cron-main.php
Chạy mỗi phút trong giờ quay.
Thời gian: 16h15 - 18h30
* 16-18 * * * php /path/to/public/cron-tructiep.php
Ngoài ra, bạn có thể chạy php cron-bulk-import.php 365 để khôi phục dữ liệu 1 năm cũ nếu
cần.
fetch('https://xoso-api.webviet.vn/api.php?region=mn')
.then(res => res.json())
.then(data => console.log(data))
.catch(console.error);