Clan War
This endpoint returns data about the current clan war. /clan/:tag/warlog will return data about the previous clan wars and /clan/:tag/battles will return battles of the last few wars with the use of war
set as the type
.
HTTP Request
GET https://api.royaleapi.com/clan/:tag/war
URL Parameters
Parameter | Description |
---|---|
TAG | The clan tag of the clan to retrieve |
Response
Different responses might be provided if the clan is on different state
s (warDay
or collectionDay
)
{
"state": "look below for possible states",
"warEndTime or collectionEndTime": number,
"clan": {
...
"badge": {...}
},
"participants": [...]
}
Full JSON Responses
- Not In War
{ "state": "notInWar" }
- Matchmaking
- https://api.royaleapi.com/clan/80LCC09P/war
- Nova l Ger 4 (#80LCC09P)
- Collection Day
- https://api.royaleapi.com/clan/9PJ82CRC/war
- 100T Alpha (#9PJ82CRC)
- War Day
- https://api.royaleapi.com/clan/9LPVG9UC/war
- 100T Zen (#9LPVG9UC)