Skip to main content

A Clash of Clans API

Project description

ClashofClans-API is an easy to use API for the mobile game ClashofClans

Installing

Install and update using pip:

$ pip install clashofclans-api

Create an API token

An API token is required to execute the script. You can create one here.

A Simple Example

from ClashofClans import ClashofClans

coc = ClashofClans("your API token")

response = coc.players.get_player_info("e.g. #9Q8QYQ20Q or 9Q8QYQ20Q")

print(response)
$ python3 file.py
    (200, <Response [200]>, {'tag': '#9Q8QYQ20Q', 'name': 'Orange', 'townHallLevel': 15, 'townHallWeaponLevel': 4, 'expLevel': 244, ...

Disclaimer

This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell’s Fan Content Policy.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clashofclans-api-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

clashofclans_api-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file clashofclans-api-1.0.0.tar.gz.

File metadata

  • Download URL: clashofclans-api-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for clashofclans-api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 adfde015b8e1c672a39c412922cfb36ba021f0094bf3840fc5e46313631f28d8
MD5 6e958c4d6d31a294d11ff372e6acf802
BLAKE2b-256 d85eb266f0c77b94ab465d09e731ae662cc2f613e8a404d7f6cd25b312445694

See more details on using hashes here.

File details

Details for the file clashofclans_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for clashofclans_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da3186d301e018198e604ae6536caa5ded2b59555fbeb34ed9857599de980396
MD5 de768820daede18fd67ae293865e321b
BLAKE2b-256 8a3bbe049a991025fe1c5755c4023bad6ad95eef4d5d9f06a456ae46c81129ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page