South African Lottery API: results in your app without the maintenance headache
A practical guide to getting Lotto, Powerball and Daily Lotto results into your app as clean JSON with a single API call.
At some point a developer in South Africa decides they want lottery results in their app. Maybe it is a WhatsApp bot for a work syndicate. Maybe it is a mobile app that sends a notification the moment results drop. Maybe it is a website, a dashboard, a Google Sheet that updates automatically. The idea is straightforward. Then they go looking for a South African lottery API and discover the official site has nothing.
The National Lottery website was not built for developers. There is no public API. Building and maintaining your own results feed means watching for changes, handling late prize breakdowns and keeping years of history, and when it fails it fails silently, showing stale results to your users while you have no idea anything is wrong. Plenty of good projects have died in that maintenance loop.
The ResultsZA API is the shortcut past all of that. One HTTPS GET request with your API key and you have structured JSON back in under a second. No parsing, no maintenance, no missed draws.
Official SDKs
Skip the boilerplate
Our official Python and Node/TypeScript SDKs wrap every endpoint in a typed client. Bring your own API key.
pip install resultsza-sdk
npm install resultsza-sdk
Building with an AI assistant? The ResultsZA MCP server lets Claude, Cursor and VS Code call the API for you with your own key.
What you can build with this
To make this concrete, here are things developers have built or are building with SA lottery data:
- WhatsApp and Telegram bots that post results to group chats the moment a draw happens
- Mobile apps (React Native, Flutter) that show results and send push notifications when the jackpot crosses a threshold
- Syndicate trackers where a group of colleagues can check whether their shared ticket won anything
- News and media integrations where lottery results are automatically pulled into a CMS or editorial dashboard
- Hot and cold number analysis tools using years of historical draw data
- Google Sheets automations that update a results tracker without anyone touching a keyboard
The common thread is that none of these need you to think about data infrastructure. You call the endpoint, you get the data, you build the thing you actually wanted to build.
What comes back
Here is the full response from the Lotto endpoint, nothing trimmed. This is exactly what arrives in your application:
A couple of things that will save you time. Dates come back as ISO 8601 with a UTC offset, so you can feed draw_date directly into any date library without string wrangling. The divisions array contains the full prize breakdown for every tier, not just the jackpot. That is the part that makes a results display actually useful to your users, rather than just showing the six winning numbers.
Historical draws are included
Need results from five years ago for an analysis project? Add a date parameter in YYYY-MM-DD format and you get the draw for that day. Leave it off and you get the most recent draw. The archive covers years of data across all games.
South African Lottery API endpoints
There is a dedicated endpoint for each SA game. The same request pattern applies to all of them.
- Daily Lotto
/api/get_daily_lotto_resultsDaily - Lotto
/api/get_lotto_resultsWed & Sat - Lotto Plus 1
/api/get_lotto_plus_1_resultsWed & Sat - Lotto 5 Max
/api/get_lotto_5_max_resultsWed & Sat - Powerball
/api/get_sa_powerball_resultsTue & Fri - Powerball Xtra
/api/get_powerball_xtra_resultsTue & Fri
UK 49s (Brunchtime, Lunchtime, Drivetime and Teatime), EuroMillions, Irish Lotto, US Powerball, US Mega Millions and Russia's Gosloto (6/45, 7/49 and 5/36) are also available. See the full API documentation for those endpoints.
Making your first request
Here is everything it takes to pull the latest Lotto result in Python. No database to set up, no parsing to write. You go from zero to working in the time it takes to read this.
One thing to watch for: Powerball uses a different field name
Lotto games return a bonus_ball. Powerball and Powerball Xtra return a powerball field instead. Everything else in the response is identical across all games, which makes it straightforward to build a single display component and reuse it. The documentation has the full field reference for each endpoint.
Why not build your own results feed?
The National Lottery website was not built for developers. Keeping your own feed accurate is a job in itself: winning numbers and prize breakdowns arrive at different times, and a silent failure keeps showing the last result. You find out when a user reports that the numbers look wrong. ResultsZA handles all of that, and your integration keeps working without any action from you.
There is also data that is hard to assemble yourself: years of historical draws, full prize breakdown tables for every division, rollover amounts, next jackpot estimates, and the exact timestamp of the next draw. All of it comes back in a single API response.
Authentication takes about 30 seconds to set up
Pass your API key as the api_key query parameter on every request. There is no OAuth flow, no token refresh cycle, no headers to configure. Create an account, choose a subscription plan, generate your key in My Dashboard, and you are ready to call the API. The response includes your remaining monthly quota in the headers, so you can track usage from inside your application without ever logging into a dashboard.
What our API subscribers are saying
Start building today
Create an account, set your password, choose a subscription plan and generate your API key in the portal. Most developers have data in their app within the first 15 minutes.
Create a free account Read the full documentation →