The player API allows you to control and interact with the player through JavaScript. The player supports JavaScript calling methods and also fires events which can be picked up in JavaScript.
This allows for greater interactivity and more seamless integration into your website or applications.
You will be able to perform similar actions as the controls themselves such as play, pause, stop, etc and your web page will now be able react to the player as events are fired.
We expose our data via an Application Programming Interface (API). Programmers use the MUZU API to retrieved data from the database. The API can be used in applications and websites allowing them to interact with the MUZU database.
This document is the official reference for that functionality.
Here are a few of the concepts every developer should know before interacting with the API.
The API supports the following methods to send and receive data.
-
Browse
Returns listings that match the browse criteria.
Artist
Returns details for a particular artist.
Channel
Returns details for a particular channel on MUZU.
Video
Returns details for a particular video on MUZU.
Image
Returns an image for a channel or video.
Utilities
Other useful methods which can be used to return account data
In order to interact with the database an
API Key
is required. This key will authenticate the user to communicate with the database. All MUZU API methods require authentication.
To authenticate a call to the API you must include the URL parameter muzuid=[YOUR_MUZU_API_KEY].
e.g. http://www.muzu.tv/api/browse?muzuid=012345678
Get your API Key here
The MUZU API attempts to conform to the design principles of Representational State Transfer (REST). MUZU presently supports the following data formats: XML, RSS
MUZU API returns error messages in XML or RSS format. For example, an XML error response will look as follows
<?xml version="1.0" encoding="UTF-8"?>
<error code"1" description="Invalid MUZU Id">
</error>