clash of clans api database with a simple REST API.
- Go 1.25.5 or higher
- Git
- Clone the repository:
git clone https://github.com/flapjacck/CoCDB.git
cd cocdb- Install dependencies:
go mod downloadStart the server:
go run main.goGET /health- Health check endpointGET /api/data/{path}- Retrieve JSON data from thedata/directory- Example:
GET /api/data/home_village/buildings/defensive/cannon - Example:
GET /api/data/home_village/troops/elixir/barbarian
- Example:
We use material from the Clash of Clans Wiki at Fandom to make this database. Please see their licensing terms below:
Community content on Fandom is available under the Creative Commons Attribution-ShareAlike license (CC BY‑SA) unless otherwise noted. See: https://clashofclans.fandom.com/wiki/Clash_of_Clans_Wiki
Some images or other media may have separate licenses; always check the media page on Fandom before reuse.
All JSON files include a source, source_url, and source_license field pointing to the original wiki article and license.