---
updatedAt: 2026-04-20T20:28:50.000Z
agentTools:
  projectIndex: https://docs.wistia.com/llms.txt
---

# Show Webinar Histograms

Retrieve engagement histogram data for a webinar. Returns arrays of
per-time-bucket counts for attendees, chat activity, and visual focus,
useful for rendering engagement visualizations.


## Requires api token with one of the following permissions
```
Read detailed stats
```

Tokens with the "Act with a team member's permissions" permission
(`all:delegate_to_contact_permissions` scope) can also be used. Requests
made with such a token are authorized using the permissions of the
contact assigned to the token.

An [expiring access token](https://docs.wistia.com/reference/post_expiring-token)
created with the `all:delegate_to_contact_permissions` scope and an
authorization granting the `view-stats` permission on this webinar can also
be used.



# OpenAPI definition

````json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Analytics API",
    "description": "Wistia Analytics API - Bottler-powered analytics endpoints",
    "version": "2026.09.0"
  },
  "servers": [
    {
      "url": "https://api.wistia.com/modern"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Analytics:Webinar"
    }
  ],
  "paths": {
    "/analytics/webinars/{webinarId}/histograms": {
      "get": {
        "summary": "Show Webinar Histograms",
        "x-speakeasy-group": "analyticsWebinar",
        "x-speakeasy-name-override": "getHistograms",
        "description": "Retrieve engagement histogram data for a webinar. Returns arrays of\nper-time-bucket counts for attendees, chat activity, and visual focus,\nuseful for rendering engagement visualizations.\n\n\n## Requires api token with one of the following permissions\n```\nRead detailed stats\n```\n\nTokens with the \"Act with a team member's permissions\" permission\n(`all:delegate_to_contact_permissions` scope) can also be used. Requests\nmade with such a token are authorized using the permissions of the\ncontact assigned to the token.\n\nAn [expiring access token](https://docs.wistia.com/reference/post_expiring-token)\ncreated with the `all:delegate_to_contact_permissions` scope and an\nauthorization granting the `view-stats` permission on this webinar can also\nbe used.\n\n",
        "parameters": [
          {
            "name": "webinarId",
            "in": "path",
            "description": "The hashed ID of the webinar.",
            "required": true,
            "schema": {
              "description": "The hashed ID of the webinar (e.g., \"abc123xyz\")",
              "type": "string"
            }
          },
          {
            "name": "X-Wistia-API-Version",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-09"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success response with webinar histogram data.",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "attendees_histogram": {
                      "description": "Per-time-bucket attendee counts. Each element represents the number of attendees in a 10-second bucket.",
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    },
                    "chat_histogram": {
                      "description": "Per-time-bucket chat message counts. Each element represents the number of chat messages in a 10-second bucket.",
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    },
                    "visual_focus_played_histogram": {
                      "description": "Per-time-bucket visual focus counts. Each element represents the number of attendees with the tab focused in a 10-second bucket.",
                      "type": "array",
                      "items": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized, invalid or missing token",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "code": {
                      "description": "A machine-readable identifier for the specific authorization failure.",
                      "type": "string",
                      "enum": [
                        "unauthorized_credentials",
                        "account_inactive",
                        "unauthorized_scope",
                        "unauthorized_params"
                      ]
                    },
                    "error": {
                      "type": "string",
                      "examples": [
                        "Invalid credentials."
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden, token is valid but account does not have access to feature",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Webinars are not available on your current plan"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Webinar not found or does not belong to account",
            "content": {}
          },
          "409": {
            "description": "The event has not yet reached a terminal state. Analytics are only available after the event has ended.",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "description": "Error message indicating the event has not ended.",
                      "type": "string",
                      "examples": [
                        "Aggregate analytics are not available until the event has ended"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Internal server error"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Analytics service is temporarily unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Analytics service is temporarily unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Analytics:Webinar"
        ],
        "x-readme": {
          "code-samples": [
            {
              "name": "Typescript (SDK)",
              "language": "javascript",
              "code": "import { Wistia } from \"@wistia/wistia-api-client\";\n\nconst wistia = new Wistia({\n  bearerAuth: process.env[\"WISTIA_BEARER_AUTH\"] ?? \"\",\n});\n\nasync function run() {\n  const result = await wistia.analyticsWebinar.getHistograms({\n    webinarId: \"<id>\",\n  });\n\n  console.log(result);\n}\n\nrun();"
            }
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "javascript",
      "shell",
      "node",
      "python",
      "ruby"
    ]
  }
}
````