Accessing NFT Data
Guide to retrieving NFT content and metadata.
1. Retrieve the NFT & metadata
curl -X 'GET' \
'https://api.ghostmarket.io/api/v2/metadata?chain=bsc&contract=0xF41db445D7eaF45536985cE185ce131FA4b42E68&tokenId=1 | jq .json'{
json: {
"name": "GHOST Genesis NFT #1",
"image": "ipfs://QmefnzTwshjRhZgMpRfRhp5Xg1hdWnWo7cnuZH8QhDmnjQ",
"attributes": [
{
"trait_type": "Genesis",
"value": true,
"display_type": ""
}
],
"properties": {
"type": 2,
"has_locked": false
},
"description": "The owner of this exclusive NFT is granted 100% discount on GhostMarket trading fees, for life."
}
}2. Retrieve the Image/media
IPFS Media
Non IPFS Media
Last updated