Product & Price Lists
Download our price list: CSV |
Our product database as a webservice: Read More...
We have made our product database available for others to use in their own website, simply specify the product id and pull any of the data that you want to use.
Below is an example PHP code to utilize the service.
Enter the PN to see its respective JSON data:
Below is an example PHP code to utilize the service.
$url = "http://bluesea.com/products/json/" . $pid;
$json = file_get_contents($url, 0, null, null);
$data = json_decode($json);
echo "<h1>" . $data -> title . "</h1>";
echo "PN " . $data -> PN . " Price: $" . $data -> msrp;
echo "<table>";
foreach($data -> specs as $spec => $values) {
echo "<tr><td>" . $spec . " </td><td> ";
//specs can have multiple values so we must iterate through the array
foreach($values as $value) {
echo $value . "<br/>";
}
echo "</td></tr>";
}
echo "</table>";
//if you want to use our image sources, you may get the links to the full resolution
images and use them in your own gallery
foreach ($data -> images as $image) {
echo "<img src='" . $image . "' width='100px'/>";
}
Enter the PN to see its respective JSON data:
Retrieving Data

