Lottery Draw Information Query
Query current lottery draw numbers, sales amount, and winning counts and prize money for each prize level by lottery type, draw number, or date, providing comprehensive draw data.
Documentation
API Capabilities
The Lottery Draw Information Query API allows developers to obtain detailed current draw information based on a specified lottery code, draw number, or draw date. The returned data includes not only the basic winning numbers but also the total sales amount for the current period, the number of winning tickets for each prize level, and the corresponding prize money per ticket, meeting comprehensive draw data display needs.
Request and Response
Request parameters include the lottery identifier (e.g., type as ssq for Double Color Ball) and the specific draw number (drawNo). In the returned JSON data, code and name represent lottery information, no and date are the draw number and draw date, the number field displays the current winning numbers, saleAmount is the sales amount, and the levels array details the winning situation for each prize level.
Use Cases
Suitable for lottery information display websites, convenience service apps, or lifestyle information platforms. It can be used to provide users with historical draw data queries, current draw details display, and prize amount verification services.
Usage Instructions and Limitations
This API only provides public lottery draw information queries and does not offer any form of lottery prediction, number recommendation, or betting guidance services. Due to network or data source reasons, draw data may be delayed or subject to subsequent corrections. For all prize redemption operations and rule interpretations, please always refer to the latest official announcements published by the national lottery issuing authorities.
Integration Examples
Includes ready-to-use Shell, Python, Go, Java, and PHP examples for direct integration.
Request Example
{
"type": "ssq",
"drawNo": "2024068"
}Response Example
{
"code": "ssq",
"name": "双色球",
"no": "2024068",
"date": "2024-06-16",
"number": "01 02 03 04 05 06 07",
"saleAmount": "380000000",
"levels": []
}Request Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| type | string | ssq |
| drawNo | string | 2024068 |
Response Fields
The fields below are derived from example JSON for integration reference only.
| Path | Type | Sample |
|---|---|---|
| code | string | ssq |
| name | string | 双色球 |
| no | string | 2024068 |
| date | string | 2024-06-16 |
| number | string | 01 02 03 04 05 06 07 |
| saleAmount | string | 380000000 |
| levels | array | [] |