getNFTMetadata

Gets the metadata associated with a given NFT.

Path parameters

apiKeystringRequired

Query parameters

contractAddressstringRequired

String - Contract address for the NFT contract (ERC721 and ERC1155 supported).

tokenIdstringRequired

String - The ID of the token. Can be in hex or decimal format.

tokenTypestringOptional

String - ‘ERC721’ or ‘ERC1155’; specifies type of token to query for. API requests will perform faster if this is specified.

tokenUriTimeoutInMsintegerOptional

No set timeout by default - When metadata is requested, this parameter is the timeout (in milliseconds) for the website hosting the metadata to respond. If you want to only access the cache and not live fetch any metadata for cache misses then set this value to 0.

refreshCachebooleanOptionalDefaults to false

Defaults to false for faster response times. If true will refresh metadata for given token. If false will check the cache and use it or refresh if cache doesn’t exist.

Response

contractobjectOptional

Object - Contract for returned NFT

idobjectOptional
balancestringOptional

String - Token balance

titlestringOptional

String - Name of the NFT asset.

descriptionstringOptional

String - Brief human-readable description

tokenUriobjectOptional
mediaobjectOptional
metadataobjectOptional

Relevant metadata for NFT contract. This is useful for viewing image url, traits, etc. without having to follow the metadata url in tokenUri to parse manually.

timeLastUpdatedstringOptional

String - ISO timestamp of the last cache refresh for the information returned in the metadata field.

errorstringOptional

String - A string describing a particular reason that we were unable to fetch complete metadata for the NFT.

contractMetadataobjectOptional
spamInfoobjectOptional

Information about whether and why a contract was marked as spam.

acquiredAtobjectOptional

Only present if the request specified orderBy=transferTime.