{"uid":"cap_XGlBeryhk3wt-VU63qW-7","slug":"weather-air-quality-earthquake-api-57160a43","name":"Weather, Air Quality & Earthquake API","description":"Pay-per-call data and tools for AI agents, $0.002-0.01 per call in USDC via x402 (Base, Polygon or Solana), no account or API key; MAX tiers ($0.05-0.25) run deeper jobs. Agent toolkit: web search, search + read top pages, any page as clean markdown with a prompt-injection check, which-x402-API-to-call recommender, seller check. Data: Google Maps places with contacts, YouTube video data and transcripts, job listings (Indeed, LinkedIn, 13 boards), Google Ads Transparency, TikTok comments, Pinterest, Airbnb, Redfin, AliExpress, app stores, live sports, website and SEO checks, Shopify store tech stacks, and onchain token / address risk checks.","url":"https://agent-data.centorprat.workers.dev/tools/weather-air-quality-earthquake-api?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"label":{"type":"string","description":"Optional name for the single point (e.g. a site or city)."},"latitude":{"type":"number","description":"Latitude in decimal degrees for a single point. Example: 40.4168"},"radiusKm":{"type":"integer","description":"Look for recent earthquakes within this radius of each point."},"locations":{"type":"array","items":{"type":"object"},"maxItems":3,"description":"Instead of (or in addition to) a single point, pass an array of objects: [{\"latitude\":35.68,\"longitude\":139.69,\"label\":\"Tokyo\"}]"},"longitude":{"type":"number","description":"Longitude in decimal degrees for a single point. Example: -3.7038"},"onlyAlerts":{"type":"boolean","description":"If true, points whose computed status is 'clear' are dropped (useful with a schedule + webhook)."},"minMagnitude":{"type":"number","description":"Ignore earthquakes below this magnitude. Example: 2.5"},"quakeLookbackDays":{"type":"integer","description":"How many days back to search for earthquakes."}}},"responseSchema":{"type":"json","example":{"items":[{"flags":[],"label":null,"status":"clear","reasons":[],"seismic":{"_ok":true,"count":0,"events":[],"maxMag":null},"sources":["open-meteo.com","air-quality-api.open-meteo.com","earthquake.usgs.gov (USGS)"],"weather":{"_ok":true,"isDay":true,"sunset":"2026-10-24T19:22","sunrise":"2026-10-24T08:35","weather":"mainly clear","windKmh":8.4,"visibilityM":45540,"weatherCode":1,"windGustKmh":23.8,"temperatureC":17.9,"precipitationMm":0},"latitude":40.4168,"longitude":-3.7038,"airQuality":{"_ok":true,"no2":12.1,"pm10":7.7,"ozone":68,"pm2_5":4.5,"usAqi":33,"aqiBand":"good","europeanAqi":24},"capturedAt":"2026-10-24T13:49:28.469330+00:00"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lyF8CCcM4nYdxVUTFyntL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current weather, air quality (AQI/PM2.5), and nearby earthquake data for up to 3 locations per call, with a clear/caution/hazard verdict and reasons.","exampleAgentPrompt":"Check the current weather, air quality, and any recent earthquakes within 50 km for Tokyo (35.68, 139.69), Los Angeles (34.05, -118.24), and Istanbul (41.01, 28.95) — flag anything that reaches caution or hazard status.","exampleUseCases":[{"title":"Field site safety screening","prompt":"Check weather, air quality, and seismic activity for our three field sites: Site A at 37.77, -122.42 (San Francisco), Site B at 34.05, -118.24 (Los Angeles), and Site C at 47.61, -122.33 (Seattle). Look for earthquakes within 100 km over the past 7 days and flag any site that shows caution or hazard conditions."},{"title":"Travel destination hazard check","prompt":"Before I fly to Japan, can you check current air quality, weather, and recent earthquake activity near Tokyo at latitude 35.68, longitude 139.69? Look back 14 days for quakes within 200 km and ignore anything below magnitude 3."},{"title":"Automated webhook hazard alerts","prompt":"Set up monitoring for our two office locations — New York at 40.71, -74.01 and Mexico City at 19.43, -99.13 — and only send me alerts when conditions hit caution or hazard. Check for earthquakes within 75 km over the last 3 days."}],"resultDescription":"Returns a structured response for each requested location containing: current weather (temperature, wind, precipitation), air quality metrics (AQI, PM2.5 levels), recent nearby earthquake events (magnitude, distance, time), and an overall status verdict of 'clear', 'caution', or 'hazard' with human-readable reasons explaining the verdict.","failureModes":["Invalid or out-of-range coordinates return an error or null for that location without being charged","Exceeding 3 locations per call results in truncation or rejection","USGS or Open-Meteo upstream outage may produce partial data for weather or earthquake fields","Very remote coordinates with no recent seismic data may return empty earthquake arrays","Network timeout from the upstream provider may result in a failed lookup (not charged)"],"whenToPreferThis":"Choose this endpoint when you need weather, air quality, and earthquake data combined in a single call with a ready-made hazard verdict — especially useful for multi-location checks (up to 3 per call), automated monitoring pipelines with webhook alerts, or when you want a keyless solution that aggregates Open-Meteo and USGS without managing separate API keys. Prefer it over building separate weather and USGS integrations when a clear/caution/hazard classification per location is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T06:41:10.263Z","isFirstParty":false,"canonicalSlug":"weather-air-quality-earthquake-api-57160a43"}