{"uid":"cap_K0s3a8eJ_2LyhN6p8L8dP","slug":"2s-io-e6526a98","name":"2s.io Recent Earthquakes Near Coordinate","description":"Recent earthquakes near a coordinate. Returns each quake with magnitude, place name, time (ISO), latitude/longitude/depth, tsunami flag, USGS event URL, and distance-from-query in km — sorted by time descending. Real-time data, post-LLM-training-cutoff. Backed by USGS FDSN event API (public domain). Query: lat (-90..90), lon (-180..180), radius_km (1-1000, default 500), hours (1-720, default 24), min_magnitude (0-10, default 2.0).","url":"https://2s.io/api/quakes/recent","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","maximum":90,"minimum":-90},"lon":{"type":"number","maximum":180,"minimum":-180},"hours":{"type":"number","default":24,"maximum":720,"minimum":1},"radius_km":{"type":"number","default":500,"maximum":1000,"minimum":1},"min_magnitude":{"type":"number","default":2,"maximum":10,"minimum":0}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"lat":37.7749,"lon":-122.4194,"hours":24,"radius_km":200,"min_magnitude":2}}},"response":{"data":{"ok":true,"meta":{"query":{"hours":24,"latitude":37.7749,"radiusKm":200,"longitude":-122.4194,"minMagnitude":2},"nearestKm":176.47,"largestMagnitude":2.88},"items":[{"id":"nc75375026","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75375026","time":"2026-06-11T21:44:20.740Z","place":"8 km SW of Redwood Valley, CA","status":"automatic","depthKm":2.22000002861023,"tsunami":false,"latitude":39.2138328552246,"longitude":-123.274833679199,"magnitude":2.14,"distanceKm":176.47},{"id":"nc75374941","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75374941","time":"2026-06-11T18:08:03.660Z","place":"2 km W of Pinnacles, CA","status":"automatic","depthKm":3.44000005722046,"tsunami":false,"latitude":36.5331649780273,"longitude":-121.162498474121,"magnitude":2.38,"distanceKm":177.4},{"id":"nc75374936","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75374936","time":"2026-06-11T18:03:52.630Z","place":"2 km W of Pinnacles, CA","status":"automatic","depthKm":3.58999991416931,"tsunami":false,"latitude":36.5336685180664,"longitude":-121.160667419434,"magnitude":2.11,"distanceKm":177.46},{"id":"nc75374791","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75374791","time":"2026-06-11T11:36:25.860Z","place":"1 km SW of Pinnacles, CA","status":"automatic","depthKm":5.46000003814697,"tsunami":false,"latitude":36.5288314819336,"longitude":-121.148498535156,"magnitude":2.03,"distanceKm":178.56},{"id":"nc75374666","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75374666","time":"2026-06-11T07:08:28.230Z","place":"1 km W of Pinnacles, CA","status":"automatic","depthKm":3.23000001907349,"tsunami":false,"latitude":36.5306663513184,"longitude":-121.158164978027,"magnitude":2.11,"distanceKm":177.86},{"id":"nc75374651","url":"https://earthquake.usgs.gov/earthquakes/eventpage/nc75374651","time":"2026-06-11T06:46:06.450Z","place":"1 km WSW of Pinnacles, CA","status":"automatic","depthKm":6.3600001335144,"tsunami":false,"latitude":36.5275001525879,"longitude":-121.156997680664,"magnitude":2.88,"distanceKm":178.2}],"total":null,"source":{"url":"https://earthquake.usgs.gov/fdsnws/event/1/","license":"Public domain (US government work)","provider":"US Geological Survey (USGS) — FDSN Event Web Service"}},"meta":{"cost":{"usd":0.001,"tier":0},"caller":"x402","version":null,"endpoint":"quakes.recent","settlement":{"txHash":"0x42d29e38319b42cfda159d444b393ff1d81f699aad1fc37d718daa6a05edc35f","network":"eip155:8453","success":true}}}},"exampleRequest":{"lat":37.7749,"lon":-122.4194,"hours":24,"radius_km":200,"min_magnitude":2},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MLVa4K59ODttA4TIZX7D_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns recent earthquakes near a given lat/lon, including magnitude, depth, tsunami flag, and distance from query point, sourced from USGS FDSN in real time.","exampleAgentPrompt":"Are there any magnitude 2.5 or higher earthquakes within 300 km of Mexico City in the last 72 hours? Include tsunami flags and how far each one was from the city center.","exampleUseCases":null,"resultDescription":"A list of recent earthquake events sorted by time descending, each containing: magnitude, human-readable place name, ISO timestamp, latitude/longitude/depth, tsunami flag (0/1), USGS event URL, and distance from the queried coordinate in km.","failureModes":["Missing required lat or lon parameters returns a 400 error","lat out of range (-90..90) or lon out of range (-180..180) returns validation error","radius_km outside 1-1000 or hours outside 1-720 returns validation error","No earthquakes matching criteria returns an empty list (not an error)","USGS upstream API unavailability may cause 502 or timeout","Payment not attached or insufficient USDC balance returns 402"],"whenToPreferThis":"Use this endpoint when you need real-time, post-training-cutoff seismic data near a specific geographic point — especially when the freshness of USGS data matters or when you need structured per-event detail like depth, tsunami flag, and distance. Prefer over general web search when you need structured machine-readable earthquake records.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:53:47.079Z","isFirstParty":false}