Clash of Clans icon

Clash of Clans

Comprehensive Clash of Clans API integration with advanced features

Overview

This node integrates with the Clash of Clans API to retrieve detailed information about various game elements. Specifically, the "Get CWL Group" operation fetches information about a Clan War League (CWL) group using its unique CWL Group ID. This is useful for clan leaders or analysts who want to monitor or analyze the status and details of their clan's war league group.

Practical examples include:

  • Retrieving the current state and details of a CWL group to display in clan management dashboards.
  • Automating reports on CWL group performance or membership.
  • Integrating CWL group data into external tools for strategic planning.

Properties

Name Meaning
CWL Group ID The unique identifier of the CWL group from the clan war league. This is required to specify which CWL group’s information to retrieve.

Output

The node outputs a JSON object containing the following structure:

  • operation: The name of the executed operation (getCWLGroup).
  • url: The full URL used to query the Clash of Clans API for the CWL group.
  • data: The JSON response from the Clash of Clans API representing the CWL group details. This typically includes information such as group members, war schedules, and other metadata related to the clan war league group.
  • timestamp: The ISO timestamp when the data was processed.
  • metadata: Additional metadata including:
    • operationType: Categorizes the operation type as "war".
    • 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 to authenticate requests.
  • Internet access to reach the official Clash of Clans API endpoint at https://api.clashofclans.com/v1.

Troubleshooting

  • Common issues:

    • Invalid or missing CWL Group ID will cause the API request to fail.
    • Expired or incorrect API authentication token will result in authorization errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "Operation "getCWLGroup" not supported": Indicates a misconfiguration or typo in the operation parameter.
    • HTTP 401 Unauthorized: Check that the API key credential is correctly set up and valid.
    • HTTP 404 Not Found: The provided CWL Group ID does not exist or is incorrect.
  • Resolutions:

    • Verify the CWL Group ID is correct and properly formatted.
    • Ensure the API key credential is valid and has necessary permissions.
    • Confirm network connectivity and that the Clash of Clans API service is reachable.

Links and References

Discussion