Real-time Activity Stream API 1.1

Use this real time stream to get up to the second access to the videos that are being watched on VideoSurf right now! This API is not like the others. It is a real time stream that is meant to be accessed via "long-polling" and not via frequent traditional REST style requests.

Demo of the stream in use

URL

Special Restrictions

  • Unlike our other RESTful APIs, this one spits out a continuous stream of data. For this reason, it's best consumed by long running connections rather than short requests. So that we can best serve as many API consumers as possible, your use of this streaming API will be limited to one simultaneous connection per client_key.

    You should utilize your one connection to create a local buffer that can then serve all of the users of the services you create with this API. We trust that you will not attempt to register multiple client_keys to circumvent this restriction.

    Unlike our other APIs, this streaming API will only return output in JSON format.

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

  • filter_level - You can filter the stream in various ways
    • Optional
    • Type: String
    • Default: moderate_safe
    • Possible Values:
      moderate_safeFilters out explicit content
      strict_safeFilters out explicit and even moderately explicit content
      rawThe raw stream of all videos viewed on VideoSurf, including explicit content
      explicit_onlyReturn only explicit content ;
    • Example: filter_level=strict_safe

Output

  • videos - An array of video information. Each video has the following information:
    • video_id - A unique ID identifying this video in the VideoSurf index.
    • title - Title of the video.
    • url - URL of the VideoSurf video page.
    • source - Display name of the provider's site. (e.g. Hulu, Youtube)
    • thumbnail - URL of the default VideoSurf thumbnail for this video.
    • length - Duration of the video in seconds.
    • entity_ids - A comma separated list of entities related to this video, may be empty

X

Log In or Sign UpX

Beta Login





Sign Up



Your username can only contain letters or numbers





Log In or Sign UpX

Log In Temporarily Unavailable

VideoSurf is undergoing some maintenance to improve the site at the moment.

You can continue to search and browse as usual, but some of the 'log in required' functionalitiy is temporarily unavailable.

Check back in a few minutes and everything should be back to normal.

Sorry for the inconvenience!

The VideoSurf Team

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.