# Get CoinGecko Asset

GET /v1/coingecko/asset — Taostats API endpoint in the CoinGecko group.

_Source: https://beta.taostats.io/docs/new/coingecko/get-coingecko-asset_

_Last reviewed: 2026-10-07_

```http
GET https://api.taostats.io/v1/coingecko/asset
```

Requires an API key in the `Authorization` header.

## Try it

Try this request in the browser on the HTML version of this page, or use the code samples below.

### Code samples

**cURL**

```bash
curl -H "Authorization: <YOUR_API_KEY>" \
  "https://api.taostats.io/v1/coingecko/asset"
```

**JavaScript**

```js
const response = await fetch('https://api.taostats.io/v1/coingecko/asset', {
  headers: {
    Authorization: '<YOUR_API_KEY>',
  },
});
const data = await response.json();
```

**Python**

```python
import requests

response = requests.get(
    "https://api.taostats.io/v1/coingecko/asset",
    headers={"Authorization": "<YOUR_API_KEY>"},
)
data = response.json()
```

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | query | `string` | Yes | Asset ID — the subnet netuid as a string (e.g. `"1"`). |

## Responses

### `200` — CoinGecko asset metadata

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `asset` | `object` | Yes | The asset metadata object nested inside `CoinGeckoAssetResponse`. Field names and serde renames mirror the legacy `CoinGeckoAsset` struct exactly. Supply fields are decimal strings (e.g. `"12345.678901234"`), matching the legacy `rust_decimal::Decimal` serialisation output. |
| `asset.circulatingSupply` | `string` | Yes |  |
| `asset.decimals` | `integer (int32)` | Yes |  |
| `asset.id` | `string` | Yes |  |
| `asset.maxSupply` | `string` | Yes |  |
| `asset.name` | `string` | Yes |  |
| `asset.symbol` | `string` | Yes |  |
| `asset.totalSupply` | `string` | Yes |  |

### `400` — Invalid asset id

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Plain-english message describing the failure from the caller's perspective. |
| `status_code` | `integer (int32)` | Yes | HTTP status code (mirrored in the response status line for convenience). |

### `404` — Asset not found

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Plain-english message describing the failure from the caller's perspective. |
| `status_code` | `integer (int32)` | Yes | HTTP status code (mirrored in the response status line for convenience). |

### `500` — Internal server error

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `message` | `string` | Yes | Plain-english message describing the failure from the caller's perspective. |
| `status_code` | `integer (int32)` | Yes | HTTP status code (mirrored in the response status line for convenience). |

Every request needs an `Authorization` header holding your API key — see [Getting started with the Taostats API](https://beta.taostats.io/docs/start-here/getting-started-with-taostats-api).
