I only have one requirement for using this webservice. Please provide a link back to the Prime Fishing Times website. Think of this as sort of an enhanced link exchange program. You receive free tide data for your site in exchange for links back to my site. It's a win/win situation for both of us.
The Prime Fishing Times webservice is a very simple interface that returns either an HTML table of today's tide data for a particular location or the same data formatted in JSON. To use the webservice, make a note of the URL for the location you want.
For instance, the URL for San Luis Pass, Texas is:
The webservice for San Luis Pass, Texas can be accessed using the following URLs:
- HTML: http://primefishingtimes.com/webservice/tides.html?lat=29.0833&lng=-95.1167
- JSON: http://primefishingtimes.com/webservice/tides.json?lat=29.0833&lng=-95.1167
NOTE: The old webservice used the database ID for the location. Unfortunately, everytime I updated the database with the latest tide information the location IDs changed.
If you're using Wordpress like I do for my personal blog, you can use PHP code like this:
<?php
require_once(ABSPATH . WPINC . '/class-snoopy.php');
$snoopy = new Snoopy;
$snoopy->fetch("http://primefishingtimes.com/webservice/tides.html?lat=29.0833&lng=-95.1167");
echo $snoopy->results;
?>
Information about the development of Prime Fishing Times can be found on my personal blog. Feel free to with your comments, questions, or feedback.