apyhub
Back
▣ RETRIEVAL KIT · VERIFICATION KIT

Check Lottery Ticket Results API

What it does

The Lottery Results API returns lottery drawing results and ticket checks for one game. Send game and mode, then add numbers for a ticket check. You can also send date, startDate, endDate, draws, drawTime, bonus, limit, and multiplier when the mode needs them. The API returns row data in items, plus billed and count.

Choose latest for the newest drawing, date for one day, history for a date range, or frequency for the last N drawings. Use check to compare your numbers with one drawing or a range. For some games, bonus adds the extra ball, and drawTime picks midday or evening for Take 5, Numbers, and Win 4.

Teams use Lottery Results API to verify tickets, show recent draws, and build history pages. They also use it to check supported games like Powerball, Mega Millions, and state games in one place.

POST
Lottery Results API - Powerball, Mega Millions, History
https://api.eu.apyhub.com/martin10291/check-lottery-ticket-results

QUICKSTART

GUIDE

Quickstart

Check lottery results by sending the game and mode in a JSON body.

curl -X POST "https://api.eu.apyhub.com/martin10291/check-lottery-ticket-results" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"game":"powerball","mode":"latest"}'

What you'll get back

Returns a JSON object with billed as an integer, count as an integer, and items as an array of result objects.

Each item may include fields such as game, bonus, source, numbers, drawDate, drawTime, gameName, bonusName, sourceUrl, doublePlay, and multiplier.

{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "game": "powerball",
      "numbers": [1, 12, 23, 34, 45]
    }
  ]
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body
For mode date, or the drawing to check in mode check: YYYY-MM-DD, for example 2026-11-14. Empty in check mode = the latest drawing.
Which lottery game: powerball (since 2010), megamillions (since 2002) and millionaireforlife (since 2026) are multi-state games; nylotto, take5, numbers, win4, pick10, quickdraw are New York State games; cash4life is retired (history 2014-2026). Use the exact value, for example megamillions.
latest = newest drawing (Quick Draw: newest 10); date = drawings on one day (no drawing that day returns the nearest earlier one with a note); history = every drawing between Start and End date, newest first; check = compare your numbers with one drawing or every drawing in a range (matches, tier.

About this endpoint

What it does

Returns lottery results for the selected game and mode, such as the latest drawing, drawings on a specific date, historical ranges, frequency-based results, or check-mode comparisons. The response is a JSON object with billing info, a row count, and an items array of result records.

Request Body

ParameterTypeMandatoryDescription
dateStringNoFor mode: date, or the drawing to check in mode: check: YYYY-MM-DD. For check, leaving it empty returns the latest drawing.
gameENUMYesLottery game to query. Allowed values: powerball, megamillions, millionaireforlife, nylotto, take5, numbers, win4, pick10, quickdraw, cash4life.
modeENUMYesQuery mode. Allowed values: latest, date, history, check, frequency, games.
bonusIntegerNoFor mode: check: your Powerball, Mega Ball, Millionaire Ball, or Cash Ball number. Leave empty for games without a bonus ball. Minimum 0, maximum 99.
drawsIntegerNoFor mode: frequency: count the last N drawings instead of a date range. Minimum 1, maximum 5000.
limitIntegerNoMaximum rows returned, newest first. Default 20. Minimum 1, maximum 100.
endDateStringNoFor history, frequency, and range checks: last day, YYYY-MM-DD. Default is the game's latest drawing.
numbersStringNoFor mode: check: your main numbers separated by spaces or commas, for example 10 22 33 49 57. For digit games (Numbers, Win 4), provide the digits in order.
drawTimeENUMNoFor Take 5, Numbers, and Win 4, selects the drawing time. Allowed values: midday, evening. Leave empty to include both drawings.
startDateStringNoFor history, frequency, and range checks: first day, YYYY-MM-DD. Default is 90 days back for history or 365 days back for frequency.
multiplierIntegerNoFor Mega Millions checks since 2025-04-08: the multiplier printed on your ticket. Allowed values: 2, 3, 4, 5, 10. Minimum 2, maximum 10.

Response

Returns a JSON object with billed and count integer fields, plus an items array of result objects. Each item includes top-level fields such as game and source strings, bonus and multiplier integers, numbers as an integer array, drawDate as a string, drawTime as a nullable value, gameName and bonusName strings, sourceUrl as a string, and doublePlay as an object.

ParameterTypeMandatoryDescription
billedIntegerNoUnits charged for this call: result rows only; not-found, unavailable, and invalid rows are free.
countIntegerNoNumber of rows in items.
itemsObject ArrayNoArray of result rows. Each item may include game, bonus, source, numbers, drawDate, drawTime, gameName, bonusName, sourceUrl, doublePlay, and multiplier.

Notes

billed only counts rows that produce results; rows that are not found, unavailable, or invalid are free. The items array entries follow the schema exactly, so drawTime may be null and doublePlay is an object without a defined shape in this schema.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.