Data tools / FX, rates, news, weather and knowledge

Natural hazards API for a site: alerts, earthquakes and open events

Use when you need natural-hazard context for a site by latitude/longitude: active NWS alerts at the point (US only), USGS earthquakes and open NASA EONET events (fires, storms, volcanoes, floods) within a radius, each with distance_km, magnitude, time and link. A failed source is listed, not hidden. $0.005 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/hazards/near?lat=37.77&lon=-122.42&km=100&days=7'
ParameterRequiredWhat it is
latyesLatitude in degrees, -90..90
lonyesLongitude in degrees, -180..180
kmnoSearch radius in km for earthquakes and EONET events, 1..500 (default 100)
daysnoLook-back window in days, 1..30 (default 7)

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "location": {
    "lat": 37.77,
    "lon": -122.42
  },
  "radius_km": 100,
  "days": 7,
  "as_of": "2026-10-25T09:20:00.000Z",
  "counts": {
    "nws": 0,
    "usgs": 1,
    "eonet": 1,
    "total": 2
  },
  "sources": {
    "nws": {
      "status": "ok",
      "source": "NOAA National Weather Service",
      "count": 0,
      "truncated": false,
      "events": []
    },
    "usgs": {
      "status": "ok",
      "source": "USGS Earthquake Catalog",
      "count": 1,
      "count_is_lower_bound": false,
      "truncated": false,
      "max_magnitude": 2.1,
      "events": [
        {
          "type": "earthquake",
          "title": "M 2.1 - 6 km NE of Piedmont, CA",
          "severity": null,
          "magnitude": 2.1,
          "magnitude_unit": "md",
          "time": "2026-10-23T04:12:09.000Z",
          "distance_km": 14.3,
          "latitude": 37.85,
          "longitude": -122.2,
          "depth_km": 8.4,
          "felt_reports": null,
          "tsunami_flag": false,
          "link": "https://earthquake.usgs.gov/earthquakes/eventpage/nc00000000"
        }
      ]
    },
    "eonet": {
      "status": "ok",
      "source": "NASA EONET v3",
      "count": 1,
      "truncated": false,
      "events": [
        {
          "type": "Wildfires",
          "category": "wildfires",
          "title": "Example Fire (CA)",
          "severity": null,
          "magnitude": 1200,
          "magnitude_unit": "acres",
          "time": "2026-10-24T18:00:00Z",
          "distance_km": 61.8,
          "geometry": "point",
          "detail": null,
          "sources": [
            {
              "id": "IRWIN",
              "url": "https://irwin.doi.gov/observer/incidents/example"
            }
          ],
          "link": "https://eonet.gsfc.nasa.gov/api/v3/events/EONET_00000"
        }
      ]
    }
  },
  "sources_unavailable": [],
  "sources_skipped": [],
  "source": "NOAA National Weather Service + USGS Earthquake Catalog + NASA EONET v3",
  "source_url": "https://api.weather.gov/alerts/active , https://earthquake.usgs.gov/fdsnws/event/1/ , https://eonet.gsfc.nasa.gov/api/v3/events",
  "attribution": {
    "nws": "Alerts: U.S. National Weather Service (api.weather.gov), public domain; long texts shortened (truncated:true, full text at link). Not affiliated with or endorsed by NOAA/NWS.",
    "usgs": "Earthquakes: Credit: U.S. Geological Survey…

Free sample, no payment: /hazards/near/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/fx-rates-news-weather-data, tool hazards_near. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.

Related tools

Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools