Skip to content
Fourohtwo

Earthquakes (USGS)

x402.freeq.one/tools/earthquakes

Earthquakes (USGS): Recent earthquakes from USGS: magnitude, place, depth, PAGER alert level and tsunami flag per event, plus cluster detection for aftershock sequences and the largest event in the window. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/earthquakes.

BaseUnchecked
POSThttps://x402.freeq.one/tools/earthquakes

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.freeq.one/tools/earthquakes", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"days":7,"limit":50,"latitude":47.6,"longitude":-122.33,"maxradiuskm":500,"min_magnitude":4}),
});
console.log(await res.json());

Example input

{
  "days": 7,
  "limit": 50,
  "latitude": 47.6,
  "longitude": -122.33,
  "maxradiuskm": 500,
  "min_magnitude": 4
}

More from x402-gateway