Skip to content
Lottery Feed API

Lottery Feed API

ResultsPersonalAPI DocsPricingContact
Sign inJoin the Free Beta
  1. Home
  2. /
  3. API docs
  4. /
  5. Get Lottery Draw Years

API documentation

Get Lottery Draw Years

Returns available history years for a game so clients can build archive filters.

Section

22 / 27

OpenAPI JSON
01Introduction02Quickstart03Polling and integration04Sandbox fixtures05SDK starter06Embeddable widgets07API playground08OpenAPI spec09Postman collection10API changelog11Authentication12API key scopes13Freshness levels14Source confidence15Status monitoring16Rate limiting17Get countries18Get states19Get lotteries20Get lottery21Get schedules22Draw years23Lottery results24History export25Number frequency26Result checker27Error handling

Live API examples

Jump from the docs to real public pages that use the same read models.

Latest results browserSee the compact public result model with filters and draw dates.
Lottery catalogFind game names, states, ball counts, latest numbers, and API guides.
Maryland Pick 3 API guideOpen a concrete endpoint example using the same game shown in snippets.
Pricing and limitsCompare freshness targets, request limits, and integration features.
Customer integration centerSign in to check API keys, usage, webhook delivery, plan limits, and the next recommended action.
OpenAPI contractUse the machine-readable contract for code generation and integration tests.

Endpoints

GET
/v1/lotteries/{game_code}/draw-years

Canonical draw-year index endpoint.

GET
/v1/results/years

Compatibility query endpoint using game_code.

Request

Use before requesting yearly archives or building customer history filters. The canonical route keeps the game code in the path; /v1/results/years?game_code=... is a compatibility alias for SDKs or older docs that prefer query-shaped result helpers.

GET https://api.lotteryfeedapi.com/v1/lotteries/md-pick3-midday/draw-years

Compatibility alias

The alias uses the same bounded read model, lotteries:read scope, sandbox behavior, and response shape. It does not scan full history on request.

GET https://api.lotteryfeedapi.com/v1/results/years?game_code=md-pick3-midday

Response

When indexed history is available, the response returns years, date range, and draw count. If the index has no rows yet, it falls back to the latest visible draw year and marks the response as limited.

{
  "game_code": "md-pick3-midday",
  "years": [2026, 2025],
  "limited": false,
  "source": "indexed_history",
  "date_range": { "from": "2025-12-31", "to": "2026-06-21" },
  "draw_count": 42
}

Next: Lottery results
Lottery Feed API

Normalized lottery draw results, history, schedules, source-confidence metadata, and descriptive analytics for integrations and personal analysis.

Independent software and data service. We do not sell lottery tickets, accept bets or player funds, operate draws, determine outcomes or pay prizes.Lottery names and trademarks belong to their respective owners. Lottery Feed API is an independent data service and is not affiliated with, endorsed by, sponsored by or operated by any lottery authority.
LotteriesDaily ArchiveCountriesStatesStatusResponsible UseAcceptable UseReport incorrect resultCompanyTermsPrivacyAccount