API ReferencePrice APINFT PricesGet NFT Sale Prices by Token IDVersion: 2.2Get NFT Sale Prices by Token IDGEThttps://deep-index.moralis.io/api/v2.2/nft/:address/:token_id/priceGet the sold price for an NFT token for the last x days (only trades paid in ETH).PATH PARAMSaddressstringrequiredThe address of the NFT collectiontoken_idstringrequiredThe token id of the NFT collectionQUERY PARAMSchainstringThe chain to queryeth0x1polygon0x89bsc0x38avalanche0xa86aarbitrum0xa4b1base0x2105optimism0xadaysnumberThe number of days to look back to find the lowest price If not provided 7 days will be the default and 365 is the maximumResponses200 Returns detailed information about NFT salesobjectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport Moralis from 'moralis';try { await Moralis.start({ apiKey: "YOUR_API_KEY" }); const response = await Moralis.EvmApi.nft.getNFTSalePrices({ "chain": "0x1", "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D", "tokenId": "1" }); console.log(response.raw);} catch (e) { console.error(e);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth", "address": "0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D", "token_id": "1"}result = evm_api.nft.get_nft_sale_prices( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/nft/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/1/price?chain=eth' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/nft/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/1/price?chain=eth" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/nft/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D/1/price?chain=eth', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns detailed information about NFT sales{ "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}