Skip to content

API reference

A clear contract for your product.

From the first result to the latest correction.

45 operations on version v1. Every path below starts with https://api.lottevo.com. Paths, summaries and responses are generated from the API’s own OpenAPI document, so they cannot drift from the code.

45 endpoints

Catalogue

GET/v1/lotteriesCatalogue · catalog:read

The catalogue

Try it

Games their operator stopped for good are listed too, with ended_at set and their whole history; filter[status]=active keeps only the games that still draw, filter[status]=ended only the ended ones.

ParameterInDescription
filter[q]queryFree text over the code and every translated name.
filter[continent]queryContinent code, such as EU.
filter[country]queryCountry code, such as RO.
filter[state]queryState code. Most specific location wins.
filter[status]queryactive for the games that still draw, ended for the ones their operator stopped. Both by default.
sortqueryposition, code, next_draw_at, started_at. Prefix with - to reverse.
includequeryschedules, latest_draw, draws, payouts, assets, availability, comma-separated.
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `LotteryResource`

GET/v1/lotteries/{lottery}Catalogue · catalog:read

One game, addressed by its code — plus its last results and its payout table, which are cheap for one game and are what a game's own page shows

Try it
ParameterInDescription
lotterypathThe lottery code

Responses200 `LotteryResource`404

GET/v1/lotteries/{lottery}/scheduleCatalogue · catalog:read

When a game draws: each schedule written out in the language of the request, plus the next few occurrences already resolved to UTC instants so a client does not have to handle DST to build a calendar

Try it

regular is false for a game that draws on irregular days, such as one tied to horse-racing fixtures: it has no timetable, so the schedules, the next draw and the upcoming occurrences are empty.

ParameterInDescription
lotterypathThe lottery code
occurrencesqueryHow many upcoming draws to resolve, at most 25.

Responses200 404

GET/v1/lotteries/{lottery}/payoutsCatalogue · catalog:read

The payout table of a fixed-odds game

Try it

Some games do not split a pool between winners: the prize is a function of the ticket — what was bet on, how many numbers were played, how many matched — so it is the same for every draw and is published here rather than with each result. A game that splits a pool returns an empty list; its money is on the draws.

ParameterInDescription
lotterypathThe lottery code

Responses200 Array of `LotteryPayoutResource`404

GET/v1/continentsCatalogue · catalog:read

The continents that have any lottery. Unpaginated on purpose: there are only a handful of them, and a client building a dropdown should not have to follow a cursor for it

Try it

Responses200 Array of `ContinentResource`

GET/v1/countriesCatalogue · catalog:read

The countries that have any lottery, optionally within one continent. Lists both the countries that own games and those where games are sold, so Cyprus appears for the Greek games

Try it

Responses200 Array of `CountryResource`

GET/v1/statesCatalogue · catalog:read

The states that have any lottery, optionally within one country

Try it

Responses200 Array of `StateResource`

GET/v1/complianceCatalogue · catalog:read

The legal frame of every researched jurisdiction, optionally within one country

Try it

Countries and their states or provinces come in one list, each country followed by its states. A US state carries the federal tax level alongside its own, so it can be read on its own.

Responses200 Array of `JurisdictionComplianceResource`

GET/v1/lotteries/{lottery}/complianceCatalogue · catalog:read

The legal frame of every jurisdiction a lottery is sold in

Try it

A national game lists its country only: which states or provinces sell it is not known for every game, and the country entry says when the rules differ between them.

ParameterInDescription
lotterypathThe lottery code

Responses200 Array of `JurisdictionComplianceResource`404

Draw results

GET/v1/drawsDraws · draws:read

The results feed, newest first, across the whole catalogue or narrowed to a game, a country or a date range. The cursor is what a client re-syncs against; an offset page would be shifted by every draw that lands while it reads

Try it

Results older than the history your plan includes are not listed. meta.history_from is the oldest draw time your key reads (null: no date limit). A range that ends before it comes back as an empty page, not as an error.

ParameterInDescription
filter[lottery]queryLottery codes, comma-separated.
filter[continent]queryContinent code, such as EU.
filter[country]queryCountry code, such as RO.
filter[state]queryState code. Most specific location wins.
filter[from]queryInclusive lower bound on drawn_at, an ISO-8601 instant read as UTC.
filter[to]queryInclusive upper bound on drawn_at.
sortquerydrawn_at or scheduled_at. Defaults to -drawn_at.
includequeryprizes — the categories, opt-in because a page of them is large.
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `DrawResource`

GET/v1/draws/latestDraws · draws:read

The latest result of every game, paginated over games — the board a dashboard renders. A game with no result yet is listed with latest_draw: null

Try it
ParameterInDescription
filter[continent]queryContinent code, such as EU.
filter[country]queryCountry code, such as RO.
filter[state]queryState code. Most specific location wins.
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `LotteryResource`

GET/v1/draws/{draw}Draws · draws:read

One result by id. Ids are stable, and this is the URL a webhook payload points back at. A result older than the history your plan includes is refused with history_not_included

Try it
ParameterInDescription
drawpathThe draw ID

Responses200 `DrawResource`404

GET/v1/lotteries/{lottery}/drawsDraws · draws:read

One game's result history, newest first, as far back as your plan includes. Pages stay equally fast however deep you walk back

Try it

meta.history_from is the oldest draw time your key reads in this game (null: its whole history). A range that ends before it comes back as an empty page, not as an error.

ParameterInDescription
lotterypathThe lottery code
filter[from]queryInclusive lower bound on drawn_at.
filter[to]queryInclusive upper bound on drawn_at.
sortquerydrawn_at or scheduled_at. Defaults to -drawn_at.
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `DrawResource`404

Ticket checking

GET/v1/lotteries/{lottery}/checkDraws · draws:read

Check a ticket against a game's history

Try it

Pass the ticket as numbers=3,11,17,24,38,45 — plus bonus=7 for a game whose bonus is played separately, and refund=3 for one that draws a refund digit (ticket_check.refund) — and get every past draw it matched, newest first. For a number game a draw is listed when it contained at least min_matched of the numbers; for a digit game (Pick 3, Joker, …) when it was an exact or any-order hit, or matched at least min_matched digits by position or in a row from either end. meta.summary counts every outcome over the whole window, and for a game whose operator publishes prizes per draw meta.winnings adds up what the ticket would have won, by currency, at the amounts paid per winner then — gross, as published; complete is false when some draws could not be judged. For a fixed-odds game (Pick 3, keno, fixed-odds lotto bets) name the bet with bet_type — one of the game's ticket_check.bet_types — and optionally stake, and every draw is priced at the game's payout table instead: meta.bet says the stake, currency and whether the amounts are before withholdings. The window is range (3months, 6months, 1year, 2years, all) or from/to, and never reaches back before the game took its current format nor further than your plan includes (meta.window).

ParameterInDescription
lotterypathThe lottery code
numbersqueryThe ticket’s numbers, comma-separated. Digit games take one digit per position.
bonusqueryBonus numbers played separately, where the game has them.
min_matchedqueryOnly list draws with at least this many matches. Defaults to half the ticket.
rangequery3months, 6months, 1year, 2years or all. Use either this or from/to, not both.
fromqueryCheck from this instant. History also depends on your plan.
toqueryCheck up to this instant.
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Array of `DigitTicketMatchResource` Array of `TicketMatchResource`404 422

POST/v1/lotteries/{lottery}/checkDraws · draws:read

Check up to twenty tickets against a game's history at once

Try it

Send tickets — each {"numbers": [...], "bonus": [...]}, plus bet_type and stake for a fixed-odds game — with the same window as a single check (range or from/to), and get each ticket's summary: how many draws it matched, and how. The draws themselves are listed by the single-ticket check. Counts as one request. A game with a very long history may need a shorter window for many tickets at once (ticket_check_too_large).

ParameterInDescription
lotterypathThe lottery code
ticketsqueryBody field: up to 20 tickets, each {"numbers": [...], "bonus": [...]}.

Responses200 404 422

Jackpots

GET/v1/lotteries/{lottery}/jackpotsCatalogue · catalog:read

How a game's announced jackpot has moved

Try it

Every distinct figure the operator announced for an upcoming draw, newest first, with the span over which it stood unchanged. A figure revised during the week becomes a new entry, so the list shows how the estimate grew toward each draw. The history starts when we began recording it.

ParameterInDescription
lotterypathThe lottery code
per_pagequeryPage size, at most 25. It can only shrink a page.
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `JackpotSnapshotResource`404

Changes & revisions

GET/v1/draws/changesDraws · draws:read

Everything that happened to the results, in order

Try it

The feed to keep a copy of the results in step without re-reading them. Each entry says what happened — published, updated (money filled in later: the jackpot, the prize categories), revised (the numbers or the draw time corrected) or deleted — which fields it touched, and carries the draw as it stands now; a deleted draw carries only its id. Start from filter[since], then follow next_cursor from one request to the next. Entries older than the retention window are no longer listed, except corrections; a client further behind than that re-reads the results feed.

ParameterInDescription
filter[since]queryStart of the change window, an ISO-8601 instant. Then follow the cursor.
filter[lottery]queryLottery codes, comma-separated.
per_pagequeryPage size, at most 100 (the default).
cursorqueryThe cursor from links.next. There is no offset paging.

Responses200 Paginated set of `DrawChangeResource`

GET/v1/draws/{draw}/revisionsDraws · draws:read

The corrections of one result, oldest first

Try it

Each entry holds the fields that were corrected, with their values before and after. A result that was never corrected has none.

ParameterInDescription
drawpathThe draw ID

Responses200 Array of `DrawRevisionResource`404

Data quality

GET/v1/lotteries/{lottery}/data-qualityData quality · status:read

How complete and how fast a game's results have been

Try it

Over the last 30 days: how many draws the game's schedule called for, how many were published, how many the operator did not hold, and how many are missing — plus how long after each draw's scheduled time its result was available, as the median, the 90th percentile and the slowest. Recomputed once a day. A draw from the last three days with no result yet is left out until its result comes in, the operator is known not to have held it, or the three days pass: a draw skipped for a holiday is often only certain once the next one is out. completeness is null for a game drawn on a calendar no fixed schedule describes; data is null for a game that has not been measured yet.

ParameterInDescription
lotterypathThe lottery code

Responses200 `LotteryDataQualityResource`404

GET/v1/lotteries/{lottery}/freshnessData quality · status:read

How current a game's results are right now

Try it

Whether the latest scheduled draw has its result (current), is still within the time results normally take (awaiting) or is late and flagged as missing (overdue); when the game's results last changed here, which is not the same as when it was last drawn; how long after its scheduled time the latest result arrived, against the usual delay; and how many results were corrected after publication recently. Computed on every request, unlike the daily data-quality figures.

ParameterInDescription
lotterypathThe lottery code

Responses200 `LotteryFreshnessResource`404

Statistics

GET/v1/lotteries/{lottery}/generateStatistics · statistics:read

Generate tickets for a game

Try it

Every ticket is valid for the game and distinct from the others, and every ticket the filters allow is equally likely unless weighting says otherwise. No filter changes the chance of winning: they choose which tickets you play, not how likely they are to come up.

ParameterInDescription
lotterypathThe lottery code
countqueryHow many tickets, 1 to 50. Defaults to 5.
sizequeryNumbers per ticket, within meta.sizes. Defaults to the most allowed.
seedqueryRepeats an earlier result: the meta.seed it returned.
oddqueryExactly this many odd numbers per ticket.
lowqueryExactly this many numbers from the lower half of the pool (meta.low).
rangesqueryExact counts from stretches of the pool: 1-10:2,11-20:1.
includequeryNumbers every ticket holds, comma-separated.
excludequeryNumbers no ticket holds, comma-separated.
sum_minqueryLowest sum of a ticket; sum_max is the highest.
max_consecutivequeryLongest run of neighbours; also max_same_ending and max_per_decade.
never_drawnqueryOnly tickets no past draw held.
avoid_popularqueryLeave out the patterns many players mark.
numbers_fromqueryhot, cold or overdue: draw only from the top of that ranking over window.
weightingqueryhot or cold: favour the most or least drawn numbers. A preference, not a better chance.
windowqueryday … year, or all_time. Read meta.available_windows first.

Responses200 404 422

GET/v1/lotteries/{lottery}/statisticsStatistics · statistics:read

The three rankings for a game: most drawn, least drawn, and longest without appearing

Try it

Historical analysis of past results, not a prediction of future ones.

ParameterInDescription
lotterypathThe lottery code
combo_sizequerySingle numbers, pairs or triples. Read meta.available_combo_sizes first.
windowqueryday … year, or all_time. Read meta.available_windows first.
limitqueryRows per ranking, at most 25.

Responses200 404

GET/v1/lotteries/{lottery}/statistics/distributionsStatistics · statistics:read

How a game's past draws are spread, each figure beside what a fair draw would have produced

Try it

Historical analysis of past results, not a prediction of future ones. Counted over the main numbers of the draws made with the game's current number pool, within the window; meta says which draws that was.

ParameterInDescription
lotterypathThe lottery code
windowqueryday … year, or all_time. Read meta.available_windows first.

Responses200 404 422

Event delivery

GET/v1/streamStream · stream:read

Results as they land, as Server-Sent Events

A new result reaches an open stream within a few seconds of being published — well inside what "live" means for a game that draws every four minutes at best.

ParameterInDescription
filter[lottery]queryLottery codes to follow. With no filter the stream carries your entitlement.
cursorqueryResume point. Last-Event-ID is honoured and takes precedence.

Responses200

GET/v1/webhooksWebhooks · webhooks:manage

The subscriptions this key holds

Responses200 Array of `WebhookEndpointResource`

POST/v1/webhooksWebhooks · webhooks:manage

Subscribe. The signing secret comes back on this response only — afterwards it is encrypted at rest and can be rotated but not read

Responses201 `WebhookEndpointResource`422

GET/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage

Show one subscription

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 `WebhookEndpointResource`404

PATCH/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage

Change what a subscription listens to, or switch it back on after it was disabled for being unreachable

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 `WebhookEndpointResource`404 422

DELETE/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage

Unsubscribe for good, taking the delivery history with it

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 404

POST/v1/webhooks/{webhookEndpoint}/rotate-secretWebhooks · webhooks:manage

Replace the signing secret, returning the new one once. The old one stops verifying immediately — rotate when it has leaked, not on a schedule

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 `WebhookEndpointResource`404

GET/v1/webhooks/{webhookEndpoint}/deliveriesWebhooks · webhooks:manage

What this subscription has been sent, newest first. Filterable by filter[status]=dead — which is the dead-letter list, and the only thing most clients ever look at

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 Paginated set of `WebhookDeliveryResource`404

POST/v1/webhooks/{webhookEndpoint}/deliveries/{uuid}/replayWebhooks · webhooks:manage

Offer a delivery again — the recovery path for a receiver that was down longer than the backoff lasts

The uuid is kept, so a receiver that DID process the original still recognises it as the same event and can drop it. Only a delivery that is no longer being retried — dead, or already delivered — can be offered again.

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID
uuidpath

Responses202 404 422

POST/v1/webhooks/{webhookEndpoint}/testNo scope required

Send the receiver a signed webhook.ping now and answer with what it did. Nothing is logged and the failure streak is untouched: a test is for whoever is looking at the result

ParameterInDescription
webhookEndpointpathThe webhook endpoint ID

Responses200 `WebhookTestResource`404

Bulk exports

POST/v1/exportsExports · exports:read

Ask for a bulk export

Of one lottery (lottery) this key is entitled to, as csv or ndjson, gzip-compressed. The whole history the plan includes is written, oldest draw first.

Responses200 422

GET/v1/exports/{export}Exports · exports:read

Show one export, with its download link once it is ready

ParameterInDescription
exportpathThe export ID

Responses200 `ExportResource`404

GET/v1/exportsExports · exports:read

List this key's exports

The latest 100, newest first. meta says how many exports the account may still ask for this UTC month, across all its keys.

Responses200 Array of `ExportResource`

Account

GET/v1/accountNo scope required

What the calling key is: its account's plan, its scopes and how many requests the account has made today. The integration smoke test — a client can verify a key works without needing a scope, and read its own ceiling from the answer

Try it

Responses200

AlertRule

GET/v1/alertsNo scope required

The alerts this key holds

Try it

Responses200 Array of `AlertRuleResource`

POST/v1/alertsNo scope required

Create an alert. It goes off at most once per draw, by email to the account, as alert.triggered to one of the key's webhook subscriptions, or both

jackpot_above needs threshold_amount and threshold_currency, rollover_count is for rollover_streak. A draw_published alert sent by email must name its lotteries, and none of them may be a game drawn every few minutes.

Responses201 `AlertRuleResource`422

GET/v1/alerts/{alertRule}No scope required

Show one alert

Try it
ParameterInDescription
alertRulepathThe alert rule ID

Responses200 `AlertRuleResource`404

PATCH/v1/alerts/{alertRule}No scope required

Change an alert, or switch it off and on. The kind cannot change

ParameterInDescription
alertRulepathThe alert rule ID

Responses200 `AlertRuleResource`404 422

DELETE/v1/alerts/{alertRule}No scope required

Delete an alert, with the record of when it went off

ParameterInDescription
alertRulepathThe alert rule ID

Responses200 404

GET/v1/alerts/{alertRule}/triggersNo scope required

The last times an alert went off, newest first, from the last 90 days

Try it
ParameterInDescription
alertRulepathThe alert rule ID

Responses200 Array of `AlertTriggerResource`404

LotteryNotHeldDraw

GET/v1/lotteries/{lottery}/not-held-drawsData quality · status:read

The draws a game's schedule called for and the operator did not hold

Try it

Newest first, as far back as your plan includes (see /v1/account), each with the reason when we can state one: a public holiday on a local day the game drew nothing, or the hour repeated when the clocks went back. A slot appears here only once it is confirmed as not held, which takes at least a day; until then /v1/lotteries/{code}/freshness shows it as awaited. filter[from] and filter[to] bound the scheduled time.

ParameterInDescription
lotterypathThe lottery code

Responses200 Paginated set of `NotHeldDrawResource`404

LotteryWheel

GET/v1/lotteries/{lottery}/wheelStatistics · statistics:read

Build a reduced system (a wheel) on your numbers

Try it

Choose more numbers than a ticket holds and a guarantee: with guarantee=4&if_drawn=5, whenever 5 of the draw's numbers are among yours, at least one ticket holds 4 of them. if_drawn defaults to guarantee. The system plays far fewer tickets than every combination of your numbers (meta.full_system); it is not always the smallest system there is, but the guarantee always holds.

ParameterInDescription
lotterypathThe lottery code
numbersqueryYour numbers, comma-separated: more than a ticket holds, at most 40.
sizequeryNumbers per ticket, within meta.sizes. Defaults to the most allowed.
guaranteequeryHow many of the drawn numbers one ticket is sure to hold.
if_drawnqueryHow many of the draw’s numbers must be among yours for the guarantee to apply. Defaults to guarantee.
bonusqueryBonus numbers every ticket carries, where the game plays them separately.

Responses200 404 422