Get Attribute Insights
GET/api/v2/attributes/:attribute_id/insights
Coverage and value distribution for one attribute across active products (archived products and style parents left out; a product has a value when it is not empty). Includes per-value product counts with units sold and revenue over the last 90 days, the value mix per brand and per product type, where values came from (channel mapping, tag rule, AI suggestion, import, manual edit, merge; values written before source tracking began are unknown), likely duplicate values, pending suggestions, the daily coverage trend and a prioritized list of issues to fix.
products:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
On large catalogs the numbers are computed in the background: the response is 202 with {"status": "computing"} — poll again until status is ready. A failed computation returns {"status": "failed", "message": ...}; pass refresh=1 to recompute. Results are cached for 30 minutes.
The coverage trend starts on the first day the attribute was recorded; earlier history cannot be rebuilt.
Scope: products:read.
Request
Responses
- 200
- 202
- 401
- 403
- 404
- 429
OK
Response Headers
Accepted
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.