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

# List Events

Retrieve a list of events. Please note that due to our data retention policy,
only events from the last 2 years are available.


## 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
`account` authorization granting the `view-stats` permission can also
be used.



# OpenAPI definition

````json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Stats API",
    "description": "Wistia Stats API",
    "version": "2026.09.0"
  },
  "servers": [
    {
      "url": "https://api.wistia.com/modern"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Stats:Events"
    }
  ],
  "paths": {
    "/stats/events": {
      "get": {
        "summary": "List Events",
        "x-speakeasy-group": "statsEvents",
        "x-speakeasy-name-override": "list",
        "description": "Retrieve a list of events. Please note that due to our data retention policy,\nonly events from the last 2 years are available.\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\n`account` authorization granting the `view-stats` permission can also\nbe used.\n\n",
        "parameters": [
          {
            "name": "media_id",
            "in": "query",
            "description": "An optional identifier for a specific video.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visitor_key",
            "in": "query",
            "description": "An optional identifier for a specific visitor.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Maximum number of events to retrieve (capped at 100).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "The page of events to get data from.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "description": "Start date in the format 'YYYY-MM-DD'.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "description": "End date in the format 'YYYY-MM-DD'.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "X-Wistia-API-Version",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-09"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with a list of events.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "unevaluatedProperties": false,
                    "type": "object",
                    "properties": {
                      "received_at": {
                        "description": "Date and time when the event occurred.",
                        "type": "string",
                        "format": "date-time"
                      },
                      "event_key": {
                        "description": "Unique identifier for the event.",
                        "type": "string"
                      },
                      "visitor_key": {
                        "description": "Identifier for the visitor.",
                        "type": "string"
                      },
                      "embed_url": {
                        "description": "URL of the page where the video was viewed.",
                        "type": "string"
                      },
                      "percent_viewed": {
                        "description": "Decimal number denoting how much of the video was watched.",
                        "type": "number",
                        "format": "float"
                      },
                      "ip": {
                        "description": "IP address of the viewer.",
                        "type": "string"
                      },
                      "org": {
                        "description": "Organization associated with the IP address.",
                        "type": "string"
                      },
                      "country": {
                        "description": "Country based on IP.",
                        "type": "string"
                      },
                      "region": {
                        "description": "Region based on IP.",
                        "type": "string"
                      },
                      "city": {
                        "description": "City based on IP.",
                        "type": "string"
                      },
                      "lat": {
                        "description": "Latitude based on IP.",
                        "type": "number",
                        "format": "float"
                      },
                      "lon": {
                        "description": "Longitude based on IP.",
                        "type": "number",
                        "format": "float"
                      },
                      "email": {
                        "description": "Email of the viewer (if available).",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "media_id": {
                        "description": "Identifier for the video that was watched.",
                        "type": "string"
                      },
                      "media_name": {
                        "description": "Name of the video.",
                        "type": "string"
                      },
                      "media_url": {
                        "description": "URL of the video in Wistia.",
                        "type": "string"
                      },
                      "iframe_heatmap_url": {
                        "description": "URL for the heatmap of the event.",
                        "type": "string"
                      },
                      "thumbnail": {
                        "unevaluatedProperties": false,
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "width": {
                            "type": "integer"
                          },
                          "height": {
                            "type": "integer"
                          },
                          "fileSize": {
                            "type": "integer"
                          },
                          "contentType": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        }
                      },
                      "conversion_type": {
                        "unevaluatedProperties": false,
                        "description": "Type of conversion.",
                        "oneOf": [
                          {
                            "type": "integer"
                          },
                          {
                            "type": "string"
                          }
                        ]
                      },
                      "conversion_data": {
                        "unevaluatedProperties": false,
                        "description": "Additional data related to the conversion.",
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "first_name": {
                            "type": "string"
                          },
                          "is_new_lead": {
                            "type": "boolean"
                          },
                          "last_name": {
                            "type": "string"
                          }
                        }
                      },
                      "user_agent_details": {
                        "unevaluatedProperties": false,
                        "description": "Details about the user agent of the viewer.",
                        "type": "object",
                        "properties": {
                          "browser": {
                            "type": "string"
                          },
                          "browser_version": {
                            "type": "string"
                          },
                          "platform": {
                            "type": "string"
                          },
                          "mobile": {
                            "type": "boolean"
                          }
                        }
                      },
                      "attributes": {
                        "unevaluatedProperties": true,
                        "description": "Raw event attributes returned by the underlying analytics store. The keys mirror the top-level event fields.",
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "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"
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable entity, the request parameters were invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "description": "Error message describing why the request could not be processed.",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "unevaluatedProperties": false,
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "examples": [
                        "Internal server error"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Stats:Events"
        ],
        "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.statsEvents.list();\n\n  console.log(result);\n}\n\nrun();"
            }
          ]
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "javascript",
      "shell",
      "node",
      "python",
      "ruby"
    ]
  }
}
````