# Get CoinGecko Pair

Single pair metadata for CoinGecko.

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

_Last reviewed: 2026-10-07_

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

Requires an API key in the `Authorization` header.

Single pair metadata for CoinGecko.

## 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/pair"
```

**JavaScript**

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

**Python**

```python
import requests

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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | query | `string` | Yes | Pair id in the form `0-{netuid}` where `netuid >= 1` (e.g. `0-1`). |

## Responses

### `200` — CoinGecko pair metadata

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `pair` | `object` | Yes | CoinGecko pair descriptor. Field names are camelCase per the CoinGecko contract. |
| `pair.asset0Id` | `string` | Yes | Asset 0 id. Always `"0"` (TAO). |
| `pair.asset1Id` | `string` | Yes | Asset 1 id — the subnet netuid as a string. |
| `pair.dexKey` | `string` | Yes | DEX key. Always `"taostats"`. |
| `pair.id` | `string` | Yes | Pair id, echoed from the request (`0-{netuid}`). |

### `400` — Invalid pair 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` — Pair 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).
