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 (With Pagination)

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

Fetch NFT traits for a contract with pagination for efficient navigation of large collections.

PATH PARAMS
addressstringrequired
The address of the NFT contract
QUERY PARAMS
chainstring
The chain to query
cursorstring
The cursor returned in the previous response (used for getting the next page).
limitnumber
The desired page size of the result.
orderstring
The order of the result, in ascending (ASC) or descending (DESC)
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/paginate?chain=eth&limit=25&order=DESC' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"page": "2",
"page_size": "100",
"cursor": "",
"result": {
"trait_type": "Background",
"trait_value": "Lavendar",
"count": 18593,
"percentage": 85.8,
"rarity_label": "Top 4% trait"
}
}