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:readThe catalogue
/v1/lotteriesCatalogue · catalog:readGames 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.
| Parameter | In | Description |
|---|---|---|
| filter[q] | query | Free text over the code and every translated name. |
| filter[continent] | query | Continent code, such as EU. |
| filter[country] | query | Country code, such as RO. |
| filter[state] | query | State code. Most specific location wins. |
| filter[status] | query | active for the games that still draw, ended for the ones their operator stopped. Both by default. |
| sort | query | position, code, next_draw_at, started_at. Prefix with - to reverse. |
| include | query | schedules, latest_draw, draws, payouts, assets, availability, comma-separated. |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `LotteryResource`
GET/v1/lotteries/{lottery}Catalogue · catalog:readOne 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
/v1/lotteries/{lottery}Catalogue · catalog:readGET/v1/lotteries/{lottery}/scheduleCatalogue · catalog:readWhen 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
/v1/lotteries/{lottery}/scheduleCatalogue · catalog:readregular 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| occurrences | query | How many upcoming draws to resolve, at most 25. |
Responses200 404
GET/v1/lotteries/{lottery}/payoutsCatalogue · catalog:readThe payout table of a fixed-odds game
/v1/lotteries/{lottery}/payoutsCatalogue · catalog:readSome 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
Responses200 Array of `LotteryPayoutResource`404
GET/v1/continentsCatalogue · catalog:readThe 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
/v1/continentsCatalogue · catalog:readResponses200 Array of `ContinentResource`
GET/v1/countriesCatalogue · catalog:readThe 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
/v1/countriesCatalogue · catalog:readResponses200 Array of `CountryResource`
GET/v1/statesCatalogue · catalog:readThe states that have any lottery, optionally within one country
/v1/statesCatalogue · catalog:readResponses200 Array of `StateResource`
GET/v1/complianceCatalogue · catalog:readThe legal frame of every researched jurisdiction, optionally within one country
/v1/complianceCatalogue · catalog:readCountries 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:readThe legal frame of every jurisdiction a lottery is sold in
/v1/lotteries/{lottery}/complianceCatalogue · catalog:readA 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
Responses200 Array of `JurisdictionComplianceResource`404
Draw results
GET/v1/drawsDraws · draws:readThe 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
/v1/drawsDraws · draws:readResults 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.
| Parameter | In | Description |
|---|---|---|
| filter[lottery] | query | Lottery codes, comma-separated. |
| filter[continent] | query | Continent code, such as EU. |
| filter[country] | query | Country code, such as RO. |
| filter[state] | query | State code. Most specific location wins. |
| filter[from] | query | Inclusive lower bound on drawn_at, an ISO-8601 instant read as UTC. |
| filter[to] | query | Inclusive upper bound on drawn_at. |
| sort | query | drawn_at or scheduled_at. Defaults to -drawn_at. |
| include | query | prizes — the categories, opt-in because a page of them is large. |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `DrawResource`
GET/v1/draws/latestDraws · draws:readThe 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
/v1/draws/latestDraws · draws:readlatest_draw: null| Parameter | In | Description |
|---|---|---|
| filter[continent] | query | Continent code, such as EU. |
| filter[country] | query | Country code, such as RO. |
| filter[state] | query | State code. Most specific location wins. |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `LotteryResource`
GET/v1/draws/{draw}Draws · draws:readOne 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
/v1/draws/{draw}Draws · draws:readhistory_not_includedGET/v1/lotteries/{lottery}/drawsDraws · draws:readOne game's result history, newest first, as far back as your plan includes. Pages stay equally fast however deep you walk back
/v1/lotteries/{lottery}/drawsDraws · draws:readmeta.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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| filter[from] | query | Inclusive lower bound on drawn_at. |
| filter[to] | query | Inclusive upper bound on drawn_at. |
| sort | query | drawn_at or scheduled_at. Defaults to -drawn_at. |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `DrawResource`404
Ticket checking
GET/v1/lotteries/{lottery}/checkDraws · draws:readCheck a ticket against a game's history
/v1/lotteries/{lottery}/checkDraws · draws:readPass 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).
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| numbers | query | The ticket’s numbers, comma-separated. Digit games take one digit per position. |
| bonus | query | Bonus numbers played separately, where the game has them. |
| min_matched | query | Only list draws with at least this many matches. Defaults to half the ticket. |
| range | query | 3months, 6months, 1year, 2years or all. Use either this or from/to, not both. |
| from | query | Check from this instant. History also depends on your plan. |
| to | query | Check up to this instant. |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Array of `DigitTicketMatchResource`
Array of `TicketMatchResource`404 422
POST/v1/lotteries/{lottery}/checkDraws · draws:readCheck up to twenty tickets against a game's history at once
/v1/lotteries/{lottery}/checkDraws · draws:readSend 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).
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| tickets | query | Body field: up to 20 tickets, each {"numbers": [...], "bonus": [...]}. |
Responses200 404 422
Jackpots
GET/v1/lotteries/{lottery}/jackpotsCatalogue · catalog:readHow a game's announced jackpot has moved
/v1/lotteries/{lottery}/jackpotsCatalogue · catalog:readEvery 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| per_page | query | Page size, at most 25. It can only shrink a page. |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `JackpotSnapshotResource`404
Changes & revisions
GET/v1/draws/changesDraws · draws:readEverything that happened to the results, in order
/v1/draws/changesDraws · draws:readThe 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.
| Parameter | In | Description |
|---|---|---|
| filter[since] | query | Start of the change window, an ISO-8601 instant. Then follow the cursor. |
| filter[lottery] | query | Lottery codes, comma-separated. |
| per_page | query | Page size, at most 100 (the default). |
| cursor | query | The cursor from links.next. There is no offset paging. |
Responses200 Paginated set of `DrawChangeResource`
GET/v1/draws/{draw}/revisionsDraws · draws:readThe corrections of one result, oldest first
/v1/draws/{draw}/revisionsDraws · draws:readEach entry holds the fields that were corrected, with their values before and after. A result that was never corrected has none.
| Parameter | In | Description |
|---|---|---|
| draw | path | The draw ID |
Responses200 Array of `DrawRevisionResource`404
Data quality
GET/v1/lotteries/{lottery}/data-qualityData quality · status:readHow complete and how fast a game's results have been
/v1/lotteries/{lottery}/data-qualityData quality · status:readOver 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
Responses200 `LotteryDataQualityResource`404
GET/v1/lotteries/{lottery}/freshnessData quality · status:readHow current a game's results are right now
/v1/lotteries/{lottery}/freshnessData quality · status:readWhether 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
Responses200 `LotteryFreshnessResource`404
Statistics
GET/v1/lotteries/{lottery}/generateStatistics · statistics:readGenerate tickets for a game
/v1/lotteries/{lottery}/generateStatistics · statistics:readEvery 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| count | query | How many tickets, 1 to 50. Defaults to 5. |
| size | query | Numbers per ticket, within meta.sizes. Defaults to the most allowed. |
| seed | query | Repeats an earlier result: the meta.seed it returned. |
| odd | query | Exactly this many odd numbers per ticket. |
| low | query | Exactly this many numbers from the lower half of the pool (meta.low). |
| ranges | query | Exact counts from stretches of the pool: 1-10:2,11-20:1. |
| include | query | Numbers every ticket holds, comma-separated. |
| exclude | query | Numbers no ticket holds, comma-separated. |
| sum_min | query | Lowest sum of a ticket; sum_max is the highest. |
| max_consecutive | query | Longest run of neighbours; also max_same_ending and max_per_decade. |
| never_drawn | query | Only tickets no past draw held. |
| avoid_popular | query | Leave out the patterns many players mark. |
| numbers_from | query | hot, cold or overdue: draw only from the top of that ranking over window. |
| weighting | query | hot or cold: favour the most or least drawn numbers. A preference, not a better chance. |
| window | query | day … year, or all_time. Read meta.available_windows first. |
Responses200 404 422
GET/v1/lotteries/{lottery}/statisticsStatistics · statistics:readThe three rankings for a game: most drawn, least drawn, and longest without appearing
/v1/lotteries/{lottery}/statisticsStatistics · statistics:readHistorical analysis of past results, not a prediction of future ones.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| combo_size | query | Single numbers, pairs or triples. Read meta.available_combo_sizes first. |
| window | query | day … year, or all_time. Read meta.available_windows first. |
| limit | query | Rows per ranking, at most 25. |
Responses200 404
GET/v1/lotteries/{lottery}/statistics/distributionsStatistics · statistics:readHow a game's past draws are spread, each figure beside what a fair draw would have produced
/v1/lotteries/{lottery}/statistics/distributionsStatistics · statistics:readHistorical 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| window | query | day … year, or all_time. Read meta.available_windows first. |
Responses200 404 422
Event delivery
GET/v1/streamStream · stream:readResults as they land, as Server-Sent Events
/v1/streamStream · stream:readA 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.
| Parameter | In | Description |
|---|---|---|
| filter[lottery] | query | Lottery codes to follow. With no filter the stream carries your entitlement. |
| cursor | query | Resume point. Last-Event-ID is honoured and takes precedence. |
Responses200
GET/v1/webhooksWebhooks · webhooks:manageThe subscriptions this key holds
/v1/webhooksWebhooks · webhooks:manageResponses200 Array of `WebhookEndpointResource`
POST/v1/webhooksWebhooks · webhooks:manageSubscribe. The signing secret comes back on this response only — afterwards it is encrypted at rest and can be rotated but not read
/v1/webhooksWebhooks · webhooks:manageResponses201 `WebhookEndpointResource`422
GET/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manageShow one subscription
/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 `WebhookEndpointResource`404
PATCH/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manageChange what a subscription listens to, or switch it back on after it was disabled for being unreachable
/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 `WebhookEndpointResource`404 422
DELETE/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manageUnsubscribe for good, taking the delivery history with it
/v1/webhooks/{webhookEndpoint}Webhooks · webhooks:manage| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 404
POST/v1/webhooks/{webhookEndpoint}/rotate-secretWebhooks · webhooks:manageReplace the signing secret, returning the new one once. The old one stops verifying immediately — rotate when it has leaked, not on a schedule
/v1/webhooks/{webhookEndpoint}/rotate-secretWebhooks · webhooks:manage| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 `WebhookEndpointResource`404
GET/v1/webhooks/{webhookEndpoint}/deliveriesWebhooks · webhooks:manageWhat 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
/v1/webhooks/{webhookEndpoint}/deliveriesWebhooks · webhooks:managefilter[status]=dead — which is the dead-letter list, and the only thing most clients ever look at| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 Paginated set of `WebhookDeliveryResource`404
POST/v1/webhooks/{webhookEndpoint}/deliveries/{uuid}/replayWebhooks · webhooks:manageOffer a delivery again — the recovery path for a receiver that was down longer than the backoff lasts
/v1/webhooks/{webhookEndpoint}/deliveries/{uuid}/replayWebhooks · webhooks:manageThe 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.
| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
| uuid | path |
Responses202 404 422
POST/v1/webhooks/{webhookEndpoint}/testNo scope requiredSend 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
/v1/webhooks/{webhookEndpoint}/testNo scope requiredwebhook.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| Parameter | In | Description |
|---|---|---|
| webhookEndpoint | path | The webhook endpoint ID |
Responses200 `WebhookTestResource`404
Bulk exports
POST/v1/exportsExports · exports:readAsk for a bulk export
/v1/exportsExports · exports:readOf 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:readShow one export, with its download link once it is ready
/v1/exports/{export}Exports · exports:read| Parameter | In | Description |
|---|---|---|
| export | path | The export ID |
Responses200 `ExportResource`404
GET/v1/exportsExports · exports:readList this key's exports
/v1/exportsExports · exports:readThe 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 requiredWhat 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
/v1/accountNo scope requiredResponses200
AlertRule
GET/v1/alertsNo scope requiredThe alerts this key holds
/v1/alertsNo scope requiredResponses200 Array of `AlertRuleResource`
POST/v1/alertsNo scope requiredCreate 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
/v1/alertsNo scope requiredalert.triggered to one of the key's webhook subscriptions, or bothjackpot_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 requiredShow one alert
/v1/alerts/{alertRule}No scope requiredPATCH/v1/alerts/{alertRule}No scope requiredChange an alert, or switch it off and on. The kind cannot change
/v1/alerts/{alertRule}No scope required| Parameter | In | Description |
|---|---|---|
| alertRule | path | The alert rule ID |
Responses200 `AlertRuleResource`404 422
DELETE/v1/alerts/{alertRule}No scope requiredDelete an alert, with the record of when it went off
/v1/alerts/{alertRule}No scope required| Parameter | In | Description |
|---|---|---|
| alertRule | path | The alert rule ID |
Responses200 404
GET/v1/alerts/{alertRule}/triggersNo scope requiredThe last times an alert went off, newest first, from the last 90 days
/v1/alerts/{alertRule}/triggersNo scope required| Parameter | In | Description |
|---|---|---|
| alertRule | path | The alert rule ID |
Responses200 Array of `AlertTriggerResource`404
LotteryNotHeldDraw
GET/v1/lotteries/{lottery}/not-held-drawsData quality · status:readThe draws a game's schedule called for and the operator did not hold
/v1/lotteries/{lottery}/not-held-drawsData quality · status:readNewest 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
Responses200 Paginated set of `NotHeldDrawResource`404
LotteryWheel
GET/v1/lotteries/{lottery}/wheelStatistics · statistics:readBuild a reduced system (a wheel) on your numbers
/v1/lotteries/{lottery}/wheelStatistics · statistics:readChoose 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.
| Parameter | In | Description |
|---|---|---|
| lottery | path | The lottery code |
| numbers | query | Your numbers, comma-separated: more than a ticket holds, at most 40. |
| size | query | Numbers per ticket, within meta.sizes. Defaults to the most allowed. |
| guarantee | query | How many of the drawn numbers one ticket is sure to hold. |
| if_drawn | query | How many of the draw’s numbers must be among yours for the guarantee to apply. Defaults to guarantee. |
| bonus | query | Bonus numbers every ticket carries, where the game plays them separately. |
Responses200 404 422