{"id":15141533,"url":"https://github.com/dashroshan/clashapi","last_synced_at":"2026-01-06T15:06:44.602Z","repository":{"id":45480049,"uuid":"431626280","full_name":"dashroshan/clashapi","owner":"dashroshan","description":"🛠️ Python package to update ip address of clash of clans and clash royale api keys with token fetching","archived":false,"fork":false,"pushed_at":"2022-02-08T13:29:04.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T20:14:55.123Z","etag":null,"topics":["clash-of-clans","clash-royale","clashapi","coc","cr"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dashroshan.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":"2021-11-24T20:58:28.000Z","updated_at":"2022-09-12T23:53:16.000Z","dependencies_parsed_at":"2022-07-18T23:18:23.723Z","dependency_job_id":null,"html_url":"https://github.com/dashroshan/clashapi","commit_stats":null,"previous_names":["dashroshan/clashapi","roshan1337d/clashapi"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashroshan%2Fclashapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashroshan%2Fclashapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashroshan%2Fclashapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashroshan%2Fclashapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashroshan","download_url":"https://codeload.github.com/dashroshan/clashapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245727635,"owners_count":20662552,"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":["clash-of-clans","clash-royale","clashapi","coc","cr"],"created_at":"2024-09-26T09:01:07.774Z","updated_at":"2026-01-06T15:06:44.527Z","avatar_url":"https://github.com/dashroshan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClashAPI\n\nUsing your developer account's login email and password, update the IP address of all your existing Clash of Clans and/or Clash Royale API keys to the current one, and obtain their tokens.\n\n## Getting Started\n\n### Installing\n\n```bash\npip install clashapi\n```\n\n### Usage\n\n```python\nimport clashapi\n\n# Clash of Clans\ntokens = clashapi.coc(\"email\", \"password\")\n\n# Clash Royale\ntokens = clashapi.cr(\"email\", \"password\")\n\n# tokens is a list of api key token strings that you can now use to access the COC/CR APIs\n```\n\n### Quick Example\n\n```python\nimport requests\nimport clashapi\ntokens = clashapi.coc(\"email\", \"password\")\n\nresponse = requests.get(url=\"https://api.clashofclans.com/v1/clans/%23208GJG2J\", headers={\"Accept\": \"application/json\", \"authorization\": f\"Bearer {tokens[0]}\"})\nprint(response.json())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashroshan%2Fclashapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashroshan%2Fclashapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashroshan%2Fclashapi/lists"}