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

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
200Returns detailed information about NFT sales
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/nft/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/price?chain=eth' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
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
}