Discover/Com API
live

Com APIsportstoto.com.my

Access Sports Toto Malaysia lottery results, jackpot amounts, draw calendars, and 4D frequency stats via 4 structured endpoints.

Endpoint health
verified 3d ago
get_draw_results
get_past_results_calendar
get_statistics_4d
get_latest_jackpots
4/4 passing latest checkself-healing
Endpoints
4
Updated
24d ago

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.

Try it

No input parameters required.

api.parse.bot/scraper/b3e69906-58b7-4987-8397-aed16c6ac631/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b3e69906-58b7-4987-8397-aed16c6ac631/get_latest_jackpots' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

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")
All endpoints · 4 totalmissing one? ·

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.

Input

No input parameters required.

Response
{
  "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.

Reliability & maintenanceVerified

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.

Last verified
3d ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • 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_calendar across months and fetching each draw via get_draw_results
  • Analyse which 4-digit numbers appear most frequently using the ranked times_hit data from get_statistics_4d
  • Send push notifications when jackpot amounts from get_latest_jackpots cross 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 draws arrays from get_past_results_calendar for any target year and month
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does Sports Toto have an official developer API?+
Sports Toto does not publish an official public developer API or documented data feed. This Parse API provides structured access to the same lottery data available on sportstoto.com.my.
What does `get_draw_results` return and how do I get a valid draw number?+
It returns a full result set for a single draw identified by a 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?+
Not currently. The API returns winning numbers and prize amounts per draw, but does not offer a dedicated ticket-validation endpoint where you submit a number and receive a prize match result. You can fork this API on Parse and revise it to add that lookup endpoint.
How current is the jackpot and results data?+
Jackpot amounts returned by 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.
Does the API cover Sports Toto game types beyond the ones listed, such as ToTo 6/49 or Da Ma Cai results?+
Not currently. The API covers Supreme Toto 6/58, Power Toto 6/55, Star Toto 6/50, Toto 4D, 5D, 6D, and 4D Jackpot as published on sportstoto.com.my. Da Ma Cai and Magnum are separate operators and are not included. You can fork this API on Parse and revise it to add endpoints targeting other Malaysian lottery operators.
Page content last updated . Spec covers 4 endpoints from sportstoto.com.my.
Related APIs in EntertainmentSee all →
bet.hkjc.com API
Check the latest Hong Kong Jockey Club Mark Six lottery results with prize breakdowns and view historical frequency statistics for all 49 numbers to analyze winning patterns. Find out when the next draw is scheduled and see detailed information about completed draws.
lotterypost.com API
Check daily lottery results and jackpot amounts across 20+ US states and multi-state games, plus browse historical drawing data to track past winners and prize trends. Quickly compare results from multiple states or look up specific games all in one place.
powerball.com API
Check the latest Powerball drawing results, historical winning numbers, current jackpot amounts, and prize information all in one place. Browse past draws by date, view odds and prize breakdowns, and explore stories from winners to stay informed about your favorite lottery game.
megamillions.com API
Check the latest Mega Millions winning numbers and jackpot amounts, browse historical drawings, and discover the top jackpots across participating lottery states. Stay updated on lottery results and track winning combinations whenever you need them.
usamega.com API
Check the latest Mega Millions and Powerball results, jackpot amounts, and winning odds all in one place. Analyze drawing details and tax implications to make smarter lottery decisions.
lotteryusa.com API
Check the latest winning numbers and jackpot amounts across all US lotteries, and view detailed prize breakdowns by state and game. Stay updated on lottery results instantly without visiting multiple lottery websites.
calottery.com API
Check the latest California Lottery results for Powerball and Mega Millions, including up to 120 recent draws from 2025 and historical data for all available games. Search past winning numbers and game information across California's lottery draw games.
nylottery.ny.gov API
Access New York Lottery draw results, historical winning numbers, and scratch-off game information. Retrieve number frequency statistics, search for nearby retailers, and browse recent winners across all available games.