get https://api.xplorer.tech//nft-price/
Retrieves the price of the specified NFT.
Provided Platform
Platform | Mainnet | Testnet |
---|---|---|
Bitcoin | ❌ | ❌ |
BNB Smart Chain | ✅ | ❌ |
Ethereum | ✅ | ❌ |
Klaytn | ✅ | ❌ |
Polygon | ✅ | ❌ |
TestNet does not provide an API to get pricing information.
Monetary Unit
In the return value of the NFT Price API, the token object is the monetary unit of the price value. For example, let's say you received the following return value
{
"type": "ERC721",
"address": "0x81ae0be3a8044772d04f32398bac1e1b4b215aa8",
"name": "Dreadfulz",
"symbol": "Dreadfulz",
"marketplace": "OpenSea",
"nfTokenItems": [
{
"tokenId": "164",
"price": "113.8709149291717416440000",
"token": {
"name": "Ethereum",
"symbol": "ETH",
"address": "0x"
}
}
]
}
Here, the value of price
is 113.8709149291717416440000. The token
points to ETH, so we can see that 113.8709149291717416440000 ETH was paid in the latest transaction.
Get the price of multiple NFT items
The NFT Price API allows you to pass multiple NFT Items (separated by non-breaking commas). Please see the following example
tokenIds=164,8853,9961