Skip to main content

Player Profile

Get detailed player statistics and information.

Endpoint

GET /api/clashroyale/player/{playerTag}

Path Parameters

playerTag
string
required
Player tag (URL encoded, e.g., %23L22PCRC9V)

Example Request

cURL
curl -X GET "https://rocks.rive.wtf/api/clashroyale/player/%23L22PCRC9V" \
  -H "Authorization: Bearer YOUR_API_KEY"

All Cards

Get information about all available cards in Clash Royale.

Endpoint

GET /api/clashroyale/cards

Example Request

cURL
curl -X GET "https://rocks.rive.wtf/api/clashroyale/cards" \
  -H "Authorization: Bearer YOUR_API_KEY"

Clan Info

Get detailed information about a clan.

Endpoint

GET /api/clashroyale/clan/{clanTag}

Path Parameters

clanTag
string
required
Clan tag (URL encoded, e.g., %23RGYCGY0V)

Example Request

cURL
curl -X GET "https://rocks.rive.wtf/api/clashroyale/clan/%23RGYCGY0V" \
  -H "Authorization: Bearer YOUR_API_KEY"

Clan Members

Get a list of all members in a clan.

Endpoint

GET /api/clashroyale/members/{clanTag}

Path Parameters

clanTag
string
required
Clan tag (URL encoded)

Search Clans

Search for clans by name.

Endpoint

GET /api/clashroyale/clansearch/{query}

Path Parameters

query
string
required
Search query (clan name)

Example Request

cURL
curl -X GET "https://rocks.rive.wtf/api/clashroyale/clansearch/Nova" \
  -H "Authorization: Bearer YOUR_API_KEY"

Player Chests

Get upcoming chest cycle for a player.

Endpoint

GET /api/clashroyale/chests/{playerTag}

Path Parameters

playerTag
string
required
Player tag (URL encoded)

Battle Log

Get recent battle history for a player.

Endpoint

GET /api/clashroyale/battlelog/{playerTag}

Path Parameters

playerTag
string
required
Player tag (URL encoded)

Example Request

cURL
curl -X GET "https://rocks.rive.wtf/api/clashroyale/battlelog/%23L22PCRC9V" \
  -H "Authorization: Bearer YOUR_API_KEY"
Remember to URL encode player and clan tags. The # symbol should be encoded as %23.