> For the complete documentation index, see [llms.txt](https://synap.ac/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://synap.ac/docs/api/reference/insights/list-insightstagdistributions.md).

# List InsightsTagDistributions

```json
{"openapi":"3.0.1","info":{"title":"Synap API","version":"3.0.0"},"tags":[{"name":"Insights"}],"servers":[{"url":"https://api.synap.ac/v3","description":"Production"},{"url":"https://api-stage.synap.ac/v3","description":"Staging"}],"security":[{"SessionAuth":[]},{"PATAuth":[]},{"AutomationAuth":[]},{"LegacySessionAuth":[]}],"components":{"securitySchemes":{"SessionAuth":{"type":"http","scheme":"bearer","description":"Authorize the request using a Session Token.","bearerFormat":"r:<token>"},"PATAuth":{"type":"http","scheme":"bearer","description":"Authorise the request using a personal access token.","bearerFormat":"p:"},"AutomationAuth":{"type":"http","scheme":"bearer","description":"Authorise the request with a short-lived token signed by the automations engine on behalf of a workflow owner.","bearerFormat":"a:<token>"},"LegacySessionAuth":{"type":"apiKey","description":"[Legacy] Authorize the request using a Session Token.","in":"header","name":"X-Syn-Session-Token"}},"schemas":{"InsightsTagDistribution":{"type":"object","required":["id","type"],"properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string","description":"Identifies the Resource.","enum":["InsightsTagDistribution"]},"attributes":{"type":"object","description":"The distribution of average scores across a cohort for one value of one facet. Every score is a percentage, 0-100.","properties":{"facet":{"type":"string","enum":["subject","topic","subtopic","skill","difficulty"],"readOnly":true},"value":{"type":"string","nullable":true,"readOnly":true,"description":"The facet value. Null covers both a hidden tag and responses carrying no value for this facet, which the group charts draw as a single \"--\" category."},"n":{"type":"number","readOnly":true,"description":"Number of scores the distribution was taken over."},"mean":{"type":"number","readOnly":true},"min":{"type":"number","readOnly":true,"description":"The lowest score in the distribution. Whiskers are drawn at whiskerLow/whiskerHigh, not here."},"max":{"type":"number","readOnly":true,"description":"The highest score in the distribution."},"q1":{"type":"number","readOnly":true},"median":{"type":"number","readOnly":true},"q3":{"type":"number","readOnly":true},"whiskerLow":{"type":"number","readOnly":true,"description":"The Tukey fence q1 - 1.5 x IQR, raised to min when the fence sits below the lowest score."},"whiskerHigh":{"type":"number","readOnly":true,"description":"The Tukey fence q3 + 1.5 x IQR, lowered to max when the fence sits above the highest score."},"outliers":{"type":"array","readOnly":true,"items":{"type":"object","required":["score","count"],"properties":{"score":{"type":"number"},"count":{"type":"integer","minimum":1}}},"description":"Each score outside the whiskers, lowest first, with how many data points scored it."},"outlierCount":{"type":"number","readOnly":true,"description":"Number of data points outside the whiskers."},"deciles":{"type":"array","readOnly":true,"minItems":10,"maxItems":10,"items":{"type":"number"},"description":"Score counts in ten buckets, 0-10 through 91-100, lowest first. Each bucket after 0-10 starts at its lower label, so a score between two labels such as 10.5 counts in the lower bucket. A score of exactly 100 counts in 91-100; a score above 100 counts in none."}}},"relationships":{"type":"object","properties":{"userGroup":{"type":"object","description":"This is a resource linkage for a to-one relationship. It is like a Parse Pointer.","readOnly":true,"properties":{"data":{"type":"object","required":["id","type"],"nullable":true,"properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"type":{"type":"string","description":"Identifies the Resource.","enum":["UserGroup"]}}}}}}}}},"ObjectId":{"type":"string","description":"The primary key for each resource."},"BadRequestApiError":{"type":"object","description":"The request was invalid.","properties":{"id":{"type":"string","description":"Unique ID of this error occurrence."},"status":{"type":"string","description":"HTTP status code."},"code":{"type":"string","description":"Synap internal error code."},"title":{"type":"string"},"detail":{"type":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string"},"parameter":{"type":"string"}}}}},"UnauthorizedApiError":{"type":"object","description":"Unauthorized request.","properties":{"id":{"type":"string","description":"Unique ID of this error occurrence."},"status":{"type":"string","description":"HTTP status code."},"code":{"type":"string","description":"Synap internal error code."},"title":{"type":"string"},"detail":{"type":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string"},"parameter":{"type":"string"}}}}},"ForbiddenApiError":{"type":"object","description":"Forbidden request.","properties":{"id":{"type":"string","description":"Unique ID of this error occurrence."},"status":{"type":"string","description":"HTTP status code."},"code":{"type":"string","description":"Synap internal error code."},"title":{"type":"string"},"detail":{"type":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string"},"parameter":{"type":"string"}}}}},"NotFoundApiError":{"type":"object","description":"The request resource could not be found.","properties":{"id":{"type":"string","description":"Unique ID of this error occurrence."},"status":{"type":"string","description":"HTTP status code."},"code":{"type":"string","description":"Synap internal error code."},"title":{"type":"string"},"detail":{"type":"string"},"source":{"type":"object","properties":{"pointer":{"type":"string"},"parameter":{"type":"string"}}}}}}},"paths":{"/insights-tag-distributions":{"get":{"summary":"List InsightsTagDistributions","tags":["Insights"],"parameters":[{"name":"filter","in":"query","required":true,"schema":{"type":"object","description":"One score distribution per value of the requested facet, across the cohort and time frame.","required":["cohort","targetId","timeFrameUnit","timeFrameAmount","facet"],"properties":{"cohort":{"type":"string","enum":["userGroup"],"description":"Only userGroup is supported: the portal view carries no userId and a single user has no distribution."},"targetId":{"type":"string"},"timeFrameUnit":{"type":"string","enum":["days","weeks","months","years"]},"timeFrameAmount":{"type":"integer","minimum":1,"maximum":366,"description":"Ceiling shown is for daily units; the per-unit maxima (days 366, weeks 104, months 36, years 10) live in TimeFrame.MAX_AMOUNT."},"facet":{"type":"string","enum":["subject","topic","subtopic","skill","difficulty"],"description":"The facet whose values the distributions are for."},"tagSetId":{"type":"string","nullable":true},"tagBreakdowns":{"type":"array","items":{"type":"string","enum":["subject","topic","subtopic","skill","difficulty"]},"description":"Extra facets to split each score by before the distribution is taken. Without them a student contributes one score per time period per facet value; pass the facets the equivalent insights-tag-breakdowns request used to reproduce its numbers exactly."}}}}],"responses":{"200":{"description":"Success","content":{"application/vnd.api+json":{"schema":{"required":["data"],"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/InsightsTagDistribution"}},"meta":{"type":"object","properties":{"lastUpdated":{"type":"string","format":"date-time"}}}}}}}},"400":{"description":"Bad Request","content":{"application/vnd.api+json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/BadRequestApiError"}}}}}}},"401":{"description":"Unauthorized","content":{"application/vnd.api+json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/UnauthorizedApiError"}}}}}}},"403":{"description":"Forbidden","content":{"application/vnd.api+json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/ForbiddenApiError"}}}}}}},"404":{"description":"Not Found","content":{"application/vnd.api+json":{"schema":{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/NotFoundApiError"}}}}}}}},"operationId":"insightsTagDistribution.findInsightsTagDistributions"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://synap.ac/docs/api/reference/insights/list-insightstagdistributions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
