Skip to main content
Version: 2.2

How to get the top NFT collections by trading volume


Before getting started, make sure you have the following ready:

  • Node v.14+ or Python
  • NPM/Yarn or Pip

Step 1: Setup Moralis

First register your Moralis account and get your Moralis API Key.

Once you have your Moralis API Key, install the Moralis SDK in your project.

npm install moralis @moralisweb3/common-evm-utils

Step 2: Get the top NFT collections by trading volume

In order to get the top NFT collections by trading volume, Moralis provides you with a getHottestNFTCollectionsByTradingVolume endpoint to do so. To use the API, you can copy the following code:

const Moralis = require("moralis").default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");

const runApp = async () => {
await Moralis.start({
apiKey: "YOUR_API_KEY",
// ...and any other configuration

const response =
await Moralis.EvmApi.marketData.getHottestNFTCollectionsByTradingVolume();



Step 3: Run the script

To run the script, enter the following command:

node index.js

In your terminal, you should see the following JSON response:

"rank": 1,
"collection_title": "Bored Ape Yacht Club",
"collection_image": "",
"volume_usd": "8261189.224011",
"volume_24hr_perecent_change": "17.09",
"floor_price_usd": "79591.5288",
"floor_price_24hr_percent_change": "0.05",
"average_price_usd": "39717.255884668266"
"rank": 2,
"collection_title": "Mutant Ape Yacht Club",
"collection_image": "",
"volume_usd": "3374077.733755",
"volume_24hr_perecent_change": "6.29",
"floor_price_usd": "16028.433180000002",
"floor_price_24hr_percent_change": "-0.69",
"average_price_usd": "15915.461008278302"
"rank": 3,
"collection_title": "CryptoPunks",
"collection_image": "",
"volume_usd": "1835336.891",
"volume_24hr_perecent_change": "30.13",
"floor_price_usd": "90913.539",
"floor_price_24hr_percent_change": "3.43",
"average_price_usd": "101963.16061111112"

Congratulations 🥳 you just got the top NFT collections by trading volume using Market Data API!

API Reference

If you want to know more details on the endpoint and optional parameters, check out:


If you face any trouble following the tutorial, feel free to reach out to our community engineers in our Discord or Forum to get 24/7 developer support.