Introduction
In this tutorial, you’ll learn how to build a DEX token screener similar to DexScreener using the Moralis API. The screener will display top tokens by volume with real-time prices, market cap, and price changes. We’ll use the following Moralis API endpoint:- Get Filtered Tokens - Search and discover tokens by various metrics
Prerequisites
- Node.js v18+ installed
- A Moralis API key (get one free)
Step 1: Set Up Your Project
Create a new directory for your project and initialize it:Step 2: Create the Script
Create a file calledindex.js and add the following code:
YOUR_API_KEY with your actual Moralis API key.
Step 3: Run the Script
Execute the script to get the top tokens:Example Response
Understanding the Response
| Field | Description |
|---|---|
tokenAddress | Contract address of the token |
chain | Blockchain the token is on |
name | Token name |
symbol | Token ticker symbol |
logo | URL to token logo image |
priceUsd | Current price in USD |
marketCap | Total market capitalization |
volumeUsd.oneDay | 24-hour trading volume in USD |
pricePercentChange.oneDay | 24-hour price change percentage |
securityScore | Token security score (0-100) |
holders | Number of token holders |
createdAt | When the token was created |
Next Steps
- Get Token Price - Price data
- Get OHLC Data - Historical prices
- Get Token Pairs - Liquidity data
- API Reference - Full API documentation

