# Trusted Information API — Earthquake Data

> Trusted Information API — Earthquake Data is a paid API for AI agents from api.trustedinformation.site, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns recent global earthquake events from USGS, optionally filtered by location, time window, and minimum magnitude

## Facts

- Endpoint: GET https://api.trustedinformation.site/api/geo/earthquakes
- 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/trusted-information-api-earthquake-data-9f852cde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2TaGa7fQWe3JWXykTJt17

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 trusted-information-api-earthquake-data-9f852cde
```

Example prompt: Can you pull the latest earthquakes from the past 14 days near Manila (latitude 14.6, longitude 121.0) with a minimum magnitude of 5 and tell me how many there were and which was the biggest?

## When to prefer this

Choose this endpoint when you need real-time global earthquake data sourced directly from USGS with no API key or signup required, especially in a pay-per-call agent workflow. Prefer it over building a direct USGS integration when you need instant access via x402 micropayments and want the guarantee that failed calls are never charged. Best suited for on-demand lookups rather than continuous high-frequency monitoring streams.

## Known failure modes

- Invalid latitude/longitude values may return empty results or an error
- Days parameter outside 1–30 range may be rejected or clamped
- If USGS data source is temporarily unavailable, the call may fail with a 5xx error
- Very restrictive magnitude or location filters may return zero events (count: 0)
- Payment failure results in no charge and no data returned

## How this service works

Pay-per-call UK company, property and crypto market data for AI agents via x402. Official sources, no signup, no API keys, failed calls never charged.

## Output

Returns a JSON object with a count of matching earthquake events, an array of event objects (each with time, place description, depth in km, magnitude, coordinates, and USGS event URL), the source attribution, the query window dates and minimum magnitude, and the largest magnitude found in the result set.

## 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": {
      "lat": {
       "type": "string",
       "description": "Optional latitude to search near"
      },
      "lon": {
       "type": "string",
       "description": "Optional longitude to search near"
      },
      "days": {
       "type": "string",
       "description": "Look-back window in days (1–30, default 7)"
      },
      "minMagnitude": {
       "type": "string",
       "description": "Minimum magnitude (default 4.5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "count",
      "events"
     ],
     "properties": {
      "count": {
       "type": "number"
      },
      "events": {
       "type": "array"
      },
      "window": {
       "type": "object"
      },
      "largest": {
       "type": [
        "number",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 42,
  "events": [
   {
    "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us...",
    "time": "2026-07-24T18:46:06Z",
    "place": "57 km S of Sarangani, Philippines",
    "depthKm": 52.2,
    "magnitude": 5,
    "coordinates": {
     "lat": 4.88,
     "lon": 125.48
    }
   }
  ],
  "source": "USGS Earthquake Hazards Program",
  "window": {
   "fromDate": "2026-07-18",
   "minMagnitude": 4.5
  },
  "largest": 6.1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/trusted-information-api-earthquake-data-9f852cde/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.trustedinformation.site](https://www.zero.xyz/host/api.trustedinformation.site/llms.txt)
