Wars

get
Authorizations
Path parameters
clanTagstringRequired
Responses
200Success
application/json
get
GET /v1/wars/{clanTag}/clan-war-leagues/groups HTTP/1.1
Host: api.clashperk.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200Success
{
  "season": "text",
  "rounds": [
    {
      "warTags": [
        "text"
      ]
    }
  ],
  "clans": [
    {
      "tag": "text",
      "name": "text",
      "leagueId": 1
    }
  ],
  "wars": [
    {
      "state": "text",
      "battleModifier": "text",
      "teamSize": 1,
      "startTime": "text",
      "preparationStartTime": "text",
      "endTime": "text",
      "clan": {
        "tag": "text",
        "name": "text",
        "badgeUrls": {
          "large": "text",
          "small": "text",
          "medium": "text"
        },
        "clanLevel": 1,
        "attacks": 1,
        "stars": 1,
        "destructionPercentage": 1,
        "members": [
          {
            "attacks": [
              {
                "attackerTag": "text",
                "defenderTag": "text",
                "stars": 1,
                "destructionPercentage": 1,
                "order": 1,
                "duration": 1
              }
            ],
            "bestOpponentAttack": {
              "attackerTag": "text",
              "defenderTag": "text",
              "stars": 1,
              "destructionPercentage": 1,
              "order": 1,
              "duration": 1
            },
            "mapPosition": 1,
            "name": "text",
            "opponentAttacks": 1,
            "tag": "text",
            "townhallLevel": 1
          }
        ]
      },
      "opponent": {
        "tag": "text",
        "name": "text",
        "badgeUrls": {
          "large": "text",
          "small": "text",
          "medium": "text"
        },
        "clanLevel": 1,
        "attacks": 1,
        "stars": 1,
        "destructionPercentage": 1,
        "members": [
          {
            "attacks": [
              {
                "attackerTag": "text",
                "defenderTag": "text",
                "stars": 1,
                "destructionPercentage": 1,
                "order": 1,
                "duration": 1
              }
            ],
            "bestOpponentAttack": {
              "attackerTag": "text",
              "defenderTag": "text",
              "stars": 1,
              "destructionPercentage": 1,
              "order": 1,
              "duration": 1
            },
            "mapPosition": 1,
            "name": "text",
            "opponentAttacks": 1,
            "tag": "text",
            "townhallLevel": 1
          }
        ]
      },
      "attacksPerMember": 1,
      "round": 1,
      "warTag": "text"
    }
  ]
}
get
Authorizations
Path parameters
clanTagstringRequired
Responses
200Success
application/json
get
GET /v1/wars/{clanTag}/clan-war-leagues/clan HTTP/1.1
Host: api.clashperk.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200Success
{
  "season": "text",
  "rounds": [
    {
      "warTags": [
        "text"
      ]
    }
  ],
  "clans": [
    {
      "tag": "text",
      "name": "text",
      "leagueId": 1
    }
  ],
  "wars": [
    {
      "state": "text",
      "battleModifier": "text",
      "teamSize": 1,
      "startTime": "text",
      "preparationStartTime": "text",
      "endTime": "text",
      "clan": {
        "tag": "text",
        "name": "text",
        "badgeUrls": {
          "large": "text",
          "small": "text",
          "medium": "text"
        },
        "clanLevel": 1,
        "attacks": 1,
        "stars": 1,
        "destructionPercentage": 1,
        "members": [
          {
            "attacks": [
              {
                "attackerTag": "text",
                "defenderTag": "text",
                "stars": 1,
                "destructionPercentage": 1,
                "order": 1,
                "duration": 1
              }
            ],
            "bestOpponentAttack": {
              "attackerTag": "text",
              "defenderTag": "text",
              "stars": 1,
              "destructionPercentage": 1,
              "order": 1,
              "duration": 1
            },
            "mapPosition": 1,
            "name": "text",
            "opponentAttacks": 1,
            "tag": "text",
            "townhallLevel": 1
          }
        ]
      },
      "opponent": {
        "tag": "text",
        "name": "text",
        "badgeUrls": {
          "large": "text",
          "small": "text",
          "medium": "text"
        },
        "clanLevel": 1,
        "attacks": 1,
        "stars": 1,
        "destructionPercentage": 1,
        "members": [
          {
            "attacks": [
              {
                "attackerTag": "text",
                "defenderTag": "text",
                "stars": 1,
                "destructionPercentage": 1,
                "order": 1,
                "duration": 1
              }
            ],
            "bestOpponentAttack": {
              "attackerTag": "text",
              "defenderTag": "text",
              "stars": 1,
              "destructionPercentage": 1,
              "order": 1,
              "duration": 1
            },
            "mapPosition": 1,
            "name": "text",
            "opponentAttacks": 1,
            "tag": "text",
            "townhallLevel": 1
          }
        ]
      },
      "attacksPerMember": 1,
      "round": 1,
      "warTag": "text"
    }
  ]
}

Was this helpful?