Get NFT metadata
Last updated
Last updated
This API endpoint allows you to retrieve metadata for a specific NFT based on the contractId
and nftTokenId
. It also supports optional parameters for token ID formatting.
Description | Data |
---|---|
Key | Value |
---|---|
Parameter | Type | Description |
---|---|---|
As a prerequisite, you must have one or more NFT contracts that can be managed by your account (see getAccountContracts.
Make sure to either provide a contractId
when making the request.
Token ID is always required and its format can be controlled using the tokenIdFormat
parameter.
If using the hex
format for the token ID, ensure it's a valid hexadecimal value.
If a contractId
is used, the base metadata URL retrieved from it combined with the token ID will be used to fetch the metadata.
API Name
HTTP Method
GET
URL
/v1/nft/metadata
Content-Type
application/json
x-api-key
API_KEY
contractId
string
Contract ID to get metadata for
nftTokenId
string
the smart contract that the NFT belongs to (See the note above)
tokenIdFormat
string, optional
NFT token id format. Possible values decimal
or hex
. Defaults to decimal
if it is not specified.