NFT Metadata By Token ID
getNFTMetadata - Retrieves the metadata associated with a specific NFT. This endpoint is supported on Ethereum and many L2s, including Polygon, Arbitrum, Optimism, Base, World Chain and more. See the full list of supported networks here.
Path parameters
Query parameters
String - Contract address for the NFT contract (ERC721 and ERC1155 supported).
String - The ID of the token. Can be in hex or decimal format.
String - ‘ERC721’ or ‘ERC1155’; specifies type of token to query for. API requests will perform faster if this is specified.
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.
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
Returns the metadata of the specified NFT.
The contract object that has details of a contract
String - Name of the NFT asset.
String - Brief human-readable description
Details of the image corresponding to this contract
Raw details of the NFT like its tokenUri and metadata info obtained directly from the smart contract
The collection object that has details of a collection
String - Uri representing the location of the NFT’s original metadata blob. This is a backup for you to parse when the metadata field is not automatically populated.
String - ISO timestamp of the last cache refresh for the information returned in the metadata field.
Only present if the request specified orderBy=transferTime
.