Heroes Profile icon

Heroes Profile

Get data from Heroes Profile API and normalize it into REST API style JSON

General → Map List

AI-generated

Overview

This node interacts with the Heroes Profile API to retrieve and normalize data related to the game "Heroes of the Storm." Specifically, for the General resource with the Map List operation, it fetches information about game maps. The node supports returning the map list in either JSON or CSV format and allows filtering by a specific map name.

Common scenarios where this node is useful include:

  • Fetching a list of available game maps for display or further processing.
  • Integrating Heroes of the Storm map data into dashboards or analytics tools.
  • Automating workflows that depend on map-specific data, such as match analysis or player statistics filtered by map.

Practical example:

  • A user wants to get all maps in JSON format to populate a dropdown menu in another workflow.
  • Another user needs CSV-formatted map data for import into a spreadsheet application.

Properties

Name Meaning
Mode Selects the response format. Options: JSON (default) or CSV.
Map Selects a specific map from a predefined list (e.g., "Alterac Pass", "Cursed Hollow"). If left empty, no map filter is applied.

Output

The node outputs data in the json field of the output items. The structure depends on the selected mode:

  • JSON mode: The output is a JSON array or object representing the list of maps or details of a specific map.
  • CSV mode: The output contains the map data formatted as CSV text.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for the Heroes Profile API.
  • The node makes HTTP requests to https://api.heroesprofile.com/api.
  • Ensure the API key credential is configured properly in n8n to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication errors.
    • Selecting a map name not supported by the API may return empty results or errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • Authentication failures typically indicate invalid credentials; verify and update the API key.
    • Request timeouts or connection errors suggest network issues; check internet access and API availability.
    • Unexpected response formats may occur if the API changes; verify the API documentation and update the node accordingly.

Links and References

Discussion