List User Video Metrics

An overview of the List User Video Metrics

Endpoint Description

Retrieve a list of all videos in the R1 Discover video library watched by users that are within your accessible companies (subscriptions). Endpoints return detail describing watch metrics.

HTTP Method

GET /api/v2/metrics/metrics/videos/companies/{companyId}

Request

Headers:

  • Content-Type: application/json - Specifies that the request body format is JSON.

  • Accept: application/json - Indicates that the client expects a JSON response.

  • Authorization: Bearer {token} - A valid Bearer token must be provided to authenticate the request.

URL Parameters

  • userId (integer, required): The R1 Discover id of the user to query video data. Example: 1234

Query Parameters:

  • page (integer, required): Specifies the page number in the pagination sequence to retrieve a specific set of results.

  • limit (integer, required): Specifies the number of records to retrieve per page, controlling the volume of data returned.

Request Examples

Response

Meta:

Each List endpoint will contain a meta element which will describe the returned package. In this endpoint, the meta will provide the following information:

  • total_items (Integer): The number of activities returned across all queried companies

  • total pages (integer): The number of pages returned in the call to the endpoint. (Total Items / per_page limit)

  • current_page (integer): Indicates the current page number of the results

  • per_page (integer): Indicates the number of results (topics) that will be listed on a single page. The default is 50, the limit is 100.

Data Dictionary:

  • video_log_id (integer): R1 unique identifier for the video log.

  • video_url (string): The URL to access the video via the Remote Login Token for integration via an iFrame.

  • user_id (integer): The ID of the user that accessed the video.

  • video_title (string): The title of the video.

  • start_time_stamp (string): The date/time the video session was started.

  • completion_time_stamp (string): The date/time the video session was completed.

  • watched_percentage (string): The percentage of the video that was watched in this session.

  • watched_duration (string): The number of seconds of the video that were watched in this session.

Response Examples

Link to endpoint in Postman.

Notes

  • Authorization Required: Ensure the provided Bearer token is valid and has sufficient privileges to access the endpoint.

  • Response Handling: Implement pagination to manage data effectively, especially when dealing with large datasets.

Last updated