{"uid":"cap_kfX2WjyhxYdJeYqfVFguo","slug":"risk-events-api-earthquakes-1c62a687","name":"Risk Events API – Earthquakes","description":"Returns earthquakes worldwide (USGS) above a magnitude within the last hours, optionally within a radius of a point (port, plant, city) with distance, depth, tsunami flag and PAGER alert level.","url":"https://risk-events-api.onrender.com/v1/earthquakes?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"lat":{"type":"string","description":"Center latitude (optional)"},"lon":{"type":"string","description":"Center longitude (optional)"},"hours":{"type":"string","description":"Look-back window in hours (1-720)"},"limit":{"type":"string","description":"Max events (1-200)"},"radius_km":{"type":"string","description":"Radius around the center in km (default 500)"},"min_magnitude":{"type":"string","description":"Minimum magnitude, default 4.5"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0405","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0405/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0405","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0405","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VPITt94FjSBKcp2mfjwtW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0405","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns worldwide USGS earthquake events above a specified magnitude within a given time window, optionally filtered by proximity to a geographic point, with distance, depth, tsunami flag, and PAGER alert level.","exampleAgentPrompt":"Show me all USGS earthquakes above magnitude 5.0 within 500 km of the Port of Kobe (latitude 34.69, longitude 135.19) in the last 48 hours, including depth and any tsunami warnings.","exampleUseCases":[{"title":"Port seismic risk monitoring","prompt":"Check for any earthquakes above magnitude 4.5 within 300 km of the Port of Los Angeles (lat 33.74, lon -118.27) in the last 72 hours — I need depth, distance, and whether any triggered a tsunami warning."},{"title":"Global high-magnitude earthquake watch","prompt":"Give me all earthquakes worldwide above magnitude 6.0 in the last 168 hours, up to 100 events, so I can assess global seismic activity for our weekly risk report."},{"title":"Industrial plant safety check after tremor","prompt":"We felt shaking at our refinery near lat 37.77, lon 22.43 in Greece — can you pull any earthquakes above magnitude 3.5 within 150 km of that location in the last 6 hours and tell me the PAGER alert levels?"}],"resultDescription":"A list of earthquake events from the USGS feed matching the filters, each including magnitude, event time, location name, depth (km), distance from the query point (if lat/lon provided), a tsunami flag, and a PAGER alert level indicating estimated impact severity.","failureModes":["Missing required query context — if no parameters are provided, defaults (min_magnitude 4.5, last 24 h, global) apply but may return a very large set","Invalid latitude/longitude values outside [-90,90] / [-180,180] range may return errors or empty results","hours value outside 1–720 range may be rejected","limit value outside 1–200 range may be rejected","USGS feed latency may mean very recent events (last few minutes) are not yet reflected","Render cold-start delays may add several seconds to first response","Payment failure (x402) if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need real-time or near-real-time USGS earthquake data filtered by magnitude, time window, and optionally geographic proximity to a specific point such as a port, plant, city, or offshore asset. It is the right choice when you need structured seismic event data including depth, tsunami flag, and PAGER alert level for risk assessment workflows. Prefer it over generic USGS feeds when you need proximity-filtered results with distance calculations already computed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-28T18:31:31.865Z","isFirstParty":false,"canonicalSlug":"risk-events-api-earthquakes-1c62a687"}