Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Public results JSON: documentation

Read published JSON files; check the draw date before using a result. This is a public file interface, without a guaranteed availability SLA.

Table of contents
  1. Public files
  2. Validation and freshness
  3. Example request
  4. Reuse and sources

Public files

Validation and freshness

Read the draws array. Each record provides numbers and drawn_at; other fields depend on the game and available data. An empty array means no records in this file. This file is not the complete archive. Check the HTTP status, JSON parsing and draw date before using a result. A server error may be HTML; do not treat it as an empty draw. Save a last known good copy separately. Cross-origin access and rate-limit headers are not guaranteed by this documentation. Same-origin fetch is shown above.

Example request

curl --fail https://pewniaki.pl/assets/json/db/lotto/recent.json
const response = await fetch('/assets/json/db/lotto/recent.json');
if (!response.ok) throw new Error('HTTP ' + response.status);
const data = await response.json();
if (!Array.isArray(data.draws)) throw new Error('Invalid draws');
console.log(data.draws);

Reuse and sources

Cache responses and avoid repeated parallel downloads. Data describes past draws and does not predict future results. Confirm results with LOTTO. For embedding, use website widgets; read the methodology.

Knowledge base

Last updated:

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.