Related Video API 1.2

This API lets you retrieve related videos for a given video, broken down into various types.

URL

Authentication

  • Each use of any VideoSurf API is subject to the Terms Of Use and requires you to provide a valid client_id and client_key
  • client_id - A human readable client identifier. Please pick something short and descriptive.
    • Required
    • Type: String
    • Example: client_id=your_domain
  • client_key - This is an authorization token issued to you by VideoSurf. Obtain one here.
    • Required
    • Type: String
    • Example: client_key=900d77b8e40e60f0113dccc2973f2ed1

Inputs

  • id - A VideoSurf video id.
    • Required
    • Type: String
    • Example: id=60467075
  • visual_summary_size - The maximum number of thumbnails (per video) to return information for in the VideoSurf visual summary. Note that you will always receive information about the sprite that contains the top 12 most interesting frames in the video's summary. This argument specifies which frames you would like to receive more detailed information about. Each set of frame information includes a number indicating where it is found in the sprite so that you can display it correctly. The frames will be sorted by time. It is important to specify the correct count here so that you will be able to properly display the N most important thumbnails, as decided by our algorithms.
    • Optional
    • Type: Number
    • Default: 8
    • Maximum: 12
    • Example: visual_summary_size=12
  • include_videos_without_summaries - Should your results include videos for which VideoSurf has not yet generated a visual video summary? Setting this to true (1) will improve the breadth of the results returned to you, but some of those results may contain an empty visual_video_summary in the output. You will still recieve a title, description, thumbnail and various other information about the video.
    • Optional
    • Type: Number
    • Default: 1
    • Maximum: 1
    • Possible Values:
      1Include videos without summaries in the results, this is the default
      0Exclude videos without summaries
    • Example: include_videos_without_summaries=0
  • callback - An optional callback function to wrap the response. This is useful for client side scripting with a technique called JSONP. This will only be utilized if the output_format is json.
    • Optional
    • Type: String
    • Example: callback=my_fn - This will result in a response that looks like this: my_fn({ json goes here });
  • output_format - Format of the response, either as a JSON object or serialized PHP.
    • Optional
    • Type: String
    • Default: json
    • Possible Values:
      jsonJSON object (more info on json). You can also optionally specify &json_ctype_explicit=1 if you would like the json output to have the content type of application/json. By default it is text/html to aid in debugging in the browser.
      phpSerialized PHP (more info on serialized php)
    • Example: output_format=php

Output


X

We'd love to hear your feedback!X

Select an option:


Add Comments:

Your Email
(Optional - So we can get back to you)

Cancel
Thanks !

Your feedback is vital to making VideoSurf better.