# Aggregator API's

You can optionally use our API's to integrate Kanalabs with your application

SWAGGER LINK - <https://ag.kanalabs.io/swagger>

## TOKEN LIST API

you can use our token list api which also have current market price&#x20;

LINK - [https://ag.kanalabs.io/tokens](https://ag.kanalabs.io/tokens?chain=2)

Example code :<br>

```typescript
 const response = await axios.get('https://ag.kanalabs.io/tokens', {
    params: {
      chain: KanaChainID.aptos,
    },
    headers: {
      'Content-Type': 'application/json',
      'X-API-KEY': '//* YOUR API KEY *//',
    },
  });
```

NOTE: KanaChainID.aptos is enum of chains that maintained by kanalabs&#x20;

```typescript
enum KanaChainID {
  'solana' = 1,
  'aptos' = 2,
  'polygon' = 3,
  'bsc' = 4,
  'sui' = 5,
  'ethereum' = 6,
  'base' = 7,
  'zkSync' = 9,
  'Avalanche' = 10,
  'Arbitrum' = 11,
}
```

#### you can also pass an array of tokens if u want to get token details specifical

```typescript
const tokens  = ['0x1::aptos_coin::AptosCoin']  // u can add more tokens 
  
const response = await axios.get('https://ag.kanalabs.io/tokens', {
    params: {
      chain: KanaChainID.aptos,
      tokens: JSON.stringify(tokens), // pls note here , u need to stringify the array
    },
    headers: {
      'Content-Type': 'application/json',
      'X-API-KEY': '//* YOUR API KEY *//',
    },
  });
```

#### &#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kanalabs.io/web3-aggregator-sdk/web3-aggregator-sdk/aggregator-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
