Crypto APIs icon

Crypto APIs

Interact with Crypto APIs REST API

Actions113

Overview

This node interacts with the Crypto APIs REST API to retrieve detailed information about a specific crypto asset by its Asset ID. It is part of the "Market Data & Prices" resource group and supports the operation "Get Asset Details By Asset ID". This operation is useful when you need to fetch comprehensive data about a particular cryptocurrency asset, such as metadata, market statistics, or other relevant details identified uniquely by its asset ID.

Practical examples include:

  • Displaying detailed asset information in a crypto portfolio dashboard.
  • Fetching asset metadata for use in trading bots or analytics tools.
  • Integrating asset details into financial reports or alerts.

Properties

Name Meaning
assetId The unique identifier of the crypto asset whose details are to be retrieved.
context (Optional) Additional context or parameters that may influence the asset details output.

Output

The node outputs an array of JSON objects containing the detailed information about the requested asset. Each object corresponds to the response from the Crypto APIs endpoint for the given asset ID. The structure typically includes fields such as asset metadata, market data, and other descriptive attributes provided by the API.

If the API returns binary data (not indicated here), it would represent associated files or media related to the asset, but this node primarily handles JSON responses.

Dependencies

  • Requires an active connection to the Crypto APIs REST API.
  • Needs an API key credential configured in n8n to authenticate requests.
  • Reads a local OpenAPI specification file (2024-12-12-final.json) bundled with the node to dynamically resolve API paths and parameters.
  • Uses internal helper functions to perform HTTP requests to the Crypto APIs service.

Troubleshooting

  • Operation Not Found Error: If the specified operation ("Get Asset Details By Asset ID") is not found in the API specification file, ensure the node version and bundled spec file are up to date.
  • Missing Required Parameters: The assetId property is required; omitting it will cause errors. Make sure to provide a valid asset ID string.
  • API Authentication Errors: Verify that the API key credential is correctly set up and has sufficient permissions.
  • Network or API Errors: Handle possible network issues or API rate limits by enabling the node's "Continue On Fail" option to prevent workflow interruption.
  • Empty or Unexpected Responses: Check if the provided asset ID exists and is valid within the Crypto APIs database.

Links and References

Discussion