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://&lt;projectId&gt;.<http://api.sanity.io/v1/data/stats/&lt;datasetName|api.sanity.io/v1/data/stats/&lt;datasetName>&gt;
Nov 11, 2020, 8:57 PM
awesome thanks so much!
Nov 11, 2020, 9:17 PM

Sanity.io – build remarkable experiences at scale

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