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 a string.

Routes

Search draws lottery

Route : /lottery/{tag}/draw

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

Response

[
    {
        "date": "2023-01-02",
        "numbers": "1 2 3 4 5 9"
    }
]

Get latest draw of lottery

Route : /lottery/{tag}/draw/latest

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

Response

{
    "date": "2023-01-02",
    "numbers": "1 2 3 4 5 9"
}

Get specific draw lottery

Route : /lottery/{tag}/draw/{date}

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

Response

{
    "date": "2023-01-02",
    "numbers": "1 2 3 4 5 9"
}