{"uid":"cap_K5N-u4jScSvdhI1ANuGvV","slug":"p0-agent-economy-index-nearby-hazards-3ceaa5ec","name":"P0 Agent Economy Index — Nearby Hazards","description":"An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 listings are not covered.","url":"https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/hazards/near?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"],"type":"string"},"queryParams":{"type":"object","required":["lat","lon"],"properties":{"km":{"type":["string","integer"],"description":"Search radius in km for earthquakes and EONET events, 1..500 (default 100)"},"lat":{"type":"string","description":"Latitude in degrees, -90..90"},"lon":{"type":"string","description":"Longitude in degrees, -180..180"},"days":{"type":["string","integer"],"description":"Look-back window in days, 1..30 (default 7)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["location","radius_km","days","as_of","counts","sources","sources_unavailable","sources_skipped","source","source_url","attribution","note"],"properties":{"days":{"type":"integer","description":"Look-back days for USGS and EONET"},"note":{"type":"string","description":"Fixed text: information only; how distance and coverage work"},"as_of":{"type":"string","description":"ISO 8601 UTC time the sources were read"},"counts":{"type":"object","required":["nws","usgs","eonet","total"],"properties":{"nws":{"type":["integer","null"]},"usgs":{"type":["integer","null"]},"eonet":{"type":["integer","null"]},"total":{"type":"integer"}},"description":"Events per source (null: unavailable or skipped) and the total"},"source":{"type":"string","description":"Names of the sources that answered"},"sources":{"type":"object","required":["nws","usgs","eonet"],"properties":{"nws":{"type":"object","required":["status","events"],"properties":{"count":{"type":["integer","null"]},"events":{"type":"array","items":{"type":"object","required":["type","title","time","distance_km","link"],"description":"type, title, severity, magnitude, magnitude_unit, time (ISO UTC), distance_km, link, plus source-specific fields"},"description":"Active NWS alerts at the point (US only), max 10; distance_km 0; message_type Alert, Update or Cancel, sent, references = earlier alerts replaced"},"reason":{"type":"string"},"source":{"type":"string"},"status":{"type":"string","description":"ok | skipped (place not covered) | unavailable (source failed)"},"truncated":{"type":"boolean"}}},"usgs":{"type":"object","required":["status","events"],"properties":{"count":{"type":["integer","null"]},"events":{"type":"array","items":{"type":"object","required":["type","title","time","distance_km","link"],"description":"type, title, severity, magnitude, magnitude_unit, time (ISO UTC), distance_km, link, plus source-specific fields"},"description":"USGS earthquakes within radius_km, strongest first, max 20; severity = PAGER colour"},"reason":{"type":"string"},"source":{"type":"string"},"status":{"type":"string","description":"ok | skipped (place not covered) | unavailable (source failed)"},"truncated":{"type":"boolean"}}},"eonet":{"type":"object","required":["status","events"],"properties":{"count":{"type":["integer","null"]},"events":{"type":"array","items":{"type":"object","required":["type","title","time","distance_km","link"],"description":"type, title, severity, magnitude, magnitude_unit, time (ISO UTC), distance_km, link, plus source-specific fields"},"description":"Open NASA EONET events within radius_km, nearest first, max 20; magnitude + unit as EONET gives"},"reason":{"type":"string"},"source":{"type":"string"},"status":{"type":"string","description":"ok | skipped (place not covered) | unavailable (source failed)"},"truncated":{"type":"boolean"}}}},"description":"One block per source: status and events"},"location":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number"},"lon":{"type":"number"}},"description":"The point asked about, rounded to 4 decimals"},"radius_km":{"type":"integer","description":"Radius in km for USGS and EONET"},"source_url":{"type":"string","description":"Their URLs, separated by ' , '"},"attribution":{"type":"object","description":"Credit text per source that answered"},"sources_skipped":{"type":"array","items":{"type":"object"},"description":"[{source, reason}] for sources that do not cover the place (NWS outside the US)"},"sources_unavailable":{"type":"array","items":{"type":"object"},"description":"[{source, reason}] for sources that failed; the answer is then partial"}}}}}}},"responseSchema":{"type":"json","example":{"days":7,"note":"Information only, not an official warning or life-safety advice; follow local authorities. NWS alerts cover the exact point (US only, km does not apply). USGS and EONET events are within km of the point; EONET extents are approximate, moving events use their latest reported position (time). Failed sources are in sources_unavailable, uncovered ones in sources_skipped.","as_of":"2026-10-25T09:20:00.000Z","counts":{"nws":0,"usgs":1,"eonet":1,"total":2},"source":"NOAA National Weather Service + USGS Earthquake Catalog + NASA EONET v3","sources":{"nws":{"count":0,"events":[],"source":"NOAA National Weather Service","status":"ok","truncated":false},"usgs":{"count":1,"events":[{"link":"https://earthquake.usgs.gov/earthquakes/eventpage/nc00000000","time":"2026-10-23T04:12:09.000Z","type":"earthquake","title":"M 2.1 - 6 km NE of Piedmont, CA","depth_km":8.4,"latitude":37.85,"severity":null,"longitude":-122.2,"magnitude":2.1,"distance_km":14.3,"felt_reports":null,"tsunami_flag":false,"magnitude_unit":"md"}],"source":"USGS Earthquake Catalog","status":"ok","truncated":false,"max_magnitude":2.1,"count_is_lower_bound":false},"eonet":{"count":1,"events":[{"link":"https://eonet.gsfc.nasa.gov/api/v3/events/EONET_00000","time":"2026-10-24T18:00:00Z","type":"Wildfires","title":"Example Fire (CA)","detail":null,"sources":[{"id":"IRWIN","url":"https://irwin.doi.gov/observer/incidents/example"}],"category":"wildfires","geometry":"point","severity":null,"magnitude":1200,"distance_km":61.8,"magnitude_unit":"acres"}],"source":"NASA EONET v3","status":"ok","truncated":false}},"location":{"lat":37.77,"lon":-122.42},"radius_km":100,"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, Department of the Interior/USGS (public domain). Not endorsed by the USGS.","eonet":"Events: NASA EONET (eonet.gsfc.nasa.gov), source NASA and the agencies named per event. Not endorsed by NASA."},"sources_skipped":[],"sources_unavailable":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YP5EYyrXU95ZHa6EZ1JiL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns recent natural hazard events (NWS weather alerts, USGS earthquakes, NASA EONET events) within a specified radius and time window around a given lat/lon coordinate","exampleAgentPrompt":"Are there any active natural hazards near latitude 37.77, longitude -122.42 — check within 100 km and look back 7 days for earthquakes, wildfires, and weather alerts.","exampleUseCases":[{"title":"Pre-travel safety check for a destination","prompt":"Before I fly into Los Angeles tomorrow, can you check for any active natural hazards — earthquakes, wildfires, or weather alerts — within 150 km of lat 34.05, lon -118.24 over the past 7 days?"},{"title":"Real-time disaster monitoring for field operations","prompt":"We have a field team near lat 35.68, lon -121.30 — can you pull any USGS earthquakes, NASA EONET events, or NWS alerts within 50 km over the last 3 days so we can brief them on local risks?"},{"title":"Automated property risk assessment","prompt":"I'm evaluating a property at lat 38.58, lon -121.49 — can you check what natural hazard events have occurred within 200 km in the past 30 days, including earthquakes and wildfires?"}],"resultDescription":"A JSON object containing: the queried lat/lon, radius, and look-back window; event counts broken down by source (NWS, USGS, EONET) and a total; a per-source breakdown of individual events with type, title, severity/magnitude, distance in km, timestamp, and a link to the source record; metadata including unavailable or skipped sources, the snapshot timestamp, and attribution for each data provider.","failureModes":["Missing required lat or lon parameters returns an error","Lat/lon out of valid range (-90..90 / -180..180) returns validation error","One or more upstream sources (NWS, USGS, EONET) may be temporarily unavailable, reported in sources_unavailable with null counts","NWS alerts only cover US territory; non-US coordinates will have NWS skipped and reported in sources_skipped","Radius km outside 1..500 or days outside 1..30 may return validation error or be clamped to defaults","Network timeout to an upstream source results in null count for that source rather than total failure"],"whenToPreferThis":"Choose this endpoint when you need a unified, multi-source natural hazard snapshot for a specific geographic point — combining NWS weather alerts, USGS seismic events, and NASA EONET environmental events in a single call. Prefer this over querying each agency API individually when you need a quick combined risk picture at a lat/lon. Best for travel safety checks, field operations briefings, or automated property or event risk assessments. Not suitable for official emergency warnings or life-safety decisions — results are informational only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:30.549Z","isFirstParty":false,"canonicalSlug":"p0-agent-economy-index-nearby-hazards-3ceaa5ec"}