# greeneris-data-geo-quakes

> greeneris-data-geo-quakes is a paid API for AI agents from data.greeneris.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetch recent earthquake events filtered by location, magnitude, time range, and alert level from the USGS Earthquake Hazards Program

## Facts

- Endpoint: GET https://data.greeneris.io/v1/geo/quakes
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/greeneris-data-geo-quakes-6b698a1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_a1oEjCzJIs4UzTZRJYARo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability greeneris-data-geo-quakes-6b698a1c
```

Example prompt: Can you pull the last 10 earthquakes with magnitude 5 or above that happened within 500 km of Tokyo between July 1 and July 13, 2026, using the USGS data?

## When to prefer this

Use this endpoint when you need real-time or recent USGS earthquake data with flexible filtering by geography, magnitude, time window, or alert level. Prefer it over general web search when you need structured, machine-readable seismic event data at low cost per call. Ideal for AI agents monitoring hazards, assessing risk near a location, or building situational awareness for emergency response workflows.

## Known failure modes

- No earthquakes match the filters — returns count 0 and empty array
- Invalid date format for starttime/endtime — returns 400 error
- latitude/longitude out of range — returns 400 validation error
- maxradiuskm without latitude/longitude — likely ignored or error
- limit exceeds 100 — schema validation error
- HTTP 402 returned if payment not provided — must pay 0.002 USDC via x402 protocol before retrying

## How this service works

Latest earthquakes from the USGS real-time catalog (public domain, updated within minutes). Query: ?minmagnitude=4.5&limit=20; optional starttime/endtime (ISO 8601), geographic filter latitude+longitude+maxradiuskm, alertlevel=green|yellow|orange|red (PAGER). Returns a normalized list: magnitude, place, UTC time, coordinates, depth, tsunami flag, significance. 5 min cache.

## Output

A JSON object containing a count of matching earthquakes and an array of quake records, each with a USGS event ID, magnitude, depth in km, geographic coordinates, place name description, UTC timestamp, tsunami flag, alert level, number of felt reports, and a significance score. Also includes the data source attribution.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1
      },
      "endtime": {
       "type": "string",
       "description": "ISO 8601, e.g. 2026-07-13"
      },
      "latitude": {
       "type": "number",
       "description": "Center of radius filter"
      },
      "longitude": {
       "type": "number",
       "description": "Center of radius filter"
      },
      "starttime": {
       "type": "string",
       "description": "ISO 8601, e.g. 2026-07-01"
      },
      "alertlevel": {
       "enum": [
        "green",
        "yellow",
        "orange",
        "red"
       ],
       "type": "string"
      },
      "maxradiuskm": {
       "type": "number",
       "description": "Radius in km around latitude/longitude"
      },
      "minmagnitude": {
       "type": "number",
       "default": 4.5,
       "maximum": 10,
       "minimum": -1
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "quakes": [
   {
    "id": "us6000rw2b",
    "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us6000rw2b",
    "alert": null,
    "place": "southeast of the Loyalty Islands",
    "tsunami": false,
    "depth_km": 10,
    "latitude": -22.13,
    "time_utc": "2026-07-13T02:39:35Z",
    "longitude": 169.53,
    "magnitude": 4.9,
    "felt_reports": null,
    "significance": 369
   }
  ],
  "source": "USGS Earthquake Hazards Program (FDSN event API, public domain, real-time)",
  "min_magnitude": 4.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/greeneris-data-geo-quakes-6b698a1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.greeneris.io](https://www.zero.xyz/host/data.greeneris.io/llms.txt)
