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
- Lotto — recent.json
- Lotto Plus — recent.json
- Mini Lotto — recent.json
- Multi Multi — recent.json
- Eurojackpot — recent.json
- Kaskada — recent.json
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.