Logo
Covalent API Documentation

getAttributesForTraitInCollection

GET https://api.covalenthq.com/v1/:chainName/nft/:collectionContract/traits/:trait/attributes/

Returns: NftCollectionAttributesForTraitResponse

{
  "updated_at" : "{{DATETIME}}",
  "items" : [ {
    "trait_type" : "{{STRING}}",
    "values" : [ {
      "value" : "{{STRING}}",
      "count" : "{{INTEGER}}"
    } ],
    "unique_values" : "{{INTEGER}}"
  } ]
}

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X GET 'https://api.covalenthq.com/v1/:chainName/nft/:collectionContract/traits/:trait/attributes/' -H 'Content-Type: application/json'

ENDPOINTS