API ReferencePrice APINFT PricesGet NFT Historical Floor Price by ContractVersion: 2.2Get NFT Historical Floor Price by ContractGEThttps://deep-index.moralis.io/api/v2.2/nft/:address/floor-price/historicalGet historical floor price for a given contract.PATH PARAMSaddressstringrequiredThe address of the NFT contractQUERY PARAMSchainstringThe chain to queryeth0x1sepolia0xaa36a7polygon0x89bsc0x38bsc testnet0x61avalanche0xa86afantom0xfapalm0x2a15c308dcronos0x19arbitrum0xa4b1chiliz0x15b38chiliz testnet0x15b32gnosis0x64gnosis testnet0x27d8base0x2105base sepolia0x14a34optimism0xaholesky0x4268polygon amoy0x13882linea0xe708moonbeam0x504moonriver0x505moonbase0x507linea sepolia0xe705intervalstringrequiredThe duration to query1d7d30d60d90d1yallcursorstringThe cursor returned in the previous response (used for getting the next page).Responses200 Returns the contract's historical floor priceobjectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport 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);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "chain": "eth", "interval": "1d", "cursor": "", "address": "0x524cab2ec69124574082676e6f654a18df49a048"}result = evm_api.nft.get_nft_historical_floor_price_by_( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/nft/0x524cab2ec69124574082676e6f654a18df49a048/floor-price/historical?chain=eth&interval=1d&cursor=' \ --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/0x524cab2ec69124574082676e6f654a18df49a048/floor-price/historical?chain=eth&interval=1d&cursor=" 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/0x524cab2ec69124574082676e6f654a18df49a048/floor-price/historical?chain=eth&interval=1d&cursor=', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the contract's historical floor price{ "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" } ]}