Let users check if their tickets are winners.
Lottery players need to manually compare their numbers against winning results. Building a ticket checker requires reliable access to official results.
Fetch latest results from our API and compare against user-submitted numbers. Calculate matches and display which numbers matched.
const res = await fetch("https://api.apiverve.com/v1/lottery?numbers=powerball&date=2024-01-15", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);