Com APIsportstoto.com.my ↗
Access Sports Toto Malaysia lottery results, jackpot amounts, draw calendars, and 4D frequency stats via 4 structured endpoints.
What is the Com API?
This API exposes 4 endpoints covering Sports Toto Malaysia lottery data, including live jackpot estimates, full draw results, monthly draw calendars, and 4D frequency statistics. The get_draw_results endpoint returns winning numbers and prize amounts across six game types — Toto 4D, 5D, 6D, 4D Jackpot, Power Toto 6/55, and Supreme Toto 6/58 — for any valid draw number.
No input parameters required.
curl -X GET 'https://api.parse.bot/scraper/b3e69906-58b7-4987-8397-aed16c6ac631/get_latest_jackpots' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace sportstoto-com-my-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: Sports Toto Malaysia SDK — lottery results, jackpots, and statistics."""
from parse_apis.sports_toto_malaysia_api import SportsToto, DrawNotFound
client = SportsToto()
# Get current jackpot amounts across all games
status = client.jackpotstatuses.get()
print(f"Current draw: {status.draw_no}")
for jp in status.jackpots:
print(f" {jp.game}: {jp.amount}")
# Look up the draw calendar for a specific month
calendar = client.drawcalendars.get(month=5, year=2026)
print(f"\nDraws in {calendar.month}/{calendar.year}: {len(calendar.draws)} total")
first_draw = calendar.draws[0]
print(f" First draw: {first_draw.draw_no} on {first_draw.date}")
# Fetch detailed results for a specific draw
result = client.drawresults.get(draw_no=first_draw.draw_no)
print(f"\nDraw {result.draw_no} ({result.date}):")
print(f" Supreme 6/58 numbers: {result.supreme_6_58}")
print(f" Power 6/55 numbers: {result.power_6_55}")
# Typed error handling for a non-existent draw
try:
client.drawresults.get(draw_no="9999/99")
except DrawNotFound as exc:
print(f"\nDraw not found: {exc.draw_no}")
# Get 4D frequency statistics
stats = client.statistics4ds.get()
print(f"\nTop 3 most frequent 4D numbers:")
for s in stats.statistics[:3]:
print(f" #{s.rank}: {s.number} ({s.times_hit} hits)")
print("\nExercised: jackpotstatuses.get / drawcalendars.get / drawresults.get / statistics4ds.get")
Retrieve the current estimated jackpot amounts for all game types (Supreme Toto 6/58, Power Toto 6/55, Star Toto 6/50, 4D Jackpot) and the current draw number from the homepage. Jackpots update after each draw; amounts are formatted Malaysian Ringgit strings.
No input parameters required.
{
"type": "object",
"fields": {
"draw_no": "string, current draw number (e.g. '6142/26')",
"jackpots": "array of objects with 'game' (string, game name) and 'amount' (string, RM-prefixed amount)"
},
"sample": {
"data": {
"draw_no": "6142/26",
"jackpots": [
{
"game": "Supreme Toto 6/58",
"amount": "RM 10,841,551.59"
},
{
"game": "Power Toto 6/55",
"amount": "RM 9,673,662.08"
},
{
"game": "Star Toto 6/50",
"amount": "RM 3,499,722.24"
},
{
"game": "4D Jackpot",
"amount": "RM 5,222,197.34"
}
]
},
"status": "success"
}
}About the Com API
Jackpots and Draw Results
get_latest_jackpots returns the current estimated jackpot amounts for all four jackpot game types (Supreme Toto 6/58, Power Toto 6/55, Star Toto 6/50, and 4D Jackpot), along with the current draw number in NNNN/NN format. That draw number can be passed directly to get_draw_results, which returns a structured breakdown of results for six game types in a single response. The toto_4d object includes 1st, 2nd, and 3rd prizes plus arrays of special and consolation prize numbers. The power_6_55 and supreme_6_58 objects return the drawn numbers as an array and the jackpot amount as a string.
Historical Draws and Calendars
get_past_results_calendar accepts year and month integer parameters and returns a list of draw objects, each containing a draw_no and a human-readable date string (e.g. 'May 2, 2026'). This is the primary way to enumerate valid draw numbers for any historical period before passing them to get_draw_results. Draw history coverage follows what Sports Toto publishes on its results pages.
4D Frequency Statistics
get_statistics_4d requires no parameters and returns a ranked array of 4-digit numbers ordered by how many times each has appeared as a winning number. Each entry includes rank, number, and times_hit as strings. This dataset covers aggregate historical frequency across all draws recorded by Sports Toto and is useful for pattern analysis or visualisation projects.
The Com API is a managed, monitored endpoint for sportstoto.com.my — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when sportstoto.com.my changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official sportstoto.com.my API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Display live Sports Toto jackpot estimates on a lottery results dashboard using
get_latest_jackpots - Build a historical results archive by iterating
get_past_results_calendaracross months and fetching each draw viaget_draw_results - Analyse which 4-digit numbers appear most frequently using the ranked
times_hitdata fromget_statistics_4d - Send push notifications when jackpot amounts from
get_latest_jackpotscross a user-defined threshold - Compare prize structures across Toto 4D, 5D, and 6D games for a given draw using the structured prize fields in
get_draw_results - Generate a monthly draw schedule by parsing
drawsarrays fromget_past_results_calendarfor any target year and month
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Sports Toto have an official developer API?+
What does `get_draw_results` return and how do I get a valid draw number?+
draw_no string in NNNN/NN format. The response covers six game types: Toto 4D (with 1st, 2nd, 3rd prizes plus special and consolation arrays), Toto 5D, Toto 6D, Power Toto 6/55, Supreme Toto 6/58, and Toto 4D Jackpot amounts. Valid draw numbers can be obtained from get_latest_jackpots for the current draw or from get_past_results_calendar for any historical month.Does the API cover individual ticket checking or number lookup by prize tier?+
How current is the jackpot and results data?+
get_latest_jackpots reflect the estimated figures published on the Sports Toto homepage, which are updated ahead of each draw. Draw results via get_draw_results are available once Sports Toto publishes them after each draw event, typically on the same evening. There is no sub-minute streaming feed.