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

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

Get historical floor price for a given contract.

PATH PARAMS
addressstringrequired
The address of the NFT contract
QUERY PARAMS
chainstring
The chain to query
intervalstringrequired
The duration to query
cursorstring
The cursor returned in the previous response (used for getting the next page).
Responses
API KEY
import Moralis from 'moralis';

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

const response = await Moralis.EvmApi.nft.getNFTHistoricalFloorPriceByContract({
"chain": "0x1",
"interval": "1d",
"cursor": "",
"address": "0x524cab2ec69124574082676e6f654a18df49a048"
});

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