> For the complete documentation index, see [llms.txt](https://dexhunter.gitbook.io/dexhunter-partners/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexhunter.gitbook.io/dexhunter-partners/data/token-info.md).

# Token Info

Get detailed information about a token.

{% hint style="warning" %}
**Required:** Include `X-Partner-Id` header with your API key on all requests.

**Base URL:** `https://api-us.dexhunterv3.app`
{% endhint %}

***

## Get Token Info

Fetch token metadata.

**Endpoint**

`GET /swap/token/{token_id}`

**Response**

| Field          | Type    | Description       |
| -------------- | ------- | ----------------- |
| `token_id`     | string  | Full token ID     |
| `token_policy` | string  | Policy ID         |
| `token_ascii`  | string  | Asset name        |
| `ticker`       | string  | Token ticker      |
| `is_verified`  | boolean | Verification flag |

{% tabs %}
{% tab title="Example" %}

```javascript
const API_KEY = 'YOUR_API_KEY';
const BASE_URL = 'https://api-us.dexhunterv3.app';
const headers = { 'X-Partner-Id': API_KEY };

const NIGHT =
  '0691b2fecca1ac4f53cb6dfb00b7013e561d1f34403b957cbb5af1fa4e49474854';

const { data: info } = await axios.get(`${BASE_URL}/swap/token/${NIGHT}`, {
  headers,
});
```

{% endtab %}
{% endtabs %}

***

## Get Social Links

Fetch token social media links.

**Endpoint**

`GET /external_stats/links/{token_id}`

**Response**

| Field     | Type   | Description |
| --------- | ------ | ----------- |
| `twitter` | string | Twitter URL |
| `discord` | string | Discord URL |
| `website` | string | Website URL |

{% tabs %}
{% tab title="Example" %}

```javascript
const { data: links } = await axios.get(
  `${BASE_URL}/external_stats/links/${NIGHT}`,
  { headers }
);
```

{% endtab %}
{% endtabs %}

***

## Token ID Format

```
<policy_id (56 chars)><asset_name (hex)>
```

{% hint style="info" %}
**Example:**

* Policy: `0691b2fecca1ac4f53cb6dfb00b7013e561d1f34403b957cbb5af1fa`
* Asset: `4e49474854` (hex for "NIGHT")
* Full ID: `0691b2fecca1ac4f53cb6dfb00b7013e561d1f34403b957cbb5af1fa4e49474854`
  {% endhint %}
