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

Search Tokens

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

Search for tokens based on contract address, token name or token symbol. Premium endpoint available as an add-on. Please contact support for access details.

QUERY PARAMS
chainsstringrequired
The chain(s) to query
querystringrequired
Search query - can be token address, token name or token symbol
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/search?chains=eth&query=pepe', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"total": 10,
"result": [
{
"tokenAddress": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
"chainId": "0x1",
"name": "Pepe",
"symbol": "PEPE",
"blockNumber": 17046105,
"blockTimestamp": 1681483883,
"usdPrice": 0.000012302426023896,
"marketCap": 5056032434.591353,
"experiencedNetBuyers": {
"oneDay": -34,
"oneWeek": -176
},
"netVolumeUsd": {
"oneDay": -212308.385726963
},
"liquidityChangeUSD": {
"oneDay": -298883.8224104196
},
"usdPricePercentChange": {
"oneDay": -3.7369101031758394
},
"volumeUsd": {
"oneDay": 8575800.708427625
},
"securityScore": 92,
"logo": "https://adds-token-info-29a861f.s3.eu-central-1.amazonaws.com/marketing/evm/0x6982508145454ce325ddbe47a25d4ec3d2311933_icon.png"
}
]
}