Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Is it possible to check for how many unique attributes are being used in a specific sanity database?

2 replies
Last updated: Nov 11, 2020
Hello there, I have a question about unique attributes. Is it possible to check for how many unique attributes are being used in a specific sanity database? And if so, how do I check the number of unique attributes for a project?
Nov 11, 2020, 7:40 PM
Hi Victoria! It's indeed possible to track how many attributes you are using in a specific dataset. You should be able to see the relevant attribute count (
fields.count.value
) and limit (
fields.count.limit
) via this URL:
https://<projectId>.<http://api.sanity.io/v1/data/stats/<datasetName|api.sanity.io/v1/data/stats/<datasetName>>
Nov 11, 2020, 8:57 PM
awesome thanks so much!
Nov 11, 2020, 9:17 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?