Advertisement
Advertisement unavailable offline
The page content remains available.
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
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.jsonconst 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.
Last updated: