Supercell has introduced a publicly available API service for Clash of Clans that will enable Clash of Clans players with an inclination toward developing access to Clash of Clans data. Currently, the Clash of Clans API provides the ability to search for clans, including their member lists and badge images, location based rankings and a league list (with badges).
As the Clash of Clans API is only in beta mode, expect to see more features and access released in the upcoming months.
To use the Clash of Clans API, you will need to register for a developer account here. Once you’ve registered and have verified your email address, Supercell will grant you an API key that is tied to your specific IP addresses, and each API key will have a rate limit.
You can view the documentation for the Clash of Clans API here. You can also test potential API queries on the documentation page, and see what the results would be before getting down to the hard coding.
The Clash of Clans API returns data in the JSON format, which is helpful to think as a giant tree of text with children elements, or leaves, that are connected to their parent element, or branches. Google Script editor, with its ability to publish directly to Google Spreadsheets, may be a good place to start. If you’re not having any luck figuring out how to use the Clash of Clans API, feel free to tweet me at @MikeARGS and I’ll try to provide some help.
Much of the same data already available via the Clash of Clans API is also accessible through a GUI on the Clash of Clans website if coding is not for you. For example, you can find clans based on search variables such as War Frequency, location or minimum/maximum amount of members through both services.
It will be up to third-party developers to dig into the Clash of Clans API and see what interesting tools they can come up with, like the third-party Clash of Clans clan tracker service, WarClans.