Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Token Analytics Mainnet Only

GEThttps://deep-index.moralis.io/api/v2.2/tokens/:address/analytics

Get analytics for a token by token address

PATH PARAMS
addressstringrequired
The token address
QUERY PARAMS
chainstring
The chain to query
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://deep-index.moralis.io/api/v2.2/tokens/0x6982508145454ce325ddbe47a25d4ec3d2311933/analytics?chain=eth', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"tokenAddress": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
"totalBuyVolume": {
"5m": "",
"1h": 43678.642005116264,
"6h": 129974.13379912674,
"24h": 4583254.969119737
},
"totalSellVolume": {
"5m": 147.69184595604904,
"1h": 393.0296489666009,
"6h": 257421.35479601548,
"24h": 4735908.689740969
},
"totalBuyers": {
"5m": "",
"1h": 33,
"6h": 115,
"24h": 547
},
"totalSellers": {
"5m": 1,
"1h": 2,
"6h": 78,
"24h": 587
},
"totalBuys": {
"5m": "",
"1h": 34,
"6h": 120,
"24h": 587
},
"totalSells": {
"5m": 1,
"1h": 2,
"6h": 87,
"24h": 622
},
"totalLiquidityUsd": "36741131.82999999",
"totalFullyDilutedValuation": "2967517591.181045"
}