81trust / 100

Earthquakes

by Recent earthquakes (USGS) in Other

x402 APIPassing, checked 41 min ago

Real-time USGS earthquake feed: magnitude, place, time, depth, coordinates. Live government data, no key.

GET https://agent402.tools/api/earthquakes

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
187 ms typical, 187 ms slowest 5%
Last check
41 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/earthquakes?minMag=4.5&period=day"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fearthquakes
const res = await pay("https://agent402.tools/api/earthquakes?minMag=4.5&period=day");
console.log(await res.json());

Example input

{
  "minMag": "4.5",
  "period": "day"
}

Example output

{
  "count": 6,
  "quakes": [
    {
      "depthKm": 10,
      "lat": -16.9,
      "lon": -173.9,
      "mag": 5.2,
      "place": "120 km SSE of Hihifo, Tonga",
      "time": "2026-06-12T03:14:00.000Z",
      "url": "https://earthquake.usgs.gov/…"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
41 min agoPassed402187 ms$0.002
6 h agoPassed402195 ms$0.002