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 ERC20 Token Holders Timeseries

GEThttps://deep-index.moralis.io/api/v2.2/erc20/:address/holders/historical

Get historical holder statistics for a specific ERC20 token address over a date range

PATH PARAMS
addressstringrequired
The token contract address
QUERY PARAMS
chainstring
The chain to query
fromDatestringrequired

The starting date (format in seconds or datestring accepted by momentjs)

toDatestringrequired

The ending date (format in seconds or datestring accepted by momentjs)

timeFramestringrequired
The timeframe
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/erc20/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599/holders/historical?chain=eth&fromDate=2024-11-25&toDate=2025-01-01&timeFrame=1d', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"page": 1,
"cursor": "",
"result": [
{
"timestamp": "2025-01-01T00:00:00.000Z",
"totalHolders": 104188,
"netHolderChange": 32,
"holderPercentChange": 0.031,
"newHoldersByAcquisition": {
"swap": 159,
"transfer": 522,
"airdrop": 3
},
"holdersIn": {
"whales": "",
"sharks": "",
"dolphins": "",
"fish": 2,
"octopus": 4,
"crab": 19,
"shrimps": 659
},
"holdersOut": {
"whales": "",
"sharks": "",
"dolphins": "",
"fish": 1,
"octopus": 5,
"crab": 21,
"shrimps": 625
}
}
]
}