API ReferenceNFT APIGet NFT metadataGet NFT metadataGEThttps://solana-gateway.moralis.io/nft/:network/:address/metadataGets the contract level metadata (mint, standard, name, symbol, metaplex) for the given contractPATH PARAMSnetworkstringrequiredThe network to queryaddressstringrequiredThe address to queryQUERY PARAMSmediaItemsbooleanShould return media itemsfalsetrueResponses200400Bad Request404Not Found429Too Many Requests500Internal Server ErrorAPI KEYTest Live APIcURLNode.jsPythonGoPHPcurl --request GET \ --url 'https://solana-gateway.moralis.io/nft/mainnet/So11111111111111111111111111111111111111112/metadata?mediaItems=false' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' // Node.js v18+ has native fetch support// No additional dependencies requiredconst options = { method: 'GET', headers: { accept: 'application/json', 'X-API-Key': 'YOUR_API_KEY' },};fetch('https://solana-gateway.moralis.io/nft/mainnet/So11111111111111111111111111111111111111112/metadata?mediaItems=false', options) .then(response => response.json()) .then(response => console.log(response)) .catch(err => console.error(err));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://solana-gateway.moralis.io/nft/mainnet/So11111111111111111111111111111111111111112/metadata?mediaItems=false"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)package mainimport ( "fmt" "net/http" "io")func main() { url := "https://solana-gateway.moralis.io/nft/mainnet/So11111111111111111111111111111111111111112/metadata?mediaItems=false" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://solana-gateway.moralis.io/nft/mainnet/So11111111111111111111111111111111111111112/metadata?mediaItems=false', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 { "mint": "", "address": "", "standard": "", "name": "", "symbol": "", "tokenStandard": "", "description": "", "imageOriginalUrl": "", "externalUrl": "", "metadataOriginalUrl": "", "totalSupply": "", "attributes": { "traitType": "" }, "creators": { "address": "", "share": "", "verified": "" }, "media": "", "possibleSpam": ""}