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

Get NFT Traits by Collection

GEThttps://deep-index.moralis.io/api/v2.2/nft/:address/traits

Explore the distinct traits of NFTs in a contract, showcasing their unique attributes.

PATH PARAMS
addressstringrequired
The address of the NFT contract
QUERY PARAMS
chainstring
The chain to query
Responses
200Returns the traits
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/nft/0x524cab2ec69124574082676e6f654a18df49a048/traits?chain=eth' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"traits": {
"trait_type": "Background",
"values": [
""
]
}
}