video.getEmbedCode

Returns the RockPeaks embed code for a particular video.

Parameters:

api_key (required) A RockPeaks API key.
id (required) The RockPeaks id for the video.
size (optional) The size of the embedded player. Possible values: "small" (560x332), "medium" (640x377), "large" (853x497), "xlarge" (1280x737), "custom". Default: "medium".
width (optional) Desired embed width in pixels when "custom" is provided for size.
height (optional) Desired embed height in pixels when "custom" is provided for size.
show_related (optional) Whether to show (1) or not show (0) related RockPeaks videos after the video finishes. Default: 1 (show).

Sample Request:

http://www.rockpeaks.com/services/api?method=video.getEmbedCode&api_key=<key>&id=124583&size=small

Sample Response:

<embed_code>
  <iframe src="http://www.rockpeaks.com/embed/124583?width=560&amp;height=315&amp;related=1" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</embed_code>

 

Enter your Rock Peaks username.
Enter the password that accompanies your username.
Forgot Password?
 

Not a Member Yet?

Join

It's Free!