Retrieve NFT Metadata
This API endpoint retrieves the metadata of a Non-Fungible Token (NFT) by its unique token ID
. The token ID serves as a unique identifier for each NFT within a collection, allowing users to access detailed information about a specific NFT.
Request Endpoint: reference
HTTP
GET /api/v2/contracts/{secretType}/{contractAddress}/tokens/{tokenId}/metadata
Parameter
Param Type
Description
Data Type
Mandatory
{secretType}
Path
The blockchain of the contract.
String
✅
{contractAddress}
Path
The contract address.
String
✅
{tokenId}
Path
The id
of the token whose metadata you want to fetch.
Integer
✅
Example Request:
HTTP
GET /api/v2/contracts/MATIC/0x8b92df864bc1cdd103d92cba3c18b3f7492d815a/tokens/2/metadata
Response Body:
JSON
{
"success": true,
"result": {
"name": "NFT with metadata on IPFS",
"description": "This NFTs metadata is stored on IPFS",
"image": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
"imagePreview": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
"imageThumbnail": "https://static.wikia.nocookie.net/parody/images/4/42/74915084_10162764640400387_6139958579186106368_o.jpg",
"backgroundColor": "#eeeeee",
"background_color": "#eeeeee",
"animationUrl": "https://img.arkane.network/marketing/SpaceChickens/space_chickens_trailer.mp4",
"animation_url": "https://img.arkane.network/marketing/SpaceChickens/space_chickens_trailer.mp4",
"externalUrl": "https://en.wikipedia.org/wiki/Space_Chickens_in_Space",
"external_url": "https://en.wikipedia.org/wiki/Space_Chickens_in_Space",
"animationUrls": [
{
"type": "video",
"value": "https://img.arkane.network/marketing/SpaceChickens/space_chickens_trailer.mp4"
},
{
"type": "audio",
"value": "https://file-examples-com.github.io/uploads/2017/11/file_example_WAV_10MG.wav"
}
],
"attributes": [
{
"type": "property",
"name": "Talent",
"value": "Leadership",
"traitType": "Talent",
"trait_type": "Talent"
},
{
Last updated