Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Public results data (JSON)

The site publishes JSON files used by its results pages. Use the addresses below. This is a file format, not the previously advertised /api/v1 service.

Recent draws

curl --fail https://pewniaki.pl/assets/json/db/lotto/recent.json

Reading the response

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.

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);

Availability and freshness

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.

Ready-made website widget

If you do not need to process JSON, use the configurable iframe widget. You can select games, width, colour theme and optional five-minute refresh.

Configure the results widget

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.