Fife Tourism Partnership API

Example usage:

//point to the file
$url = "http://www.api.fifetourismpartnership.org/methods/accommodation.php";
//get contents
$json = file_get_contents($url);
//decode it as an array
$jsonArray = json_decode($json, true);

//loop through the data and display it
foreach ($jsonArray['accommodation'] as $row) {
echo "Title: ".$row['title'];
}

Example output

Available Methods

Get Accomodations

Accomodation JSON File