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 Token

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

Get floor price for a given token.

PATH PARAMS
addressstringrequired
The address of the NFT contract
token_idstringrequired
The token ID of the NFT
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.getNFTFloorPriceByToken({
"chain": "0x1",
"address": "0x524cab2ec69124574082676e6f654a18df49a048",
"tokenId": "2441"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"address": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
"token_id": "2441",
"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"
}