oEmbed is an open standard for embedding videos and/or images into a website. You can use the CollegeHumor URL of any video to easily obtain the embed code for that video. To find out more about oEmbed, view the spec or check out Webmonkey's Get Started with oEmbed tutorial.
You can use the API endpoint to request the embed code for a video from its URL. The response format can be either xml or json.
CollegeHumor videos can use the following URL scheme:
CollegeHumor supports discovery of the oEmbed URL. Each page that has a video will have two link tags with types application/json+oembed and application/xml+oembed containing the URLs for JSON and XML oEmbed responses.
All arguments are sent as query parameters and must be urlencoded (as per RFC 1738).
These are sample responses (they have been shortened for formatting). If a video's privacy is set to anything other than public or password protected, only the embed code, width, and height will be returned.
<title>The Twelve Beards of Christmas</title>
<object embed code>
"title":"The Twelve Beards of Christmas",
"html":"object embed code",