Lottery Draw
Parameters | Description |
---|---|
date |
Date of the draw lottery in the format YYYY-MM-DD. |
numbers |
List of drawn numbers in the draw, stored as list of objects. |
Routes
Search draws lottery
Route : /lottery/{tag}/draw/numbers
Parameters | Description |
---|---|
tag |
Unique identifier for the lottery. |
sort_number |
|
offset |
Specifies from which element the results should be returned (pagination). |
limit |
Specifies the maximum number of items to return in a single API response (pagination). |
Example
Response
[
{
"date": "2023-01-02",
"numbers": [
{ "special": false, "order": 0, "value": 1 },
{ "special": false, "order": 1, "value": 2 },
{ "special": false, "order": 2, "value": 3 },
{ "special": false, "order": 3, "value": 4 },
{ "special": false, "order": 4, "value": 5 },
{ "special": true, "order": 0, "value": 9 },
]
}
]
Get latest draw of lottery
Route : /lottery/{tag}/draw/latest/numbers
Parameters | Description |
---|---|
tag |
Unique identifier for the lottery. |
sort_number |
Example
Response
{
"date": "2023-01-02",
"numbers": [
{ "special": false, "order": 0, "value": 1 },
{ "special": false, "order": 1, "value": 2 },
{ "special": false, "order": 2, "value": 3 },
{ "special": false, "order": 3, "value": 4 },
{ "special": false, "order": 4, "value": 5 },
{ "special": true, "order": 0, "value": 9 },
]
}
Get specific draw lottery
Route : /lottery/{tag}/draw/{date}/numbers
Parameters | Description |
---|---|
tag |
Unique identifier for the lottery. |
date |
Date of the draw lottery. |
sort_number |
Example
Response
{
"date": "2023-01-02",
"numbers": [
{ "special": false, "order": 0, "value": 1 },
{ "special": false, "order": 1, "value": 2 },
{ "special": false, "order": 2, "value": 3 },
{ "special": false, "order": 3, "value": 4 },
{ "special": false, "order": 4, "value": 5 },
{ "special": true, "order": 0, "value": 9 },
]
}