{"id":35014309,"url":"https://github.com/kamaal111/clash-royale-stats-api-server-express","last_synced_at":"2026-04-10T01:43:17.142Z","repository":{"id":44085602,"uuid":"163337023","full_name":"kamaal111/clash-royale-stats-api-server-express","owner":"kamaal111","description":"A API to provide Clash Royale statistics, built in Express.js and using MongoDB.","archived":false,"fork":false,"pushed_at":"2023-01-23T21:58:07.000Z","size":6364,"stargazers_count":1,"open_issues_count":13,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-10-21T05:49:08.408Z","etag":null,"topics":["api","clash-royale","clash-royale-api","express","mongodb","nodejs","supercell"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamaal111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-27T21:21:21.000Z","updated_at":"2023-03-04T04:01:47.000Z","dependencies_parsed_at":"2023-01-26T09:31:50.018Z","dependency_job_id":null,"html_url":"https://github.com/kamaal111/clash-royale-stats-api-server-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamaal111/clash-royale-stats-api-server-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaal111%2Fclash-royale-stats-api-server-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaal111%2Fclash-royale-stats-api-server-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaal111%2Fclash-royale-stats-api-server-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaal111%2Fclash-royale-stats-api-server-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamaal111","download_url":"https://codeload.github.com/kamaal111/clash-royale-stats-api-server-express/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaal111%2Fclash-royale-stats-api-server-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28072779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","clash-royale","clash-royale-api","express","mongodb","nodejs","supercell"],"created_at":"2025-12-27T05:11:42.904Z","updated_at":"2025-12-27T05:11:44.635Z","avatar_url":"https://github.com/kamaal111.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clash Royale stats API\n\nAn API that provides [Clash Royale](http://supercell.com/en/games/clashroyale/) statistics.\n\n## What can it do?\n\n- Basic actions:\n  - Fetch and save player and clan statistics\n  - Fetch and save players latest battlelogs\n  - Fetch and save players upcomming chests\n\n## Primarily used technologies\n\n- [Express.js](https://expressjs.com)\n- [Node.js](https://nodejs.org/en/)\n- [MongoDB](https://www.mongodb.org/)\n- [Superagent](http://visionmedia.github.io/superagent/)\n\n## Endpoints\n\n| Route                          | HTTP Verb | Description                                                 |\n| ------------------------------ | --------- | ----------------------------------------------------------- |\n| `/v1/api/player/:id`           | `PUT`     | Update players statistics, upcomming chests and battlelogs  |\n| `/v1/api/player/chests/:id`    | `GET`     | Find players upcomming chests                               |\n| `/v1/api/player/battlelog/:id` | `GET`     | Find players latest battlelogs                              |\n| `/v1/api/player/player/:id`    | `GET`     | Find players statistics                                     |\n| `/v1/api/clan/:id`             | `PUT`     | Update clans statistics, warlogs and current war statistics |\n| `/v1/api/clan/data/:id`        | `GET`     | Find clans statistics                                       |\n| `/v1/api/clan/warlog/:id`      | `GET`     | Find clans latest warlogs                                   |\n| `/v1/api/clan/curwar/:id`      | `GET`     | Find clans current war statistics                           |\n\n## Installation\n\n### Running the API locally\n\n- Make sure you have installed all these prerequisites on your development machine.\n\n  - [Node.js](https://nodejs.org/en/download/)\n  - [MongoDB](https://www.mongodb.org/)\n\n- Register and generate your free API key [here](https://developer.clashroyale.com)\n\n```bash\n\u003e git clone git@github.com:kamaal111/clash-royale-stats-api-express.git\n\u003e cd clash-royale-stats-api-express\n\u003e npm install\n```\n\n- Modify config.js in the root directory with your credentials\n\n```bash\n\u003e npm run dbon\n```\n\n- In an separate terminal run\n\n```bash\n\u003e npm run watch\n```\n\n- Enjoy!!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaal111%2Fclash-royale-stats-api-server-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamaal111%2Fclash-royale-stats-api-server-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaal111%2Fclash-royale-stats-api-server-express/lists"}