LOTTERYCHECKS · LOTTERY COLLECTION
Free tools for your website
Free lottery results widget and results API
See the real thing before you decide
Every box below is live and pulls the latest draw as you watch; none of them is a screenshot. You can scroll inside each frame, and the number checker in the box works.
Default: every prize
1st to 5th prize, with the number checker (set the iframe to about 1500px tall)
Short: without the 2nd to 5th prizes
?short=1 keeps the near-1st prizes, first 3 digits and last 3 digits (about 430px)
Compact: headline numbers only
?compact=1 keeps the 1st prize and the last 2 digits (about 320px)
Dark theme
?theme=dark for dark websites (combines with short or compact)
Lao Development Lottery
/embed/lao-lottery with the last 4, 3 and 2 digits
GSB Lottery
/embed/gsb-lottery with the 1st and 2nd prizes and the 3- and 2-digit numbers
Without the number checker
?check=0 shows the results only
Option 1: paste the iframe code (easiest)
Works on any website or platform, including WordPress, Blogger and plain HTML. The box's styles never clash with yours, and it works the moment you paste it.
<!-- Latest lottery results from LotteryChecks (every prize) -->
<iframe
src="https://lotterychecks.com/embed/thai-government?lang=en"
style="width:100%;max-width:520px;height:1500px;border:0"
loading="lazy"
title="Thai Government Lottery: latest draw"
></iframe>
<p style="font-size:12px">
Data from <a href="https://lotterychecks.com/" target="_blank" rel="noopener">LotteryChecks</a>
</p>The code includes a credit line back to us, the only thing we ask in return. Please keep it: it also tells your readers where the numbers come from.
Option 2: the script (the box blends into your design)
With the script, the box takes your website's font, while its colours stay its own so the numbers stay readable on any background (add data-ph-theme="dark" on a dark website). Change data-ph-lottery to choose the lottery, add data-ph-short="1" to drop the 2nd to 5th prizes, or data-ph-compact="1" for the smallest box, and set data-ph-lang="en" to choose the language. You can place the div in several spots on one page.
<!-- Latest lottery results from LotteryChecks -->
<div data-ph-lottery="thai-government" data-ph-lang="en"></div>
<script src="https://lotterychecks.com/embed.js" async></script>This code, running live
The box below is the same script running on this page. Notice that it takes the font of the page it sits on instead of being fenced off in a frame like the iframe.
Readers check their numbers right inside the box
The box has a field where readers type a 2- to 7-digit number and check it straight away, without leaving your page. It tells them which prize they won and how much, using the same checking rules as the checker on our site: 3 digits are matched against both the first and last 3 digits, 2 digits against the last 2, and a full ticket number against every prize including the near-1st prizes. Turn it off with ?check=0 if you don't want it.
Short on space? Make the box smaller
By default the box shows every prize including the 2nd to 5th, which together hold more than 160 numbers, so it is fairly tall. For a sidebar or a narrow column, add ?short=1 to drop the 2nd to 5th prizes and keep the near-1st prizes, the first 3 digits and the last 3 digits.
<!-- Short version, for sidebars or tight spaces -->
<iframe
src="https://lotterychecks.com/embed/thai-government?short=1&lang=en"
style="width:100%;max-width:420px;height:430px;border:0"
loading="lazy"
title="Thai Government Lottery: latest draw"
></iframe>
<p style="font-size:12px">
Data from <a href="https://lotterychecks.com/" target="_blank" rel="noopener">LotteryChecks</a>
</p>Options
| Option | How | Effect |
|---|---|---|
| Choose the lottery | /embed/lao-lottery | Thai Government Lottery or Lao Development Lottery or GSB Lottery |
| Language | ?lang=en | th (default), en, lo, my or vi. Times are always Thai time and say so. |
| Dark theme | ?theme=dark | Dark background with light text |
| Compact | ?compact=1 | Only the 1st prize and the last 2 digits (about 320px tall) |
| Drop the 2nd to 5th prizes | ?short=1 | Keeps the near-1st prizes, first 3 and last 3 digits (about 430px tall) |
| Hide the number checker | ?check=0 | Results only, no input field (about 120px shorter) |
Results API (JSON)
Call it directly from a browser or a server, with no key and no sign-up. CORS is open to every domain, and the limit is 120 requests per minute per IP address.
Request
GET https://lotterychecks.com/api/public/results?lottery=thai-government&limit=1&lang=enEvery lottery type is supported, including the Hanoi lotteries, with PHP and Python examples, an OpenAPI file and a README to copy into your repository. See the full API documentation.
lottery — thai-government or lao-lottery or gsb-lottery (default thai-government)
limit — number of recent draws, 1–20 (default 1, the latest draw)
lang — th (default), en, lo, my or vi: the language of lottery names, prize names, dates and messages
