4D Results API and MCP Server
A free JSON API and MCP server for 4D results: no sign-up, no key, and licensed CC BY 4.0 for developers and AI assistants to use.
What it is
Results and draw history only; no number recommendations or forecasts. This is a results and data API: it does not sell tickets or accept bets. The API and MCP server return the same official, cross-checked 4D results shown on this site. Both are free and keyless: no sign-up, no API key, no approval needed. Data is licensed Creative Commons Attribution 4.0 (CC BY 4.0): free to reuse, including commercially, with attribution.
REST API
Base URL: https://4dlivetoday.com/api/v1. Every response is JSON with the same envelope: your data plus source, license and a link back to the matching page on this site.
- GET /api/v1
- Index: endpoints, envelope fields, link to this page
- GET /api/v1/latest
- Newest draw per operator, including Perdana's afternoon draw
- GET /api/v1/results/{date}
- Every operator's draw on a date (YYYY-MM-DD, Malaysia time)
- GET /api/v1/operators/{operator}
- One operator's recent draws (?limit=1-30, default 10)
- GET /api/v1/numbers/{number}
- Every draw a 4-digit number won, with prize tier
- GET /api/v1/games/{game}
- Recent results for an operator's other official games
- GET /api/v1/schedule
- Upcoming draw dates (regular and special) and who draws each
- GET /api/v1/openapi.json
- OpenAPI 3.1 description of this API
curl
curl https://4dlivetoday.com/api/v1/latest
curl https://4dlivetoday.com/api/v1/results/2026-09-27
curl "https://4dlivetoday.com/api/v1/operators/magnum?limit=5"
curl https://4dlivetoday.com/api/v1/numbers/0650
curl "https://4dlivetoday.com/api/v1/games/sg_toto?limit=3"
curl https://4dlivetoday.com/api/v1/scheduleExample response (GET /api/v1/latest, trimmed to 2 operators)
{
"data": {
"results": [
{
"operator": "magnum",
"operator_name": "Magnum 4D",
"date": "2026-09-27",
"draw_no": "428/26",
"first": "1063",
"second": "2421",
"third": "5815",
"special": ["6814","7902","4744","2054","0025","4678","9921","4843","1719","0193"],
"consolation": ["1091","8204","4936","1585","5173","5921","0450","0577","5386","3132"],
"status": "checked",
"url": "https://4dlivetoday.com/en/results/2026-09-27"
},
{
"operator": "gd",
"operator_name": "Grand Dragon 4D",
"date": "2026-09-29",
"draw_no": "",
"first": "9071",
"second": "3658",
"third": "9799",
"special": ["9505","3845","7466","4452","7526","7901","5567","6080","2179","1451"],
"consolation": ["0819","6924","2953","9413","4834","9074","4578","9554","1759","1058"],
"status": "checked",
"url": "https://4dlivetoday.com/en/results/2026-09-29"
}
]
},
"source": "4dlivetoday.com",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"attribution": "Results from 4dlivetoday.com (https://4dlivetoday.com), compiled from each operator's official site.",
"generated_at": "2026-09-29T17:40:27.992Z",
"url": "https://4dlivetoday.com/en"
}MCP Server
A remote MCP server at https://4dlivetoday.com/mcp, speaking Streamable HTTP. No sign-in and nothing to install on our side; connect from any MCP-capable AI assistant.
https://4dlivetoday.com/mcp
Tools
| get_latest_results | The newest draw for every operator |
| get_results_by_date | Every operator's draw on a date |
| get_operator_results | One operator's most recent draws |
| lookup_number | Every draw a 4-digit number won, with prize tier |
| get_other_game_results | Recent results of another official game |
| get_draw_schedule | Upcoming draw dates |
Claude Desktop (claude_desktop_config.json, via mcp-remote)
{
"mcpServers": {
"4dlivetoday": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://4dlivetoday.com/mcp"]
}
}
}Claude.ai and Claude Desktop connectors
Settings β Connectors β Add custom connector β paste https://4dlivetoday.com/mcp
Cursor (mcp.json)
{
"mcpServers": {
"4dlivetoday": { "url": "https://4dlivetoday.com/mcp" }
}
}Fair use
Responses are cached at the edge for about 60 seconds; results only change around draw times, so please cache on your side too. Traffic that looks abusive may be rate-limited without notice.
Attribution
The data is licensed CC BY 4.0. If you show or republish it, please credit:
Results from 4dlivetoday.com (https://4dlivetoday.com), compiled from each operator's official site.Source code: GitHub