Skip to content

Lottery Draw (simple version)

Informations

The simple version allows retrieving lotto numbers in the form of a string. Each number is separated by a space. The special numbers are placed after the regular numbers. The downside is that the position of the special numbers must be deduced based on the definition of the lottery (more information Api/Lottery).

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/snumbers

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/snumbers

Response

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

Get latest draw of lottery

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

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/snumbers

Response

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

Get specific draw lottery

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

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/snumbers

Response

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