API

Base url: http://pirateplay.se:80/api/

Table of contents

get_streams.xml

Returns a list of stream urls and some meta info in XML-format for a program from any of the supported content providers.

Parameters:

Response:

Mime-type: application/xml

<streams>
  <stream quality="Relative quality of stream" subtitles="Subtitles">Url of stream</stream>
  ...
</streams>

Example

Get stream of http://vimeo.com/: get_streams.xml?url=http%3A%2F%2Fvimeo.com%2F2

get_streams.js

Returns a list of stream urls and some meta info in JSON-format for a program from any of the supported content providers.

Parameters:

Response:

Mime-type: application/json

[{'url': Url of stream,
'meta': {'quality': Relative quality of stream,
         'subtitles': Subtitles of stream}}, ...]

Example

Get stream of http://vimeo.com/: get_streams.js?url=http%3A%2F%2Fvimeo.com%2F2

services.xml

Returns a list of supported services (content providers), and some info on them in XML-format.

Parameters:

Response:

Mime-type: application/xml

<services>
  <service>
    <title>Service title</title>
    <url>Service url</url>
    <feed_url>Feed of samplable urls</feed_url>
    <sample_url>Sample url</sample_url>
    <test>Regular expression for testing if a given url is supported by this service</test>
  </service>
  ...
</services>

Example

Get info on SVT-play and Vimeo-services: services.xml?titles=svt-play,vimeo

services.js

Returns a list of supported services (content providers), and some info on them in JSON-format.

Parameters:

Response:

Mime-type: application/json

[{"title": Service title,
"url": Service url,
"test": Regular expression for testing if a given url is supported by this service,
"feed_url": Feed of samplable urls,
"sample_url": Sample url}, ...]

Example

Get info on SVT-play and Vimeo-services: services.js?titles=svt-play,vimeo