Video Data API

Section Contents

Get the Timeline for a Video

class analytics_data_api.v0.views.videos.VideoTimelineView(**kwargs)[source]

Get the counts of users and views for a video.

Example Request

GET /api/v0/videos/{video_id}/timeline/

Response Values

Returns viewing data for each segment of a video. For each segment, the collection contains the following data.

  • segment: The order of the segment in the video timeline.
  • num_users: The number of unique users who viewed this segment.
  • num_views: The number of views for this segment.
  • created: The date the segment data was computed.

Example Response

HTTP 200 OK
Vary: Accept
Content-Type: text/html; charset=utf-8
Allow: GET, HEAD, OPTIONS

[
  {
    "segment": 0,
    "num_users": 472,
    "num_views": 539,
    "created": "2015-05-13T050419"
  },
  {
    "segment": 1,
    "num_users": 450,
    "num_views": 510,
    "created": "2015-05-13T050419"
  },
  {
    "segment": 2,
    "num_users": 438,
    "num_views": 493,
    "created": "2015-05-13T050419"
  }
]