Clan Battles
This endpoint return battles played by people in your clan. Internally, the server fetches player profiles for everyone who are members. As it is an expensive request, you may wish to lengthen your timeout param in your request as it may take some time for you to receive your response.
You may want to use pagination for this request.
HTTP Request
GET https://api.royaleapi.com/clan/:tag/battles
URL Parameters
Parameter | Description |
---|---|
TAG | The clan tag of the clan to retrieve |
Query String Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
type | string | optional (default to clanMate ) | Type of clan battles to filter (all , war , challenge or clanMate ) |
Response
https://api.royaleapi.com/clan/9PJ82CRC/battles
[
{},
{},
{}
]
Implementation
https://royaleapi.com/clan/9PJ82CRC/battles