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 NFT Floor Price by Contract

GEThttps://deep-index.moralis.io/api/v2.2/nft/:address/floor-price

Get floor price for a given contract.

PATH PARAMS
addressstringrequired
The address of the NFT contract
QUERY PARAMS
chainstring
The chain to query
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.nft.getNFTFloorPriceByContract({
"chain": "0x1",
"address": "0x524cab2ec69124574082676e6f654a18df49a048"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"floor_price": "0.2176",
"floor_price_usd": "564.24",
"currency": "eth",
"marketplace": [
{
"name": "blur",
"logo": "https://cdn.moralis.io/marketplaces/blur.png"
}
],
"last_updated": "2024-08-21T15:59:11.000Z"
}