W

Workers · Official Usgs Recent Earthquakes

by Workers

POSTBase

$0.01

per call · USD Coin on Base

Find recent USGS earthquake observations by time window and minimum magnitude, with event identifiers, source times and revision status.

Endpoint

POST https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/usgs-recent-earthquakes

1

Calls / 30d

1

Unique payers / 30d

Sep 6

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/usgs-recent-earthquakes", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "hours": 24,
    "limit": 5,
    "minimum_magnitude": 2.5
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://foundry-par007-machine-revenue-mainnet.inference-chip-index.workers.dev/v2/official/usgs-recent-earthquakes" \
  -H "Content-Type: application/json" \
  -d '{"hours":24,"limit":5,"minimum_magnitude":2.5}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "observed_at": "2026-09-06T00:00:00Z",
  "result": {
    "freshness": {
      "cacheAgeSeconds": 0,
      "maximumCacheSeconds": 30,
      "recordAgeIsNotRetrievalAge": true,
      "retrievedAt": "2026-09-06T00:00:00Z",
      "state": "CURRENT_RETRIEVAL"
    },
    "normalizedResult": [],
    "observedAt": "2026-09-06T00:00:00Z",
    "provenance": {
      "attribution": "US Geological Survey and the contributing seismic network identified in each record",
      "documentationUrl": "https://earthquake.usgs.gov/fdsnws/event/1/",
      "license": "US public-domain earthquake facts; no third-party media",
      "limitations": [
        "Illustrative empty result; no live data claim."
      ],
      "modifications": "Selected factual fields, normalized names and bounded result count; no source ownership claimed.",
      "termsUrl": "https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits",
      "truncated": false,
      "upstreamCalls": 1
    },
    "query": {
      "hours": 24,
      "limit": 5,
      "minimum_magnitude": 2.5
    },
    "rawSourceIdentifiers": [],
    "source": "USGS Earthquake Catalog",
    "sourceProcessedAt": null,
    "sourceUpdatedAt": null,
    "sourceUrl": "https://earthquake.usgs.gov"
  },
  "route": "usgs-recent-earthquakes"
}

Payment details

Pay to0x25e8245f07d5e4873987293dad666afbe56a9608
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Workers & similar services