API

All our APIs are using XML. This API is only open for webapplications, provide a description of your webpage, its purpose and how you intend to use the data from our API in your application.
You will need to apply for a API-key before you can use the API http://www.subtitlesource.org/help/contact
XML search

../api/KEY/3.0/xmlsearch/heroes/swedish/0
Lists swedish subtitles for heroes, showing 20 posts per page (starting from 0)

../api/KEY/3.0/xmlsearch/prison+break/english/10
Lists english subtitles for prison break, showing 20 posts per page (starting from 10)

../api/KEY/3.0/xmlsearch/Heroes.S03E09.HDTV.XviD-LOL/all/0
Lists all subtitles for the release Heroes.S03E09.HDTV.XviD-LOL, showing 20 posts per page (starting from 0)

../api/KEY/3.0/xmlsearch/0813715/imdb/0
Lists all subtitles for that has imdb id 0813715, showing 20 posts per page (starting from 0)

Export subtitle information

../api/KEY/3.0/xml/59
Lists subtitle with id 59

../api/KEY/3.0/xml/all
Lists all subtitles

../api/KEY/3.0/xml/all/english
Lists all english subtitles

PHP example code



<?php

$uri 
"http://www.subtitlesource.org/api/KEY/3.0/xmlsearch/heroes/swedish/0";
$xml simplexml_load_file($uri);

foreach(
$xml->xmlsearch->sub as $sub){
        echo 
$sub->title "<br />\n"//movie/tv title
        
echo $sub->year "<br />\n"//year of title
        
echo $sub->imdb "<br />\n"//imdb id
        
echo $sub->id "<br />\n"//subtitle id
        
echo $sub->rid "<br />\n"//release id
        
echo $sub->language "<br />\n"//subtitle language
        
echo $sub->season "<br />\n"//season (0 if none)
        
echo $sub->episode "<br />\n"//episode (0 if none)
        
echo $sub->releasename "<br />\n"//subtitle is synced for this release
        
echo $sub->fps "<br />\n"//frames per second of the video
        
echo $sub->cd "<br />\n"//number of cds
        
echo $sub->hi "<br />\n"//hearing impaired (1=true, 0=false)
}

?>
SimpleXMLElement Object ( [xmlsearch] => SimpleXMLElement Object ( [sub] => Array ( [0] => SimpleXMLElement Object ( [title] => Heroes [year] => 2006 [imdb] => 0813715 [id] => 41619 [rid] => 41619 [language] => Swedish [season] => 3 [episode] => 13 [releasename] => Heroes.S03E13.HDTV.XviD-LOL [fps] => 23.976 [cd] => 1 [hi] => 0 ) [1] => SimpleXMLElement Object ( [title] => Heroes [year] => 2006 [imdb] => 0813715 [id] => 41620 [rid] => 41620 [language] => Swedish [season] => 3 [episode] => 13 [releasename] => Heroes.S03E13.720p.HDTV.X264-DIMENSION [fps] => 0 [cd] => 1 [hi] => 0 ) ) ) )
XML-RPC Beta testing atm :(