Loterías API

v1.0.1
com.loteriasapi/loterias Checked 8 hours ago Published 13 days ago

Spanish lottery results, next draws, number checks and stats (Euromillones, Primitiva, Navidad).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_games List lottery games

List the Spanish state lottery games covered (slug and name). Use the slug as the "game" argument of the other tools.

get_latest_results Get latest lottery results

Get the most recent official results (draw date, winning combination, complementary numbers and jackpot when applicable) of one game, newest first. Use it for questions like "what were the last Euromillones numbers?". Returns up to the 3 most recent draws.

ParameterTypeDescription
game *stringGame slug. Call list_games to see them all. Example: "euromillones".
limitintegerHow many recent draws to return (1-3).

get_next_draw Get the next lottery draw

Get the next scheduled draw of one game: date, status and announced jackpot when available. Use it for "when is the next Primitiva draw and how much is the jackpot?".

ParameterTypeDescription
game *stringGame slug. Call list_games to see them all. Example: "euromillones".

check_numbers Check numbers against a draw

Check whether a set of numbers won in one of the 3 most recent draws of a game (default: the latest). For "nacional" the numbers are décimo numbers (up to 5 digits, at most 5, pass them as strings to keep leading zeros, e.g. "01755"). For the other games pass the main numbers and, when the game has them, the extra numbers (stars, reintegro, clave...). Returns matches, whether it is a winner and the prize. Only the 3 most recent draws can be checked.

ParameterTypeDescription
game *stringGame slug. Call list_games to see them all. Example: "euromillones".
numbers *arrayMain numbers to check (nacional: décimo numbers, up to 5 digits).
drawDatestringOptional draw date (YYYY-MM-DD). Must be one of the 3 latest draws; defaults to the latest.
extraNumbersarrayOptional extra numbers: Euromillones stars, reintegro in Primitiva/Bonoloto, etc.

get_public_statistics Get aggregated game statistics

Aggregated statistics of a game over its last 2000 draws: most and least frequent numbers, longest absences, even/odd split, sum range and top pairs. Available for: primitiva, bonoloto, euromillones, gordo, eurodreams, lototurf. Covers the last 2000 draws only; no per-number tables or custom periods.

ParameterTypeDescription
game *stringGame slug. Call list_games to see them all. Example: "euromillones".