Skip to content

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

curl -H 'X-Api-Token: MY_SECRET_TOKEN' \
    https://api.lotteryresultsapi.com/lottery/fr_lotto/draw/numbers

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

curl -H 'X-Api-Token: MY_SECRET_TOKEN' \
    https://api.lotteryresultsapi.com/lottery/fr_lotto/draw/latest/numbers

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

curl -H 'X-Api-Token: MY_SECRET_TOKEN' \
    https://api.lotteryresultsapi.com/lottery/fr_lotto/draw/2023-01-02/numbers

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 },
    ]
}