Documentation Index
Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
In this tutorial, you’ll learn how to retrieve detailed metadata for a specific NFT using its contract address and token ID. This includes the name, description, image, attributes/traits, and ownership information. This is essential for building NFT detail pages, verification tools, or collection browsers. We’ll use the following Moralis API endpoint:- Get NFT Metadata - Fetch detailed metadata for a specific NFT
Prerequisites
- Node.js v18+ installed
- A Moralis API key (get one free)
Step 1: Set Up Your Project
Create a new directory for your project and initialize it:Step 2: Create the Script
Create a file calledindex.js and add the following code:
YOUR_API_KEY with your actual Moralis API key.
Step 3: Run the Script
Execute the script to fetch the NFT metadata:Example Response
Understanding the Response
| Field | Description |
|---|---|
token_address | The NFT collection contract address |
token_id | The unique token ID |
owner_of | Current owner’s wallet address |
contract_type | Token standard (ERC721 or ERC1155) |
name | Collection name |
symbol | Collection symbol |
metadata | Raw metadata from token URI |
minter_address | Address that originally minted the NFT |
possible_spam | Whether flagged as spam |
verified_collection | Whether collection is verified |
floor_price | Current collection floor price |
floor_price_usd | Floor price in USD |
Next Steps
- Get NFT Metadata - Get detailed NFT metadata
- NFT Metadata - explore detailed metadata
- NFT Media Images (CDN) - learn how we store NFT images

