An API that provides Clash Royale statistics.
- Basic actions:
- Fetch and save player and clan statistics
- Fetch and save players latest battlelogs
- Fetch and save players upcomming chests
Route | HTTP Verb | Description |
---|---|---|
/v1/api/player/:id |
PUT |
Update players statistics, upcomming chests and battlelogs |
/v1/api/player/chests/:id |
GET |
Find players upcomming chests |
/v1/api/player/battlelog/:id |
GET |
Find players latest battlelogs |
/v1/api/player/player/:id |
GET |
Find players statistics |
/v1/api/clan/:id |
PUT |
Update clans statistics, warlogs and current war statistics |
/v1/api/clan/data/:id |
GET |
Find clans statistics |
/v1/api/clan/warlog/:id |
GET |
Find clans latest warlogs |
/v1/api/clan/curwar/:id |
GET |
Find clans current war statistics |
-
Make sure you have installed all these prerequisites on your development machine.
-
Register and generate your free API key here
> git clone [email protected]:kamaal111/clash-royale-stats-api-express.git
> cd clash-royale-stats-api-express
> npm install
- Modify config.js in the root directory with your credentials
> npm run dbon
- In an separate terminal run
> npm run watch
- Enjoy!!!