Skip to main content

Introduction

If you're reading this, it probably means you want to learn how to use clashofclans.js. Let's dig in!

Installation

To use clashofclans.js, you'll need to install Node.js v14.0.0 or higher version.

npm i clashofclans.js

The next step is to start coding! But before you start, open the Clash of Clans API Developer Portal and go to the "My Account" page to create or copy your keys.

info

To create an API Key you'll need your public IP address.

tip

Alternatively, you can use the developer site email and password to create or retrieve your API keys automatically with clashofclans.js library. Learn how?