API ReferenceToken APIGet Token AnalyticsGet Token AnalyticsVersion: 2.2Get Token Analytics Mainnet OnlyGEThttps://deep-index.moralis.io/api/v2.2/tokens/:address/analyticsGet analytics for a token by token addressPATH PARAMSaddressstringrequiredThe token addressQUERY PARAMSchainstringThe chain to queryeth0x1polygon0x89bsc0x38avalanche0xa86afantom0xfaarbitrum0xa4b1gnosis0x64base0x2105optimism0xalinea0xe708moonbeam0x504ronin0x7e4pulse0x171solanaResponses200 Returns the token analytics data.objectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport 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));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://deep-index.moralis.io/api/v2.2/tokens/0x6982508145454ce325ddbe47a25d4ec3d2311933/analytics?chain=eth"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/tokens/0x6982508145454ce325ddbe47a25d4ec3d2311933/analytics?chain=eth' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/tokens/0x6982508145454ce325ddbe47a25d4ec3d2311933/analytics?chain=eth" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/tokens/0x6982508145454ce325ddbe47a25d4ec3d2311933/analytics?chain=eth', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the token analytics data.{ "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"}