icould API Documentation

API version: 0.7 (26/11/2011)

Changelog:
v0.7 (26/11/2011) - articles are now searchable
v0.6 (20/11/2011) - option of getting icould-hosted videos or YouTube-hosted videos
v0.5 (24/10/2011) - API now also works over SSL (https://icould.com/api)
v0.4 (22/05/2011) - videos now served by YouTube
v0.3 (18/11/2010) - addition of API keys

icould exposes data about its videos via an Application Programming Interface (API). This document is the official reference for that functionality.

An API Key is required in order to access the icould API. Please contact icould.com through the website to acquire an API key.

All API calls should be made to the same URL, http://icould.com/api
The API is entirely HTTP-based, using the HTTP GET method (i.e. parameters passed in the URL), and returns XML data.
The search API response is loosely-based on the RSS protocol, so the API can be used as an RSS feed for specific videos. This also means many browsers will only show minimal response information when displaying an API URL. Viewing the document source will show the full response data.
Examples are shown inline, and at the bottom of this document.


Search

Returns videos and/or articles that match a specified query.

Input Parameters

Response

The API will return an XML RSS document with the parent DOM element <channel>. A child element <total_results> contains the total number of videos & articles that match the search query. Two more elements <total_video_results> and <total_article_results> are also returned. Be aware that results are paginated, depending on the page and results parameters. If results are found, the <channel> element will contain any number of <item> elements. Each <item> element will contain the following child elements:

If no matches are found, the XML document will contain no <item> elements, and the <total_results> element will contain the value 0.

Examples

This shows how to use your API key and URL when performing an API call:

http://icould.com/api?s=radio&cat=548,202&key=b758c434bdd396b1a444db390503f85b-4ce49bb91f7f8&url=http%3A%2F%2Fwww.test.com

NB: All further examples omit the required "key" and "url" parameters for brevity.


Show Article/Video Information

Returns information about one article/video, including embed code for video player, or the article content.

Input Parameters

Response

The same XML elements are returned as for a search (documented above), with two additional elements:

Example

NB: This example omits the required "key" and "url" parameters for brevity.


List Categories

Returns a hierarchical tree of categories, along with the number of videos in each category.

Input Parameters

Response

The API will return an XML document with the parent element <categories>. There will be 2-3 levels of <category> child elements.
If a category has child elements, it will only contain a name attribute, indicating the category name.
If a category has no child elements, it will contain the following attributes:

Example

NB: This example omits the required "key" and "url" parameters for brevity.


Examples

NB: These examples omit the required "key" and "url" parameters for brevity.