# Get Asset Details By Asset ID

Through this endpoint users can obtain information on assets by `assetId`.

The details returned could include information on the latest rate and rate fluctuation of different periods of time - 24 hours, a week, one hour, the encoding of the logo, and more.

- **Endpoint:** `GET https://rest.cryptoapis.io/market-data/assets/by-id/{assetId}`
- **Authentication:** `x-api-key` header
- **Credits cost:** 110 credits for 1 result
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/assets/get-asset-details-by-asset-id/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `assetId` | string | yes | Defines the unique ID of the specific asset. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "contracts": [
        {
          "blockchain": "ethereum",
          "fungibleValues": {
            "decimals": 18
          },
          "identifier": "0xdac17f958d2ee523a2206206994597c13d831ec7",
          "network": "mainnet",
          "standard": "ERC-20"
        }
      ],
      "latestRate": {
        "amount": "61704.20995670996",
        "calculationTimestamp": 1636107864,
        "unit": "USD"
      },
      "logo": {
        "encoding": "base64",
        "imageData": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+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Exem0uNTM1LTUuNTY5Yy0uNDg3IDEuOTUzLTMuNDk1Ljk2LTQuNDcuNzE3bC44Ni0zLjQ1Yy45NzUuMjQzIDQuMTE4LjY5NiAzLjYxIDIuNzMzeiIvPjwvZz48L3N2Zz4=",
        "mimeType": "image/svg+xml"
      },
      "name": "Bitcoin",
      "originalSymbol": "BTC",
      "referenceId": "5b1ea92e584bf50020130615",
      "slug": "bitcoin",
      "specificData": {
        "1HourPriceChangeInPercentage": "-0.4277852328344024",
        "1WeekPriceChangeInPercentage": "1.6572304104646762",
        "24HoursPriceChangeInPercentage": "-0.059688916478600924",
        "24HoursTradingVolume": "3116834672.508857",
        "circulatingSupply": "18562881",
        "marketCapInUSD": "1146119021006.8835",
        "maxSupply": "21000000",
        "type": "coin"
      },
      "symbol": "BTC"
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.contracts` | array of object | yes |  |
| `data.item.contracts[].blockchain` | string | yes | Blockchain string full name representation (eg. ethereum) |
| `data.item.contracts[].fungibleValues` | object | no |  |
| `data.item.contracts[].fungibleValues.decimals` | integer | no | Token`s decimal number (points after zero) |
| `data.item.contracts[].identifier` | string | yes | Token`s unique identifier string the provided blockchain and network |
| `data.item.contracts[].network` | string | yes | Network string full name representation (eg. sepolia) |
| `data.item.contracts[].standard` | string | yes | Token`s type representation - exp. ERC-20, Omni, etc.. |
| `data.item.latestRate` | object | yes | Specifies the latest price of the asset. |
| `data.item.latestRate.amount` | string | yes | Represents the amount of the latest rate. |
| `data.item.latestRate.calculationTimestamp` | integer | no | Defines when the price was calculated in UNIX timestamp. Oldest possible timestamp is 30 days. |
| `data.item.latestRate.unit` | string | yes | Specifies the unit of the latest price of the asset. |
| `data.item.logo` | object | yes |  |
| `data.item.logo.encoding` | string | yes | Defines the encoding of the image data which is usually base64. |
| `data.item.logo.imageData` | string | yes | Defines the encoded image data as a string. |
| `data.item.logo.mimeType` | string | yes | Defines the image type of the logo - jpg, png, svg, etc. |
| `data.item.name` | string | yes | Specifies the name of the asset in question. |
| `data.item.originalSymbol` | string | yes | Specifies the asset's original symbol as introduced by its founders. |
| `data.item.referenceId` | string | yes | Defines the unique ID of the specific asset. |
| `data.item.slug` | string | no | Represents the asset`s unique slug string in Crypto APIs listings. |
| `data.item.specificData` | object | yes | Represents a specific asset's data depending on its type (whether it is "crypto" or "fiat"). |
| `data.item.specificData.1HourPriceChangeInPercentage` | string | yes | Represents the percentage of the asset's current price against the its price from 1 hour ago. |
| `data.item.specificData.1WeekPriceChangeInPercentage` | string | yes | Represents the percentage of the asset's current price against the its price from 1 week ago. |
| `data.item.specificData.24HoursPriceChangeInPercentage` | string | yes | Represents the percentage of the asset's current price against the its price from 24 hours ago. |
| `data.item.specificData.24HoursTradingVolume` | string | yes | Represents the trading volume of the asset for the time frame of 24 hours. |
| `data.item.specificData.circulatingSupply` | string | yes | Represents the amount of the asset that is circulating on the market and in public hands. |
| `data.item.specificData.marketCapInUSD` | string | yes | Defines the total market value of the asset's circulating supply in USD. |
| `data.item.specificData.maxSupply` | string | yes | Represents the maximum amount of all coins of a specific asset that will ever exist in its lifetime. |
| `data.item.specificData.type` | string | yes | Represent a subtype of the crypto assets. Could be COIN or TOKEN. |
| `data.item.symbol` | string | yes | Specifies the asset's unique symbol in the Crypto APIs listings. |
