Discover/De5 API
live

De5 APIi49.de5.net ↗

Fetch latest and historical Mark Six draw results for Hong Kong, New Macau, and Old Macau lotteries, plus picture gallery listings, via the i49.de5.net API.

Endpoint health
verified 3h ago
get_latest_draw
list_draw_history
list_pictures
3/3 passing latest checkself-healing
Endpoints
3
Verified account required
Updated
3h ago

What is the De5 API?

The i49.de5.net API exposes 3 endpoints covering Mark Six-style lottery draw data from Hong Kong, New Macau, and Old Macau sources. The get_latest_draw endpoint returns the most recent draw for any supported lottery, including all 7 ball numbers with colour, zodiac sign, and five-element attributes, as well as the scheduled next draw time. Historical results and a paginated picture gallery round out the available data.

This call costs1 credit / call— charged only on success
Try it
Which lottery to read.
→ api.parse.bot/scraper/60ddf69e-dd7a-4e23-994c-9a0933982a2b/<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/60ddf69e-dd7a-4e23-994c-9a0933982a2b/get_latest_draw?lottery=hk' \
  -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 i49-de5-net-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: i49 Lottery Results SDK — bounded, re-runnable."""
from parse_apis.i49_de5_net_api import I49Lottery, Lottery, PictureGallery, InputFormatInvalid

client = I49Lottery()

# Fetch the latest Hong Kong draw and inspect the winning numbers.
try:
    latest = client.draws.latest(lottery=Lottery.HK)
except InputFormatInvalid as e:
    print(f"Invalid lottery input: {e.message}")
    raise
print(f"Period {latest.period} drawn {latest.draw_time}")
for ball in latest.numbers:
    print(f"  #{ball.number} {ball.color} {ball.zodiac} {ball.element}")
print(f"  Special: #{latest.special_number.number} {latest.special_number.color}")
print(f"  Next draw: {latest.next_draw_time}")

# Browse recent historical draws for New Macau, capped at 5.
for draw in client.historical_draws.list(lottery=Lottery.NEW_MACAU, limit=5):
    nums = ", ".join(str(b.number) for b in draw.numbers)
    print(f"{draw.period} ({draw.draw_date}): {nums} + {draw.special_number.number}")

# Page through the HK picture gallery, taking the first 3 images.
for pic in client.pictures.list(gallery=PictureGallery.HK, limit=3):
    print(f"{pic.name} ({pic.year}) {pic.width}x{pic.height} — {pic.image_url}")

print("exercised: draws.latest / historical_draws.list / pictures.list")
All endpoints · 3 totalmissing one? ·

Returns the most recent draw for one lottery: period number, draw time, the six main numbers and the special number (each with ball colour, zodiac and five-element attribute), and the scheduled next draw time. One request per call. Times are site-local (Asia/Shanghai) formatted as YYYY-MM-DD HH:MM:SS; next_draw_time_raw keeps the site's original Chinese text including the weekday. An unrecognised lottery code is rejected with a stale_input error.

Input
ParamTypeDescription
lotterystringWhich lottery to read.
Response
{
  "type": "object",
  "fields": {
    "period": "draw period number string, e.g. 2026105",
    "lottery": "lottery code as passed (hk, new_macau, old_macau)",
    "numbers": "array of 6 main balls, each {number (integer), color (red|blue|green), zodiac (Chinese zodiac), element (five-element attribute)}",
    "draw_time": "draw timestamp YYYY-MM-DD HH:MM:SS (site local time)",
    "lottery_name": "site's Chinese display name of the lottery",
    "next_draw_time": "scheduled next draw YYYY-MM-DD HH:MM:SS (seconds are 00 as the site gives minutes only)",
    "special_number": "the special (7th) ball in the same shape as numbers[*]",
    "next_draw_time_raw": "site's original next-draw text including weekday"
  },
  "sample": {
    "data": {
      "period": "2026105",
      "lottery": "hk",
      "numbers": [
        {
          "color": "blue",
          "number": 31,
          "zodiac": "鼠",
          "element": "水"
        },
        {
          "color": "red",
          "number": 23,
          "zodiac": "猴",
          "element": "水"
        },
        {
          "color": "red",
          "number": 34,
          "zodiac": "鸡",
          "element": "金"
        },
        {
          "color": "green",
          "number": 43,
          "zodiac": "鼠",
          "element": "金"
        },
        {
          "color": "red",
          "number": 29,
          "zodiac": "虎",
          "element": "土"
        },
        {
          "color": "red",
          "number": 8,
          "zodiac": "猪",
          "element": "木"
        }
      ],
      "draw_time": "2026-10-03 21:35:55",
      "lottery_name": "香港彩",
      "next_draw_time": "2026-10-06 21:35:00",
      "special_number": {
        "color": "blue",
        "number": 48,
        "zodiac": "羊",
        "element": "火"
      },
      "next_draw_time_raw": "2026年10月06日 21:35(星期二)"
    },
    "status": "success"
  }
}

About the De5 API

Draw Data Coverage

The API supports three lotteries via a shared lottery parameter: hk (Hong Kong), new_macau, and old_macau. The get_latest_draw endpoint returns the most recent draw's period number, draw_time in Asia/Shanghai local time, six main numbers and one special_number. Each ball object includes number (integer), color (red, blue, or green), zodiac (Chinese zodiac animal), and element (one of the five traditional elements). The response also includes next_draw_time and next_draw_time_raw, the latter preserving the site's original weekday text.

Historical Results

The list_draw_history endpoint returns all draws the site lists for the current year in a single response, ordered newest first. At the time this API was built, that represented 105 draws for the Hong Kong lottery and 277 draws each for the two Macau lotteries. Each draw in the draws array carries period, draw_date (YYYY-MM-DD), six numbered balls with color and zodiac, and the special_number. The total field tells you the count of draws returned without needing to count the array yourself. History is scoped to the current year; prior years are not listed on the source site.

Picture Gallery

The list_pictures endpoint pages through the site's image gallery — categories include 跑狗图 and 四不像 tip-sheet images. Pass lottery as either hk or macau and a 1-based page integer. The site fixes page size at 10 pictures regardless of any size request; iterate while has_more is true. Each picture record includes picture_id, name, picture_type_id, classify_id, year, image_url, and big_image_url, giving you both thumbnail and full-size URLs.

Reliability & maintenanceVerified

The De5 API is a managed, monitored endpoint for i49.de5.net — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when i49.de5.net 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 i49.de5.net 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
3h ago
Latest check
3/3 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
  • Track the most recent Hong Kong Mark Six draw numbers and ball colours in real time using get_latest_draw.
  • Build a results archive for any supported lottery by ingesting all draws from list_draw_history.
  • Display Chinese zodiac and five-element annotations alongside each drawn ball for astrological lottery analysis.
  • Show countdown or scheduling data using next_draw_time from the latest draw response.
  • Aggregate win-frequency statistics across the current year's 105 Hong Kong or 277 Macau draw records.
  • Sync tip-sheet images (跑狗图) from the picture gallery by iterating list_pictures with the hk or macau lottery parameter.
  • Compare special_number distributions across hk, new_macau, and old_macau for cross-lottery analysis.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does i49.de5.net offer an official developer API?+
No. The site does not publish a public developer API or documented data feed. The i49.de5.net API on Parse is the structured access point for this data.
What does get_latest_draw return for each ball, and how is the special number different from the main numbers?+
Each of the six main balls and the special_number share the same object shape: an integer number, a color (red, blue, or green), a Chinese zodiac animal, and a five-element attribute. The special_number is structurally identical to the main balls but is the 7th drawn number in the Mark Six format, returned as a separate top-level field rather than inside the numbers array.
Does list_draw_history cover draws from previous years?+
No. The endpoint returns only draws listed for the current year on the source site — up to 105 for Hong Kong and 277 for each Macau lottery at build time. Multi-year historical data is not currently covered. You can fork this API on Parse and revise it to add an endpoint targeting prior-year history pages if the source exposes them.
Can I retrieve more than 10 pictures per page from list_pictures?+
The page size is fixed at 10 by the source site and cannot be changed by any parameter. To retrieve more pictures, increment the page parameter and continue while has_more is true. Requesting a different page size is not currently supported. You can fork this API on Parse and revise it if that constraint changes on the source.
Are draw times in UTC or local time?+
All timestamps — draw_time, next_draw_time, and next_draw_time_raw — are in Asia/Shanghai local time (UTC+8) as provided by the source site. The API does not convert them to UTC. Account for the UTC+8 offset in any time-zone-aware application.
Page content last updated . Spec covers 3 endpoints from i49.de5.net.
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.
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.
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.
sportstoto.com.my API
Access Sports Toto Malaysia lottery jackpots, draw results, and past results calendars. Retrieve winning numbers, prize amounts, and comprehensive 4D frequency statistics for historical analysis.
betfred.co.za API
Check the latest Nifty 50 lottery draw results from Betfred South Africa and browse through historical winning numbers for each daily draw variant. Access current outcomes and paginated past results to track your lottery game history whenever you need it.
stats24.com API
Get real-time football match predictions from stats24.com to identify games most likely to end in a draw. Use this data to inform your betting decisions or analyze match outcomes across multiple football competitions.
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.
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.