Documentation Index
Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
In this tutorial, you’ll learn how to retrieve floor prices for any NFT collection using the Moralis API. Floor prices represent the lowest listed price for an NFT in a collection, which is a key metric for understanding collection value and market trends. We’ll use the following Moralis API endpoint:- Get NFT Floor Price - Fetch the current floor price for an NFT collection
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 fetch the floor price:Example Response
Understanding the Response
| Field | Description |
|---|---|
floor_price | Floor price in native token (ETH) |
floor_price_usd | Floor price converted to USD |
floor_price_currency | Currency of the floor price |
marketplace | Marketplace where floor was found |
marketplace_logo | Logo URL of the marketplace |
last_updated | When the floor price was last updated |
Next Steps
- Get All Wallet NFTs - Fetch NFTs for a wallet
- Get NFT Metadata - Get detailed NFT info
- Get NFT Owners - Get ownership data
- API Reference - Full API documentation

