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 Sale Prices by Collection

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

Get the sold price for an NFT contract for the last x days (only trades paid in ETH).

PATH PARAMS
addressstringrequired
The address of the NFT collection
QUERY PARAMS
chainstring
The chain to query
daysnumber

The number of days to look back to find the lowest price If not provided 7 days will be the default and 365 is the maximum

Responses
API KEY
import Moralis from 'moralis';

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

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

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"last_sale": {
"transaction_hash": "string",
"block_timestamp": "string",
"buyer_address": "string",
"seller_address": "string",
"price": "string",
"price_formatted": "string",
"usd_price_at_sale": "string",
"current_usd_value": "string",
"token_id": "string",
"payment_token": {
"token_name": "string",
"token_symbol": "string",
"token_logo": "string",
"token_decimals": "string",
"token_address": "string"
}
},
"lowest_sale": {
"transaction_hash": "string",
"block_timestamp": "string",
"buyer_address": "string",
"seller_address": "string",
"price": "string",
"price_formatted": "string",
"usd_price_at_sale": "string",
"current_usd_value": "string",
"token_id": "string",
"payment_token": {
"token_name": "string",
"token_symbol": "string",
"token_logo": "string",
"token_decimals": "string",
"token_address": "string"
}
},
"highest_sale": {
"transaction_hash": "string",
"block_timestamp": "string",
"buyer_address": "string",
"seller_address": "string",
"price": "string",
"price_formatted": "string",
"usd_price_at_sale": "string",
"current_usd_value": "string",
"token_id": "string",
"payment_token": {
"token_name": "string",
"token_symbol": "string",
"token_logo": "string",
"token_decimals": "string",
"token_address": "string"
}
},
"average_sale": {
"price": "string",
"price_formatted": "string",
"current_usd_value": "string"
},
"total_trades": 1
}