ScienceLive

Earthquakes Recent API

Returns recent earthquakes from USGS for any time window (hour, day, week, month) above a magnitude threshold.

$0.00345USDC per call · settled on Base · no subscription, no API key

Overview

Returns recent earthquakes from USGS for any time window (hour, day, week, month) above a magnitude threshold. Each quake includes magnitude + type, depth (km), place, ISO8601 time, lat/lon, tsunami flag, USGS event URL, and felt-report count when available. Wraps USGS GeoJSON summary feeds, public domain, no auth. Use it as a recent earthquakes API or USGS earthquake feed.

Endpoint

MethodEndpointPriceDescription
POST/v1/marketplace/api/earthquakes-recent$0.00345Invoke Earthquakes Recent (Science) and return the upstream response.

How to call it

Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.

# 1. Ask for a quote
curl -i -X POST https://jarvisclaw.ai/v1/marketplace/api/earthquakes-recent \
  -H 'Content-Type: application/json' \
  -d '{}'

# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://jarvisclaw.ai/v1/marketplace/api/earthquakes-recent \
  -H 'Content-Type: application/json' \
  -H 'X-PAYMENT: <signed-payload>' \
  -d '{}'

Parameters

Taken from the request example this API publishes.

NameInTypeExample
min_magnitudebodynumber4.5
time_rangebodystring"day"

Example response

{
  "count": 12,
  "range": "day",
  "earthquakes": [
    {
      "id": "us7000n3xy",
      "magnitude": 5.2,
      "magnitude_type": "mww",
      "depth_km": 35.7,
      "place": "120 km SW of Adak, Alaska",
      "time": "2026-05-06T11:42:18.000Z",
      "latitude": 51.1234,
      "longitude": -177.8765,
      "tsunami": false,
      "url": "https://earthquake.usgs.gov/earthquakes/eventpage/us7000n3xy",
      "felt": 3
    }
  ],
  "source": "https://earthquake.usgs.gov"
}

FAQ

How much does the Earthquakes Recent API cost?

$0.00345 USDC per call, paid per call over x402. There is no subscription, minimum or monthly fee.

Do I need an API key?

No. Call the endpoint, read the 402 Payment Required quote, and repeat the request with a signed USDC payment header. An account API key also works if you prefer prepaid billing.

Which chains can I pay on?

USDC on Base or on Solana. The 402 quote lists the accepted networks and the exact amount; the JarvisClaw SDKs sign and retry for you.

How do I call it from an AI agent?

Send POST to the endpoint above from any HTTP client, or connect the JarvisClaw MCP server and let the agent find and call it with the search_apis and get_api_detail tools.

Related APIs

Open in the marketplace

Docs: Getting started · x402 payments · x402 discovery · All APIs