Skip to main content

ClashofClans-API

PyPi Supported Versions MIT License

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.

Metadata

Release files for clashofclans-api 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clashofclans-api 1.0.1
File Size Uploaded Provenance Actions
clashofclans-api-1.0.1.tar.gz 5.3 kB Without provenance Details for clashofclans-api-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clashofclans-api 1.0.1
File Interpreter ABI Platform Actions
clashofclans_api-1.0.1-py3-none-any.whl Python 3 none any Details for clashofclans_api-1.0.1-py3-none-any.whl

Total release size: 10.9 kB

Release files / clashofclans-api-1.0.1.tar.gz

Download URL clashofclans-api-1.0.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b6f4eecc3e76ebef7d7a118c96b5c34bf365861b42174192c341a13e7e709fb9
BLAKE2b-256 checksum
How to use checksums
be6609e1b12aa1f25efeb719edf8eb394f6bd2a4350615579fb7d60d4b28dad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / clashofclans_api-1.0.1-py3-none-any.whl

Download URL clashofclans_api-1.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05b2cbcb210662081cc90d05248cac9ecfb0bdbae20dc1d1008e1fef8a18c58f
BLAKE2b-256 checksum
How to use checksums
c67378e06b4777ee2f80356c32a46bd5c659ec68d8a280dd54d843eeb221fd04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for clashofclans-api 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page