API /

KingdomsEndpoint

API

{base url}/kingdoms/

The kingdoms API allows you to fetch current information about all kingdoms. Not to be confused with the kingdom endpoint. The response is as follows:

{
"success":true,
"kingdoms": {[Array] array of kingdoms}[
    {
      "kingdom_id": {[integer] the id of the kingdom},
      "kingdom_name": {[string] the name of the kingdom},
      "kingdom_leader": {[string] the name of the leader},
      "kingdom_score": {[float] the score of the kingdom},
      "kingdom_population": {[integer] the population of the kingdom},
      "warriors": {[integer] the warriors of the kingdom},
      "calvary": {[integer] the calvary of the kingdom},
      "ships": {[integer] the ships of the kingdom},
      "housing": {[integer] the housing of the kingdom},
      "farms": {[integer] the farms of the kingdom},
      "water_wells": {[integer] the water wells of the kingdom},
      "lumber_mill": {[integer] the lumber mills of the kingdom},
      "iron_mines": {[integer] the iron mines of the kingdom},
      "barracks": {[integer] the barracks of the kingdom},
      "docks": {[integer] the docks of the kingdom},
      "watch_towers": {[integer] the watch towers of the kingdom},
      "hospitals": {[integer] the hospitals of the kingdom},
      "schools": {[integer] the schools of the kingdom},
      "defensive_slots": {[integer] how many defensive battles the kingdom has had this turn}
    },
]}