Games GET /api/v1/games
Every game: number rules, which matches win a prize and the draw schedule.
Try it: /api/v1/games
A free, read-only JSON API with the same results as this site: every PCSO national lottery draw from official sources, with its source, retrieval time, verification status and any correction. No key needed to start. Daily files of the whole archive are on Open data.
Base URL: https://bilislotto.com/api/v1. Every response is JSON; dates are Manila dates (PHT, UTC+8), draw times are 14:00, 17:00 or 21:00, and money is in centavos (divide by 100 for pesos). The version is part of the URL: anything that would break a client comes as /api/v2.
curl "https://bilislotto.com/api/v1/draws/latest?game=ultra-lotto-6-58"
# With a key: 10,000 requests a day
curl -H "Authorization: Bearer $LOTTO_API_KEY" "https://bilislotto.com/api/v1/draws/latest?game=ultra-lotto-6-58"const response = await fetch(
"https://bilislotto.com/api/v1/draws/latest?game=ultra-lotto-6-58",
// Leave headers out to use the anonymous limit.
{ headers: { Authorization: `Bearer ${process.env.LOTTO_API_KEY}` } },
);
if (response.status === 429) {
const wait = Number(response.headers.get("Retry-After"));
throw new Error(`Rate limited, retry in ${wait} s`);
}
const { data } = await response.json();
for (const draw of data) {
console.log(draw.game_name, draw.date, draw.numbers.join("-"));
}import os
import requests
response = requests.get(
"https://bilislotto.com/api/v1/draws",
params={"game": "3d-lotto", "from": "2026-11-01", "to": "2026-11-07"},
headers={"Authorization": f"Bearer {os.environ['LOTTO_API_KEY']}"},
timeout=10,
)
response.raise_for_status()
body = response.json()
for draw in body["data"]:
print(draw["date"], draw["slot"], draw["numbers"])
print(body["pagination"]["next"]) # None on the last pageThe full description is an OpenAPI 3.1 document: /api/v1/openapi.json — import it into Postman, Insomnia or a client generator.
| Access | How | Limit |
|---|---|---|
| Anonymous | No key | 60 requests per hour per IP |
| Free key | E-mail and site address | 10,000 requests per day (resets at midnight PHT) |
| Open data | Files on /data/ | None: whole archive as JSON and CSV, updated daily |
Send the key in a header, never in the URL: Authorization: Bearer lrph_…. A request over the limit gets 429 Too Many Requests with Retry-After (seconds). Responses served from our CDN cache do not count. Browsers can call the API directly: CORS is open to every origin.
GET /api/v1/gamesEvery game: number rules, which matches win a prize and the draw schedule.
Try it: /api/v1/games
GET /api/v1/draws/latestThe latest public result of every game, or of one game.
| Parameter | Type | Description |
|---|---|---|
gamequery | ultra-lotto-6-58 | grand-lotto-6-55 | super-lotto-6-49 | mega-lotto-6-45 | lotto-6-42 | 6d-lotto | 4d-lotto | 3d-lotto | 2d-lotto | One game; all games when left out. |
GET /api/v1/drawsPublic results filtered by game, dates and draw time, newest first by default. Paginated: up to 500 per page; follow `pagination.next`. For the whole archive, the daily files on /data/ are faster.
| Parameter | Type | Description |
|---|---|---|
gamequery | ultra-lotto-6-58 | grand-lotto-6-55 | super-lotto-6-49 | mega-lotto-6-45 | lotto-6-42 | 6d-lotto | 4d-lotto | 3d-lotto | 2d-lotto | Game slug, see GET /games. |
fromquery | date | First date, inclusive. |
toquery | date | Last date, inclusive. |
slotquery | 14:00 | 17:00 | 21:00 | Draw time, Asia/Manila (UTC+8). |
orderquery | desc | ascdefault desc | By date and draw time. |
pagequery | integerdefault 1 | |
per_pagequery | integerdefault 100 |
Try it: /api/v1/draws?game=3d-lotto&from=2026-11-01&to=2026-11-07&per_page=50
GET /api/v1/draws/{date}Every public result of one Manila date, by draw time.
| Parameter | Type | Description |
|---|---|---|
datepath, required | date | Manila date, YYYY-MM-DD. |
Try it: /api/v1/draws/2026-11-22
GET /api/v1/draws/{date}/{draw}One result, addressed like its page: game slug and draw time.
| Parameter | Type | Description |
|---|---|---|
datepath, required | date | Manila date, YYYY-MM-DD. |
drawpath, required | string | Game slug and draw time: 2pm, 5pm or 9pm, as in the result page URL. |
GET /api/v1/numbers/{game}/{combo}Every draw with exactly this combination, how often that is expected, and draws where it won a lower prize. The same data as the /numbers/ page.
| Parameter | Type | Description |
|---|---|---|
gamepath, required | ultra-lotto-6-58 | grand-lotto-6-55 | super-lotto-6-49 | mega-lotto-6-45 | lotto-6-42 | 6d-lotto | 4d-lotto | 3d-lotto | 2d-lotto | Game slug, see GET /games. |
combopath, required | string | Numbers separated by dashes. Digit games keep the order (4-9-2); lotto numbers in any order (05-14-25-38-44-52). |
Try it: /api/v1/numbers/3d-lotto/4-9-2
GET /api/v1/stats/{game}Frequencies, gaps, sums, pairs and jackpot runs over the last 30, 90 or 365 days or the whole archive, each with the value expected for fair draws. Past draws only: not a prediction.
| Parameter | Type | Description |
|---|---|---|
gamepath, required | ultra-lotto-6-58 | grand-lotto-6-55 | super-lotto-6-49 | mega-lotto-6-45 | lotto-6-42 | 6d-lotto | 4d-lotto | 3d-lotto | 2d-lotto | Game slug, see GET /games. |
windowquery | 30d | 90d | 365d | alldefault all | Last 30, 90 or 365 days, or the whole archive. |
GET /api/v1/jackpotsLotto games: the latest jackpot, the current run of draws without a winner and every won jackpot since winner counts were recorded.
| Parameter | Type | Description |
|---|---|---|
gamequery | ultra-lotto-6-58 | grand-lotto-6-55 | super-lotto-6-49 | mega-lotto-6-45 | lotto-6-42 | One lotto game; all lotto games when left out. |
Every endpoint that returns draws uses this record; the open data files use it too. Only results shown on the site are returned: published, confirmed or under review.
| Field | Type | Meaning |
|---|---|---|
id | string | Stable identifier: game, date and draw time. |
game | string | |
game_name | string | |
date | date | Calendar date in Asia/Manila (PHT). |
slot | 14:00 | 17:00 | 21:00 | Draw time, Asia/Manila (UTC+8). |
numbers | array of integer | Numbers in the order they were drawn. For digit games (2D, 3D, 4D, 6D) the order is part of the result. |
jackpot_centavos | integer or null | Jackpot (lotto) or top prize in centavos (divide by 100 for pesos); null when PCSO has not announced it or older records lack it. |
winners | integer or null | Jackpot winners; null when unknown (records before 2024-11-08). |
status | published | confirmed | needs_review | published: from an official source; confirmed: verified against a second official source or by a person; needs_review: sources disagree, the numbers shown may change. |
source | lottomatik | broadcast | pcso_search | | Where the published numbers came from: LottoMatik, the PCSO live broadcast (entered by hand twice) or the PCSO search page. |
source_retrieved_at | date-time or date-time | When the result was first seen at the source. |
published_at | date-time or date-time | ISO 8601 instant (UTC). |
confirmed_at | date-time or date-time | ISO 8601 instant (UTC). |
corrections | array of Correction | A change of numbers that were already public. Every change is logged and marked on the result page. |
url | uri | The result page on the site. |
Every response has a Cache-Control header and an ETag. Send the ETag back in If-None-Match and you get 304 Not Modified while nothing changed: the latest results are fresh for 15 seconds, a past day or draw for 5 minutes (we purge it when a result changes), statistics for 5 minutes.
# The second request returns 304 Not Modified, with no body, until the data changes
curl -i "https://bilislotto.com/api/v1/draws/latest"
curl -i -H 'If-None-Match: "<ETag from the first response>"' "https://bilislotto.com/api/v1/draws/latest"Errors are JSON: {"error": {"status": 404, "code": "not_found", "message": "…"}}. 400 invalid_request: a parameter is wrong or unknown; 401 invalid_key: the key is wrong or revoked; 404 not_found: no public result for that date, draw or game; 429 rate_limited: wait Retry-After seconds; 503 unavailable: try again shortly.
The data is free to use, including commercially, under CC BY 4.0. The one condition: show a credit with a link to Lotto Results PH wherever you show the data. The response field meta.attribution carries the text.
The link is required; its rel attribute is your choice. A plain link, nofollow, sponsored or ugc are all fine. Your key never depends on the link, and we do not check it.
<p>Data: <a href="https://bilislotto.com/">Lotto Results PH</a> (CC BY 4.0)</p><p>Data: <a href="https://bilislotto.com/" rel="nofollow">Lotto Results PH</a> (CC BY 4.0)</p>The results are PCSO's. We collect them from official sources (LottoMatik and the PCSO live broadcast) and check them; we are not affiliated with PCSO.
10,000 requests a day instead of 60 an hour. Lost your key? Ask again with the same e-mail and site: the new key replaces the old one.