Skip to main content

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 normalizedMetadata parameter to true.

import Moralis from "moralis";
import { EvmChain } from "@moralisweb3/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,
normalizedMetadata: true,
});

console.log(response.toJSON());

This feature is available in the following NFT APIs: