Note
If loading takes too long when you access the URL from the description, it is probably because the Render free tier services go into sleep mode during inactivity.
A small lotto results scrapper that can scrape lotto results ranging from August 26, 2020, until present as of writing.
I want to try redis, but I haven't implemented it yet.I want to try release-it
- Get results today
- Get results today by gameId
- Get results by date
- Get results by date and by gameId
Clone the project
git clone https://github.com/Jiseeeh/pcso-lotto-api
Go to the project directory
cd pcso-lotto-api
Install dependencies
npm install
Start the server
npm run dev
This is only used for logging.
NODE_ENV=dev
This is only used for releasing.
GITHUB_TOKEN
To connect with redis
REDIS_URL
To what port the server will listen
PORT
GET /api/results/today
GET /api/today/:gameId
Parameter | Type | Description | Sample Value |
---|---|---|---|
gameId |
string |
Required. The gameId to fetch | 2d-lotto |
GET /api/results/:date
Parameter | Type | Description | Sample value |
---|---|---|---|
date |
string |
Required. The date to fetch results | april-6-2022 |
GET /api/results/:date/:gameId
Parameter | Type | Description | Sample value |
---|---|---|---|
date |
string |
Required. The date to fetch results | 2d-lotto |
gameId |
string |
Required. The gameId to fetch | april-6-2022 |
- 6-58-ultra-lotto
- 6-55-grand-lotto
- 6-49-super-lotto
- 6-45-mega-lotto
- 6-42-lotto
- 6d-lotto
- 4d-lotto
- 2d-lotto
- stl-swer3
- swertres
- ez2
- stl-pares
- stl-swer2
- stl-swer4
- grand-lotto-6-55
- mega-lotto-6-45
- lotto-6-42
- ultra-lotto-6-58
- super-lotto-6-49
Contributions are always welcome!