Latest PHIVOLCS earthquakes
get_latest_earthquakesFetch the latest earthquake events from PHIVOLCS, with optional filtering by minimum magnitude, location coordinates, and radius. Returns event details including distance when location filters are used.
Instructions
Get the latest earthquake events from PHIVOLCS.
Reads the live PHIVOLCS earthquake list, the same table shown at earthquake.phivolcs.dost.gov.ph. Give center_lat, center_lon, and radius_km together to filter events near one place, and each matched event then carries a distance_km field. Give all three together, or leave out all three. Examples:
get_latest_earthquakes() latest events, default filters get_latest_earthquakes(min_magnitude=4.0, limit=10) strong events only get_latest_earthquakes(center_lat=14.5995, center_lon=120.9842, radius_km=50) near Manila
On failure: an invalid trio, an out-of-range radius_km, center_lat, or center_lon gives validation_error true and data_status "invalid_request". An unreachable or unparsable PHIVOLCS list gives upstream_error true and data_status "unavailable". Both return results: [] with the real error in caveats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events to return (default 20, max 100). | |
| region | No | Filter by PH region/province/city name (partial match). | |
| radius_km | No | Keep only events within this distance of (center_lat, center_lon). Give all three of center_lat, center_lon, and radius_km together, or none of them. Each returned event then carries a distance_km field. | |
| center_lat | No | Latitude of a search point. Give with center_lon and radius_km to filter to events near one place instead of the full recent-events list. | |
| center_lon | No | Longitude of a search point. Give with center_lat and radius_km. | |
| min_magnitude | No | Minimum magnitude to include (default 1.0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |