GELD VERDIENEN met je video's?! Klik hier om GRATIS te registreren

Zideo API

  • Retrieve video data
  • Retrieve channel data
  • Authorize users
  • Post video data (Authentication needed)

Zideo API Table of Contents

Zideo Data API

The Zideo video sharing site allows Web application developers to access public content through its developer API. The SimpleXML extension in PHP is ideal for processing the XML feeds generated by this API and using them to build customized PHP applications. This article introduces the Zideo Data API, demonstrates how you can use it to browse user-generated video content; access video metadata and perform keyword searches.

Feed URL

Variables :

  • channel - contains the channel ID
  • partner - contains the partner ID or Username
  • search - contains the search string
  • limit - contains the number of results (max 1000 per feed)
  • start - contains the start page of the feed
  • orderby - contains the order of the feed (views, rating, date)
  • config - (for zideo corporate users) contains the player / config ID
  • zideo & playzideo - contains the video id
  • height - default height of the player
  • width - default width of the player
  • action = channel - retreives channeldata (username optional)
  • The return data displays a field called status, and has different values
  • 0 - Video is offline
  • 1 - Video is converted
  • 2 - Video is converted
  • 100 - Video is pending for conversion
  • 101 - Video is converting
  • 666 - Video conversion failed
  1. Example 1:
  2. Example 2:
  3. Example 3:
  4. Example 4:
  5. Example 5 Retreiving channel data:

Zideo post API

The Zideo post API ables confirmed API users post video data on the zideo network. To start with the post API contact Zideo to register your api and retreive the API keys.

Registration of the API

Zideo have to confirm the API and creates a API Key / API Secret for your application .

To create the API Key we need the following information :

  • Api Name
  • Ip range min IP // max IP wherefrom the API connects
  • Development email address

Posting video data

To post a video post a HTTP-POST with the encoding type "multipart/form-data" on the following URL.

The following parameters have to be posted

  • apiKey (required)
  • apiSecret (required)
  • token1 (required)
  • token2 (required)
  • title (required)(max length 255)
  • description (optional)(no max length
  • tags (optional separated by spaces)(no max length)
  • file (required)
  • category (optional)
  • channel[] (array with keys) -> channel_id (see data api)
  • private (optional, can be either 0, 1 or 2)
  • commercial (optional, can be either 0 or 1)

After a succesful upload the system returns a XML with the metadata of the video.

The following categories are used by Zideo.
Entertainment and art: 6d596f3d
Cars & Vehicles: 6d6f453d
Animals: 6d6f493d
Film & TV: 6d6f513d
Fun & Entertainment: 6d6f553d
Informative: 6d6f593d
Music: 6d6f633d
Events: 6d6f673d
News: 6d6f6b3d
Vacation & Travel: 6d6f6f3d
Sports & Games: 6d34453d
Brand Channel: 6d34493d
Gadgets: 6d344d3d

Example PHP Curl

	        $fullfilepath = 'C:\Downloads\video.flv';
	        $upload_url = '';
	        $params = array(
	        $ch = curl_init();
	        curl_setopt($ch, CURLOPT_VERBOSE, 1);
	        curl_setopt($ch, CURLOPT_URL, $upload_url);
	        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	        curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
	        $response = curl_exec($ch);
	        echo $response;

Zideo update API

To update a video post a HTTP-GET to the following URL.[playzideo]&apiKey=[apiKey]&apiSecret=[apiSecret]&token1=[token1]&token2=[token2]&title=[title]&description=[description]&category=[category]&private=[private]&commercial=[commercial]
The parameters in the URL above have to be filled in appropiately.
[title] - The new title you wish to change it to
[description] - The new description you wish to change it to
[category] - The new category you wish to change it to (this must be one of the earlyer mentioned codes)
[private] - 3 options: 0 = Visible to all, 1 = Private can link and embed, 2 = Private can link cannot embed
[commercial] - 2 options: 0 = no commercial, 1 = with commercial

There are no other options to edit with the Zideo Update API, entering anything else will result in either an error or failure to update. 

Deleting video data

To delete a video post a HTTP-GET to the following URL.[playzideo]&zideo=[zideo]&apiKey=[apiKey]