# USGS Earthquake Changes Feed

> USGS Earthquake Changes Feed is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns recent USGS earthquakes (M4.5+, past week) with magnitude, location, depth, tsunami flag, and a 1–10 significance score, optionally filtered by significance threshold or detection timestamp.

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/earthquakes/changes
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usgs-earthquake-changes-feed-aba2e37a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kVtqqZDUn8GEipp1JrMJQ

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 usgs-earthquake-changes-feed-aba2e37a
```

Example prompt: Pull the latest USGS earthquake data and show me only the high-impact events — anything with a significance score of 8 or above, up to 50 results, detected since 2025-01-01T00:00:00Z.

## When to prefer this

Use this endpoint when you need structured, pre-scored earthquake event data from USGS without building your own USGS API integration. Ideal for monitoring significant seismic events (M4.5+) in near-real-time, especially when you want to filter by a significance threshold (e.g. only the most serious events) or poll for new events since a specific timestamp. Prefer over raw USGS APIs when you want normalized change-feed semantics with significance scoring already applied.

## Known failure modes

- Invalid min_significance value outside 1–10 range returns 400 validation error
- Invalid since timestamp format returns 400 bad request
- limit exceeding 500 returns 400 validation error
- Payment not included or insufficient returns 402 Payment Required
- No earthquakes matching filters returns empty changes array with count 0
- USGS upstream unavailable returns 503 or stale data

## How this service works

USGS earthquakes (M4.5+, past week) with magnitude, location, depth, tsunami flag, and a 1-10 significance score. Filter ?min_significance=8 for the largest events.

## Output

A JSON object containing a count, a source label, and an array of earthquake change events — each with an entity ID, title, summary, detail object (magnitude, location, depth, tsunami flag), significance score (1–10), detection timestamp, effective date, and a source URL linking to the USGS event page.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1
      },
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Only changes detected after this ISO-8601 instant"
      },
      "min_significance": {
       "type": "integer",
       "maximum": 10,
       "minimum": 1,
       "description": "Keep only changes scored at least this"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer"
      },
      "source": {
       "type": "string"
      },
      "changes": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string"
         },
         "title": {
          "type": "string"
         },
         "detail": {
          "type": "object"
         },
         "summary": {
          "type": "string"
         },
         "entityId": {
          "type": "string"
         },
         "sourceUrl": {
          "type": [
           "string",
           "null"
          ],
          "description": "Primary-source link for verification"
         },
         "detectedAt": {
          "type": "string",
          "format": "date-time"
         },
         "significance": {
          "type": "integer",
          "maximum": 10,
          "minimum": 1
         },
         "effectiveDate": {
          "type": [
           "string",
           "null"
          ]
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-earthquake-changes-feed-aba2e37a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
