The service tracks over 15,000 earthquakes annually in and around New Zealand. It provides location and magnitude within 30 minutes for over 250 significant quakes felt across the region each year. Reporting stations detect events in the southwest Pacific Ocean but do not provide sufficiently accurate readings, so reports are limited to events in or closely adjacent to New Zealand.
The API accepts queries stated in QuakeML (a flavor of XML), KML, or GeoJSON format specifying date range, location boundaries specified by latitude and longitude, and magnitude range. It returns matching reports by reporting station, with epicenter location and magnitude data.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.