Embed a live 4D results widget on your site
Lotto4D MY provides a 4d live widget covering 11 houses across Malaysia, Singapore and Cambodia. Site owners can embed 4d result html directly on their pages using a single 4d lotto widget script. This component displays current numbers, past days and the number check tool directly inside your layout.
What the widget shows
The lotto 4d widget for website deployment presents full draw tables directly to your visitors. Lotto4D MY covers 11 houses: Magnum 4D, Da Ma Cai, Sports Toto, Singapore 4D (Singapore Pools), Sabah 88, Sandakan STC, Sarawak Cashsweep, Grand Dragon Lotto (GD Lotto), Perdana Lottery, 9 Lotto and Lucky HariHari. History covers the past 30 days for every house, matching the core display on our 4D lotto live board.
Visitors can also use the built-in number check in the widget. The number check looks up a 4D number across the past 30 days of results. This allows users to inspect winning history across all 11 operators without navigating away from your primary domain.
| Plan | Embeddable widget | White-label widget |
|---|---|---|
| Starter | n/a | n/a |
| Pro | Yes | n/a |
| Business | Yes | Yes |
| Lifetime Site | Yes | n/a |
| Lifetime Pro | Yes | Yes |
Numbers search engines can read
On the widget, results are written into the page HTML before it reaches the browser, so search engines can read the numbers. This makes the embed useful for SEO teams that run result pages. During active sessions, Magnum 4D, Da Ma Cai, Sports Toto, Sabah 88, Sandakan STC, Sarawak Cashsweep, Grand Dragon Lotto, Perdana and Lucky HariHari update number by number while the draw is running. Search bots index the rendered text directly, while visitors follow each prize as operators release individual digits.
Adding it to a page or WordPress
The widget is loaded from /v1/widget.js with a script tag that carries data-key with your pk_live_ key and data-target with the id of the element to fill. It shows the latest results, past days and the number check. Operators can use this instead of a bulky wordpress 4d result plugin to maintain clean page code.
You can embed the live 4D results widget on WordPress or a custom site once the domain is verified. A public key starting with pk_live_ works in the browser and only on domains whose ownership you have verified, either with a DNS TXT record that starts with lotto4dmy-site-verification= followed by your token, or with the file /.well-known/lotto4dmy-verification.txt. In production, a public key is limited to 120 requests per minute per visitor.
<script src="https://lotto4dmy.biz/v1/widget.js" data-key="pk_live_YOUR_PUBLIC_KEY" data-target="#results" defer></script>White-label and which plan you need
Subscription and lifetime plans determine domain limits, draw speed and branding options. Pro costs $60 per month (about RM260): 3 domains, 100,000 requests per month, everything in Starter plus live number-by-number updates during the draw, the number check endpoint and the embeddable widget. Business costs $120 per month (about RM530): 10 domains, 500,000 requests per month, everything in Pro plus a webhook when a result is complete, a white-label widget and priority support.
For teams seeking permanent licenses, Lifetime Site is a one-time payment of $520 (about RM2,290): locked to 1 domain, API and widget, 50,000 requests per month under fair use, source updates for life. Lifetime Pro is a one-time payment of $910 (about RM4,000): locked to 1 domain, white-label widget, 150,000 requests per month, live number-by-number updates and webhook. To select the tier matching your monthly quota, see the plans and prices before integration. Teams can also pair the embed with their own workflow that posts results from the API.
FAQ
Does the widget work on WordPress?
Yes, the widget works on WordPress. Because the widget is a single script tag, it can go into any page that accepts custom HTML, including a WordPress Custom HTML block. You do not need dedicated plugins to display live draws on your posts or pages.
Which plans include the widget?
The embeddable widget is included in the Pro monthly plan and the Lifetime Site plan. Pro costs $60 per month (about RM260) with 3 domains and 100,000 requests per month. Lifetime Site is a one-time payment of $520 (about RM2,290) locked to 1 domain with 50,000 requests per month.
Can I remove the Lotto4D MY branding from the widget?
Yes, you can remove the branding with plans that provide a white-label widget. Business costs $120 per month (about RM530) and includes a white-label widget across 10 domains. Lifetime Pro is a one-time payment of $910 (about RM4,000) and includes a white-label widget locked to 1 domain.