Skip to main content

ankr_getNFTMetadata

Get metadata and attributes for a single NFT

POST 

/?ankr_getNFTMetadata

Returns full metadata for a single NFT (ERC-721, ERC-1155, ENS, or POAP) — collection info, contract type, traits, image URL, and tokenURI.

Pass the contractAddress of the collection, the tokenId, and the blockchain the NFT lives on. Set forceFetch: true to bypass Ankr's metadata cache and read directly from the contract (slower; useful when the cached metadata is stale).

Part of the NFT API product (700 compute units per call, $0.00007 at base rate).

Request

Responses

Success. JSON-RPC result contains metadata (chain, contract type, IDs) and attributes (description, image, traits). JSON-RPC errors are returned with HTTP 200; check for an error key in the response body.