Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

Metadata Normalization

Through our NFT APIs, you have the option to receive either a normalized or non-normalized NFT metadata.

To use this feature, simply set normalizeMetadata parameter to true.

const Moralis = require("moralis").default;
const { EvmChain } = require("@moralisweb3/common-evm-utils");

const chain = EvmChain.ETHEREUM;

const address = "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB";

const tokenId = "1";

await Moralis.start({
apiKey: "<YOUR_API_KEY>",
// ...and any other configuration
});

const response = await Moralis.EvmApi.nft.getNFTMetadata({
address,
chain,
tokenId,
normalizeMetadata: true,
});

console.log(response.toJSON());

This feature is available in the following NFT APIs: