{"id":16194370,"url":"https://github.com/marsidev/get-sc-key","last_synced_at":"2025-04-02T07:31:19.654Z","repository":{"id":50646545,"uuid":"457134323","full_name":"marsidev/get-sc-key","owner":"marsidev","description":"This is an API to generate a fresh API key for Supercell games for your current IP. It supports Clash Royale, Clash of Clans, and Brawl Stars.","archived":false,"fork":false,"pushed_at":"2022-09-05T01:49:32.000Z","size":179,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T15:44:37.235Z","etag":null,"topics":["api-key","brawl-stars","brawl-stars-api","clash-of-clans","clash-of-clans-api","clash-royale","clash-royale-api","supercell","supercell-games"],"latest_commit_sha":null,"homepage":"https://get-sc-key.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marsidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-08T23:08:18.000Z","updated_at":"2023-05-25T22:31:01.000Z","dependencies_parsed_at":"2023-01-17T19:55:39.158Z","dependency_job_id":null,"html_url":"https://github.com/marsidev/get-sc-key","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsidev%2Fget-sc-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsidev%2Fget-sc-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsidev%2Fget-sc-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marsidev%2Fget-sc-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marsidev","download_url":"https://codeload.github.com/marsidev/get-sc-key/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246774554,"owners_count":20831563,"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","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-key","brawl-stars","brawl-stars-api","clash-of-clans","clash-of-clans-api","clash-royale","clash-royale-api","supercell","supercell-games"],"created_at":"2024-10-10T08:19:10.229Z","updated_at":"2025-04-02T07:31:14.991Z","avatar_url":"https://github.com/marsidev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this?\n\nThis is an API to generate a fresh API key for Supercell games for your current IP. It supports [Clash Royale](https://developer.clashroyale.com), [Clash of Clans](https://developer.clashofclans.com) and [Brawl Stars](https://developer.brawlstars.com).\n\n## Why?\n\nThose API's has a limitation of **one API key per IP** and a maximum of 10 API keys per user. This is fine if you are using a single IP, but if you are using multiple IPs, you will need to generate a new API key for each IP.\n\n## How to use it?\n\nYou can use this API by making a POST request to the following URL `https://get-sc-key.vercel.app` adding in the body your user credentials and the game id you want to generate a key for. Example:\n```json\n{\n  \"game\": \"clashroyale\",\n  \"email\": \"yourmail\",\n  \"password\": \"yourpassword\"\n}\n```\nThen you will receive a JSON response like this: \n```json\n{\n  \"name\": \"Key generated at 8/2/2022 6:19:26 p. m.\",\n  \"description\": \"Key for non-commercial use\",\n  \"ipRange\": [\n    \"xx.xx.xx.xx\"\n  ],\n  \"key\": \"your_key\"\n}\n```\n    Supported game IDs: clashroyale, clashofclans, brawlstars, cr, coc, bs\n\n## Run locally\n- `$ npm run install`\n- `$ npm run start`\n- Then you can make your requests to `https://localhost:1234`\n\n## How it works?\n\nThis API login into the game developer portal with your credentials, check if exists a key for your IP and if not, **delete the first key** and generate a new one for your IP. Otherwise, it will return the existing key. The logic is inspired on [TheLearneer/supercell-api](https://github.com/TheLearneer/supercell-api). The IP is obtained from [ipify](https://api.ipify.org/).\n\n## Optional parameters\n### `whitelist`\nYou can send a whitelist array of API key-names to avoid deleting them. Example:\n```json\n{\n  \"game\": \"coc\",\n  \"email\": \"yourmail\",\n  \"password\": \"yourpassword\",\n  \"whitelist\": [\n    \"important-key-1\",\n    \"important-key-2\"\n  ]\n}\n```\n\n### `fixedIp`\nYou can set a fixed IP to use instead of the current one. Example:\n```json\n{\n  \"game\": \"bs\",\n  \"email\": \"yourmail\",\n  \"password\": \"yourpassword\",\n  \"fixedIp\": \"11.22.33.44\"\n}\n```\n\n## Contributing\n\nAny contributions you make are greatly appreciated. If you have a suggestion that would make this better, please fork the repo and create a Pull Request. You can also simply [open an issue](https://github.com/marsidev/get-sc-key/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarsidev%2Fget-sc-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarsidev%2Fget-sc-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarsidev%2Fget-sc-key/lists"}