getNFTMetadata API

Parameters

Returns

  • contract: Contract name, address, external domain and metadata
  • id: NFT ID and UUID
  • title: NFT Title
  • description: NFT description
  • media: Media url for the NFT
  • metadata: Metadata for the NFT

Example

Here is an example request for querying the metadata for tokenId 1117 from contractAddress 0x8b148183c28ff88f, owned by 0x9eef2e4511390ce4.

Request

1
curl https://flow-mainnet.g.alchemy.com/v2/<your-api-key>/getNFTMetadata/?owner=0x9eef2e4511390ce4&contractName=Gaia&contractAddress=0x8b148183c28ff88f&tokenId=1117
Copied!

Response

1
{
2
"contract":{
3
"name":"Gaia",
4
"address":"0x8b148183c28ff88f",
5
"externalDomain":"ballerz.xyz",
6
"contractMetadata":{
7
"storagePath":"Gaia.CollectionStoragePath",
8
"publicPath":"Gaia.CollectionPublicPath",
9
"publicCollectionName":"Gaia.CollectionPublic"
10
}
11
},
12
"id":{
13
"tokenId":"1117",
14
"tokenMetadata":{
15
"uuid":"74657965"
16
}
17
},
18
"title":"BALLER #1012",
19
"description":"A basketball-inspired generative NFT living on the Flow blockchain",
20
"externalDomainViewUrl":"/collection/ballerz//1012",
21
"media":{
22
"uri":"ipfs://QmaUhmEgy5Znagz2ayY2uyn5Xdbsvzm8PkBM1GghtsXihv/1012.png",
23
"mimeType":"image"
24
},
25
"metadata":{
26
"metadata":[
27
{
28
"name":"playmaking",
29
"value":"78"
30
},
31
{
32
"name":"uri",
33
"value":"/collection/ballerz//1012"
34
},
35
{
36
"name":"role",
37
"value":"Player"
38
},
39
{
40
"name":"img",
41
"value":"ipfs://QmaUhmEgy5Znagz2ayY2uyn5Xdbsvzm8PkBM1GghtsXihv/1012.png"
42
},
43
{
44
"name":"shooting",
45
"value":"81"
46
},
47
{
48
"name":"jersey",
49
"value":"Home"
50
},
51
{
52
"name":"title",
53
"value":"BALLER #1012"
54
},
55
{
56
"name":"defense",
57
"value":"86"
58
},
59
{
60
"name":"team",
61
"value":"Cleveland Firebirds"
62
},
63
{
64
"name":"body",
65
"value":"Human IV"
66
},
67
{
68
"name":"description",
69
"value":"A basketball-inspired generative NFT living on the Flow blockchain"
70
},
71
{
72
"name":"accessories",
73
"value":"None"
74
},
75
{
76
"name":"id",
77
"value":"1012"
78
},
79
{
80
"name":"hair",
81
"value":"Afro"
82
},
83
{
84
"name":"number",
85
"value":"13"
86
},
87
{
88
"name":"dunks",
89
"value":"82"
90
}
91
]
92
}
Copied!