Lottery Draw Results and History Query
Query official lottery draw results for eight types of welfare and sports lotteries, including Double Color Ball and Super Lotto. Supports retrieving historical winning numbers and times for up to the latest 50 draws.
Documentation
API Capabilities
This API provides query services for China Welfare Lottery and Sports Lottery draw results and historical records. It supports eight common lottery types, including Double Color Ball and Super Lotto. Users can quickly retrieve official winning numbers, draw numbers, and draw times for up to the latest 50 draws by specifying the lottery type and query period. The data structure is clear, making it convenient for developers to quickly integrate into various information query applications.
Request and Response
- Request Parameters: Requires
type(lottery code, e.g., 'ssq' for Double Color Ball) andcount(number of draws to query, maximum 50 draws). - Response Results: Returns JSON data containing the queried
countand specificitemsrecords. Each record includesexpect(draw number),openCode(winning numbers, typically separated by commas and plus signs),name(lottery name), andtime(draw time).
Use Cases
Suitable for convenience service apps, lifestyle information websites, mini-programs, and other scenarios that need to provide users with lottery draw information verification and historical draw record queries.
Usage Instructions and Limitations
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"type": "ssq",
"count": "20"
}Response Example
{
"count": 20,
"items": [
{
"expect": "2026078",
"openCode": "01,02,03,04,05,06+07",
"name": "双色球",
"time": "2026-07-19 21:15:00"
}
]
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | ssq |
| count | string | 20 |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| count | number | 20 |
| items | array | {"expect":"2026078","openCode":"01,02,03,04,05,06+07","name":"双色球","time":"2026-07-19 21:15:00"} |
| items[] | object | {...} |
| items[].expect | string | 2026078 |
| items[].openCode | string | 01,02,03,04,05,06+07 |
| items[].name | string | 双色球 |
| items[].time | string |