KILLERTOURS.COM API EXAMPLES

CHOOSE AN EXAMPLE ABOVE

HOW DO I USE THE API?

Using the API requires some scripting or programming knowledge. We've included a very quick example on how to get started using the API with PHP (requires PHP 5.2.0 or greater).

<?php
$url = "http://www.killertours.com/api/search/?response=json&state=ny";
$shows = json_decode(file_get_contents($url),true);
print_r($shows);
if(is_array($shows["events"]))
{
    foreach($shows["events"] AS $show)
    {
        echo "<hr>";
        print_r($show);
    }
}
?>