Actions24
- Get Capital District Info
- Get Clan
- Get Clan Capital Info
- Get Clan Capital Raid Log
- Get Clan Members
- Get Clan Rankings
- Get Clan War Log
- Get Current War
- Get CWL Group
- Get CWL War
- Get League Info
- Get League Season Rankings
- Get League Seasons
- Get Location Info
- Get Location Rankings
- Get Locations
- Get Player
- Get Player Achievement Progress
- Get Player Battle Log
- Get Player Rankings
- Get Player Upcoming Chests
- Get War Leagues
- Search Clans
- Verify Player Token
Overview
This node integrates with the Clash of Clans API to retrieve detailed information about various game entities such as players, clans, leagues, locations, and wars. Specifically, the "Get League Info" operation fetches detailed data about a particular league identified by its League ID. This is useful for users who want to analyze or display league-specific statistics, rankings, or metadata within their workflows.
Practical examples include:
- Displaying detailed information about a specific league (e.g., Legend League or Titan League) in a dashboard.
- Automating reports that track changes or updates in league details over time.
- Integrating league data into gaming community websites or apps.
Properties
| Name | Meaning |
|---|---|
| League ID | The unique identifier of the league to retrieve information for. Examples: |
- 29000022 for Legend League |
|
- 29000023 for Titan League |
Output
The node outputs a JSON object containing the following structure:
operation: The name of the executed operation (getLeagueInfo).url: The full URL used to query the Clash of Clans API for the league info.data: The JSON response from the Clash of Clans API containing detailed league information. This typically includes league name, icon URLs, and other metadata defined by the API.timestamp: The ISO timestamp when the request was processed.metadata: Additional metadata including:operationType: Categorizes the operation type as"league".apiVersion: The version of the API used ("v1").processedAt: Timestamp indicating when the data was processed.
No binary data output is produced by this operation.
Dependencies
- Requires an active Clash of Clans API key credential configured in n8n.
- The node makes HTTP requests to the official Clash of Clans API endpoint at
https://api.clashofclans.com/v1. - Proper API authentication via Bearer token is mandatory.
Troubleshooting
- Common issues:
- Invalid or missing League ID parameter will cause the API call to fail.
- Expired or incorrect API token will result in authorization errors.
- Network connectivity problems can prevent successful API calls.
- Error messages:
"Operation 'getLeagueInfo' not supported": Indicates an invalid operation selection; ensure the correct operation is chosen.- HTTP 401 Unauthorized: Check that the API key credential is valid and has proper permissions.
- HTTP 404 Not Found: Likely caused by an invalid League ID; verify the league ID is correct.
- Resolution tips:
- Double-check the League ID input matches known league identifiers.
- Verify API credentials are correctly set up and active.
- Ensure network access to the Clash of Clans API endpoint is available.
Links and References
- Official Clash of Clans API documentation: https://developer.clashofclans.com/#/documentation
- League IDs reference (example): Legend League - 29000022, Titan League - 29000023