Panel and API · LotoHub
LotoHub Agencies
A panel and API where lottery agencies register their retailer units (ULs) and follow every pool on CAIXA's marketplace, from the first record to the official result, with the history kept after the pool leaves the list.
- 11
- games with official results and winning locations
- R$ 0
- to register units, browse the catalog and create API keys
- R$ 5
- per unit in the 100-unit pack (R$ 10 on its own)

The challenge
The pools lottery retailers sell on CAIXA's marketplace leave the list once they close. To keep the games, the shares and the result of each one, an agency had to check and write everything down by hand, unit by unit.
Agencies with many units needed that data in a panel and an API, with no password to manage, no card to start and paying only for the units they want detailed.
What I did
- 01Automatic capture of every pool, from the first record to the official result
- 02A per-unit panel with the capture progress and the next attempt
- 03A REST API with the agency's own keys, expiry and interactive docs
- 04Passwordless sign-in with a 6-digit code or a button by e-mail
- 05Every unit checked against CAIXA's national catalog
- 06Plans by unit capacity, with Stripe billing and portal
The solution
In LotoHub Agencies the agency registers the unit and the rest is automatic. The number is checked against CAIXA's national catalog; then each pool is detected with its numbers, the available shares are followed until they run out and the final capture is stored with the official result.
The same data shows up in the panel, with the progress of each unit and the next attempt, and in the API as JSON, with the agency's own keys. The catalog, results and API keys are free; details cost R$ 10.00 per unit a month, or R$ 500.00 for a pack of 100 units, and the full price is on the page before sign-up.
Features
Panel per unit
What has been detailed in each unit, what is missing and when the next attempt runs.
API with your own key
Keys with an expiry date to read pools, details and results as JSON, tried out in the interactive docs.
Results and prizes
All 11 official games and the winning locations, open even without a plan.
A pool's life
From the detected pool to the shares running out and the final capture with the result, each step with its date and time.
E-mail sign-in
A 6-digit code or a Sign in button, valid for 10 minutes and single use; the account is created on first access.
Price on the page
Pick how many units to detail and see the monthly price, the pack savings and the price per unit before signing in.
How it was built
Go back end
A Go service collects CAIXA's catalog, pools and results and serves both the panel and the API.
Data with provenance
Every value carries the time it was observed. If the source goes down, the capture stays pending and resumes later, never making data up.
Capacity per unit
The first registered units are detailed up to the contracted capacity; the others stay registered, and lowering the plan never deletes history.
Passwordless access
The code and the sign-in button work once, for 10 minutes, and the e-mail can be remembered for 30 days.
Billing on Stripe
Plans, changes and cancellation from the panel, with payment on Stripe's secure portal; lowering the capacity keeps every unit's history.
The whole page
Scroll to move through the page from top to bottom.

More screens





