Similar Videos

The Ooyala Discovery similar videos API returns videos that are similar to the video that you specify. For example, if a viewer is watching skydiving videos, the Ooyala Discovery algorithms might return other skydiving or extreme sports videos.

Note: Rather than constructing ad hoc requests (with individual parameters for each request), consider using discovery profiles to centralize your settings and recommendations behavior. Discovery profiles are defined configurations of settings created by you, which you then reuse by reference on the GET routes. For more information, see Discovery Profiles.

Get Similar Videos

[GET] /v2/discover/similar/assets/embed_code?score_type=default?

Get Similar Remote Assets

[GET] /v2/discover/similar/externalassets/embed_code?score_type=default?

Get Videos Similar to the Live Stream Content

[GET] /v2/discover/similar/live_assets/virtual_asset_id?score_type=default?    

Editorial Query String Parameters

See the description of the editorial query string parameters, such as discovery_profile_id in Query String Parameters.

Note: Rather than constructing ad hoc requests (with individual parameters for each request), consider using discovery profiles to centralize your settings and recommendations behavior. Discovery profiles are defined configurations of settings created by you, which you then reuse by reference on the GET routes. For more information, see Discovery Profiles.

Examples

This example returns two videos that are related to an asset ID:
[GET] /v2/discover/similar/assets/{asset_id}?score_type=default? 

which returns a response similar to the following:

    { "results": [   {   "preview_images":
      "<previewImage>\n<url>image_url</url>\n<width>400</width>\n<height>250</height>\n</previewImage>",
      "publishing_rule_id": "rule_id",
      "description": "Video compilation of pictures from Arthur's second birthday.",
      "bucket_info":
      "1{\"encoded\":\"encode_id",\"position\":0}",   
      "created_at": "2014-09-11 21:15:16 +0000",  
      "content_type": "Video",   
      "reason": "label:2898278",   
      "name": "arthurbday.mp4",   
      "hostedAtURL": null,   
      "preview_image_url":
      "https://asseturl.com", 
      "external_id": null,   "duration": "37033",
      "embed_code": "embed_code" 
     },   
     {   "preview_images":
      "<previewImage>\n<url>image_url</url>\n<width>320</width>\n<height>180</height>\n</previewImage>",   
      "publishing_rule_id": "rule_id",
      "description": "Winning score was 64.5%",
      "bucket_info":
      ...
Note:

Try out the code samples using your account credentials in the Ooyala Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad. To launch the scratchpad, go to Ooyala API Scratchpad.

해당 내용이 도움 되었습니까?