Developer API

Free, read-only JSON endpoints for SKLotto 4D results. There is no key or sign-up — send a GET request to get the latest draw or check a 4-digit number.

Base URL: https://sklotto.com No API key required

Overview

The SKLotto API serves the same live results and archive data used on this website. All endpoints are public, read-only and return UTF-8 JSON.

Numbers are always strings padded to four digits. A prize that has not been drawn yet is returned as "----", and the complete flag tells you whether the draw has finished.

  • Format JSON (UTF-8)
  • Method GET
  • Authentication None
  • Browser CORS Not enabled

Endpoints

Resolve each path against the base URL. Open an endpoint in a new tab to inspect the live response.

GET /api/latest

Latest result

Latest draw, completion flags and the next draw timestamp.

Open endpoint
GET /api/check

Check a number

Matches a 4-digit number against the latest draw or a specific date.

Open endpoint
GET /result.json

Legacy result feed

Original feed kept for existing clients. Cached for 15 seconds.

Open endpoint

Quick start

  1. Send an HTTP GET request to an endpoint. No headers, tokens or cookies are required.
  2. Read the JSON body. Prize fields are four-character strings.
  3. Use complete (or is_today) to know whether today's draw has finished.
  4. Request the endpoint again after the next draw (7:00 PM MY/SG, 8:00 PM KH/VN/TH) for new numbers.

Code examples

Call the API from your server. Browser requests from another domain are blocked because CORS is not enabled.

cURL
curl -s "https://sklotto.com/api/latest"
Node.js (fetch)
const response = await fetch('https://sklotto.com/api/latest');
const draw = await response.json();

if (draw.complete) {
  console.log(draw['1stPrizeNo']);
}
PHP
$json = file_get_contents('https://sklotto.com/api/latest');
$draw = json_decode($json, true);

echo $draw['1stPrizeNo'];

Response fields

Fields returned by /api/latest and /result.json.

Response fields
Field Type Description
id string Draw identifier.
draw_id string Draw identifier (same value as id).
draw_date string Draw date in YYYY-MM-DD format.
1stPrizeNo string First prize number.
2ndPrizeNo string Second prize number.
3rdPrizeNo string Third prize number.
SpecialNo1 … SpecialNo13 string Special prize numbers.
ConsolationNo1 … ConsolationNo10 string Consolation prize numbers.
complete boolean Latest result only. True when all three main prizes are drawn.
is_today boolean Latest result only. True when the draw date is today.
next_draw_ts integer Latest result only. Unix timestamp of the next 7:00 PM MYT draw.
updated_at string Latest result only. Last update time (Y-m-d H:i:s).

Query parameters

Query parameters
Parameter Endpoint Description
lang /api/latest, /api/check Label language: en, ms, zh or km. Defaults to en.
number /api/check Required. Exactly four digits.
on /api/check Optional draw date in YYYY-MM-DD format. Defaults to the latest draw.

Check response

Fields returned by /api/check.

cURL
curl -s "https://sklotto.com/api/check?number=1234&lang=en"
Check response
Field Type Description
number string The four digits that were checked.
won boolean True when the number matches at least one prize.
matches array Each entry has rank (first, second, third, special, consolation) and value.
draw_date string Date of the draw that was checked.
draw_date_label string Localised draw date.
draw_id string Identifier of that draw.

Status codes

Status codes
Code Meaning When it is returned
200 OK The request succeeded.
405 Method Not Allowed A method other than GET or HEAD was used.
422 Unprocessable Entity The number parameter is not exactly four digits.
404 Not Found No draw exists for the requested date.
429 Too Many Requests The per-IP request budget was exceeded. Wait for the Retry-After seconds.
503 Service Unavailable Results are still being updated. Retry in a few seconds.

Caching, limits and fair use

  • Successful responses are cached publicly for 15 seconds — the same as /result.json — so browsers, proxies and CDNs may reuse them. Send another request after the next draw for fresh numbers.
  • Each IP address gets 300 requests per minute on /api/latest and 120 per minute on /api/check. Going over the budget returns HTTP 429 with a Retry-After header.
  • Only GET and HEAD are accepted. Other methods return HTTP 405 with an Allow header.
  • Results are for information only and remain unofficial until confirmed by SuperKing Lotto.

Need help?

If a field is missing or a response looks wrong, contact the team with the endpoint and the exact URL you requested.

Try it

Send a live request to /api/check. The JSON response appears below.

{ }