API
Our simple and free (up to 10,000 monthly queries) REST API let's content providers include important health
department inspection scores in real-time.
The API is entirely HTTP-based. Currently there is only 1 function and that is to submit a POST for the location and search.
There is really not much to it, for example:
http://www.pizzarat.com/restaurant/portland?search=pizza
Will return the results of the Portland location for all restaurants with the key word "pizza" in the string.
Now, to get the results, simply submit a POST with an exact string match for any restaurant.
For example, to search for Atomic Pizza (don't forget whitespaces):
http://pizza-rat.com/restaurant/portland?search=Atomic%20Pizza
Will return the results page in XML format:
<restaurants>
<restaurant>
<name>Atomic Pizza</name>
<score>100</score>
<date>09/16/2009</date>
<address>2150 N Killingsworth</address>
<city>Portland</city>
<zipcode>97217</zipcode>
<type>FoodSvcSemi</type>
</restaurant>
</restaurants>
The XML Format will return different results for each city depending on the
particular health department and the amount of informaiton available.