curl "https://yogataraapi.prahlad.app/api/hazard/earthquake/" \
-H "X-API-Key: $OCCULT_API_KEY"A pass-through proxy for the United States Geological Survey FDSN earthquake event service. This is a historical and near-real-time seismology dataset, not an astrological calculation; it is here so that mundane and event-correlation work can pull the events and the chart data through one API. Every query parameter is forwarded to USGS unchanged, so the full FDSN vocabulary applies: `starttime` and `endtime` in ISO 8601 (defaulting to the last thirty days), a bounding box via `minlatitude`/`maxlatitude`/`minlongitude`/`maxlongitude` or a circle via `latitude`/`longitude` with `maxradius` or `maxradiuskm`, `minmagnitude`/`maxmagnitude`, `mindepth`/`maxdepth`, `minsig`/`maxsig`, PAGER `alertlevel`, `eventtype`, `reviewstatus`, `limit` up to 20000, `offset` and `orderby`. The response is the USGS GeoJSON FeatureCollection as returned: a `metadata` object with the result `count`, and a `features` list in which each entry has a `geometry` giving [longitude, latitude, depth in km] and a `properties` object with magnitude, place description, epoch-millisecond `time`, felt reports, Mercalli and Community intensity, significance, a tsunami flag and the USGS event page URL. The `format` parameter is ignored and always forced to geojson. If USGS cannot be reached the endpoint returns 503.
| Parameter | Type | Example | What it does | |
|---|---|---|---|---|
| alertlevel | string | green | Limit to events with a specific PAGER alert levelone of: green, orange, red, yellow | |
| catalog | string | — | Limit to events from a specific catalog | |
| contributor | string | — | Limit to events contributed by a specific contributor | |
| endtime | string | 2024-12-31 | End of time window (ISO8601). Default: present time ISO date, or a date-time. Inclusive. | |
| eventid | string | — | Select a specific event by ID (implies includeallorigins and includeallmagnitudes) FREE-FORM USGS event ID (e.g. 'us7000abcd'. Selecting one implies includeallorigins and includeallmagnitudes. Proxied verbatim. | |
| eventtype | string | — | Limit to events of a specific type (e.g. 'earthquake' filters non-earthquake events) | |
| includeallmagnitudes | boolean | — | Include all magnitudes for each event (default: false) | |
| includeallorigins | boolean | — | Include all origins for each event (default: false) | |
| includearrivals | boolean | — | Include phase arrivals (default: false, NOT CURRENTLY IMPLEMENTED) | |
| includedeleted | string | — | Include deleted events (default: false). Use 'only' to return only deleted events The endpoint's own parameter description documents it as boolean-plus-'only' ("Include deleted events (default: false). Use 'only' to return only deleted events". There is no local check - the value is proxied to USGS, which owns the validation. one of: true, false, only | |
| includesuperseded | boolean | — | Include superseded products (default: false). Only works with eventid | |
| latitude | number | 26.9124 | Center latitude for circle search [-90, 90]. Requires longitude and maxradius/maxradiuskm Centre of a circular search, used with longitude and maxradiuskm. | |
| limit | integer | 20 | Max number of events to return [1, 20000] How many records to return per page. | |
| longitude | number | 75.7873 | Center longitude for circle search [-180, 180] | |
| maxalertlevel | string | green | Limit to events with PAGER alert level ≤ this valueone of: green, orange, red, yellow | |
| maxcdi | number | — | Maximum Community Determined Intensity (DYFI) [0, 12] | |
| maxdepth | number | — | Max depth in km [-100, 1000] | |
| maxgap | number | — | Max azimuthal gap in degrees [0, 360] | |
| maxlatitude | number | — | Bounding box northern boundary [-90, 90] | |
| maxlongitude | number | — | Bounding box eastern boundary [-360, 360] | |
| maxmagnitude | number | 9 | Max magnitude | |
| maxmmi | number | — | Maximum Modified Mercalli Intensity (ShakeMap) [0, 12] | |
| maxradius | number | — | Max radius in degrees from center point [0, 180]. Mutually exclusive with maxradiuskm | |
| maxradiuskm | number | 500 | Max radius in km from center point [0, 20001.6]. Mutually exclusive with maxradius Search radius in kilometres around latitude/longitude. | |
| maxsig | integer | — | Max significance | |
| minalertlevel | string | green | Limit to events with PAGER alert level ≥ this valueone of: green, orange, red, yellow | |
| mincdi | number | — | Minimum Community Determined Intensity (DYFI) | |
| mindepth | number | — | Min depth in km [-100, 1000] | |
| minfelt | integer | — | Minimum number of DYFI responses [1, ∞] | |
| mingap | number | — | Min azimuthal gap in degrees [0, 360] | |
| minlatitude | number | — | Bounding box southern boundary [-90, 90] | |
| minlongitude | number | — | Bounding box western boundary [-360, 360]. Rectangles may cross the date line by using minlongitude < -180 or maxlongitude > 180 | |
| minmagnitude | number | 6 | Min magnitude Richter magnitude floor. 6 and above is a major earthquake. | |
| minsig | integer | — | Min significance | |
| nodata | integer | 204 | HTTP status code returned when no data is found (204 or 404)one of: 204, 404 | |
| offset | integer | 0 | Return results starting at this count (1-based) How many records to skip, for paging. | |
| orderby | string | magnitude | Order results by fieldone of: magnitude, magnitude-asc, time, time-asc | |
| productcode | string | — | Return the event associated with this product code FREE-FORM USGS product code. Proxied verbatim. | |
| producttype | string | — | Limit to events with this product type (e.g. moment-tensor, focal-mechanism, shakemap, losspager, dyfi) | |
| reviewstatus | string | automatic | Limit to events with a specific review statusone of: automatic, reviewed | |
| starttime | string | 2024-01-01 | Start of time window (ISO8601, e.g. 2022-01-01 or 2022-01-01T00:00:00). Default: NOW - 30 days ISO date, or a date-time. Inclusive. | |
| updatedafter | string | — | Limit to events updated after this time (ISO8601) FORMAT constraint. ISO 8601. Forwarded verbatim to USGS. |