Weather, Air Quality & Earthquake Risk API by Location
Pricing
from $4.25 / 1,000 location assesseds
Weather, Air Quality & Earthquake Risk API by Location
Weather, air quality (AQI, PM2.5) and nearby earthquakes for any place on Earth in one call, plus a clear/caution/hazard verdict with reasons. Use it to check conditions or hazards at a location; many locations per run. Keyless (Open-Meteo + USGS); webhook alerts.
Pricing
from $4.25 / 1,000 location assesseds
Rating
0.0
(0)
Developer
Centor Prat
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
π Weather, Air Quality & Earthquake Risk API by Location
One call, three live sources, one answer. For any point (or many), this fuses current
weather + air quality + recent earthquakes into a single computed verdict β
clear / caution / hazard β with the exact hazard flags and reasons, instead of
making your agent hit three APIs and stitch the result.
Headless Β· keyless (no API keys to manage) Β· structured JSON out Β· built for AI agents.
β‘ Why it's different
Other actors give you raw weather, raw air quality, or raw quakes. This one composes and
judges them: strong gusts βοΈ + unhealthy air π· + a nearby M5 quake π β one hazard verdict
with the reasons spelled out. Ask once, decide immediately.
π What it does & what you get
| Field | Meaning |
|---|---|
status | Computed verdict: clear Β· caution Β· hazard |
flags | e.g. high_wind, heavy_precip, low_visibility, poor_air, strong_quake, dark |
reasons | Human-readable why (e.g. "notable earthquake nearby (M4.9)") |
weather | temp Β°C, wind & gusts km/h, precip mm, visibility m, is-day, sunrise/sunset, condition |
airQuality | PM2.5, PM10, US AQI + band, EU AQI, ozone, NOβ |
seismic | count, max magnitude, and the recent events (place, time, depth) |
sources | the three upstream sources (attribution) |
π₯ Input
| Field | Type | Meaning |
|---|---|---|
latitude, longitude | number | A single point (decimal degrees) |
label | string | Optional name for that point |
locations | array | Many points: [{"latitude":35.68,"longitude":139.69,"label":"Tokyo"}] |
radiusKm | integer | Earthquake search radius (default 300) |
quakeLookbackDays | integer | Days back to search quakes (default 7) |
minMagnitude | number | Ignore quakes below this (default 2.5) |
onlyAlerts | boolean | Drop clear points (great with a schedule) |
webhookUrl | string | POST results here if any (Zapier/Make/n8n/custom) |
Example input
{"locations": [{ "latitude": 35.68, "longitude": 139.69, "label": "Tokyo" },{ "latitude": 40.4168, "longitude": -3.7038, "label": "Madrid" }],"radiusKm": 300,"quakeLookbackDays": 7,"minMagnitude": 2.5}
π€ Output (one row per point)
{"label": "Tokyo", "latitude": 35.68, "longitude": 139.69,"status": "caution", "flags": ["quake"], "reasons": ["notable earthquake nearby (M4.9)"],"weather": { "weather": "mainly clear", "temperatureC": 16, "windGustKmh": 22,"visibilityM": 32740, "isDay": true, "sunrise": "2026-...T05:48", "sunset": "2026-...T17:11" },"airQuality": { "usAqi": 63, "aqiBand": "moderate", "pm2_5": 17.3, "pm10": 24.1 },"seismic": { "count": 5, "maxMag": 4.9, "events": [ { "mag": 4.9, "place": "...", "timeUtc": "2026-..." } ] },"sources": ["open-meteo.com", "air-quality-api.open-meteo.com", "earthquake.usgs.gov (USGS)"],"capturedAt": "2026-..."}
π‘ Use cases
- Field / drone / outdoor ops: is this site safe to operate right now, and why?
- Logistics & delivery: flag routes/depots hitting severe wind, low visibility or heavy rain.
- Travel & events: a one-shot "is it clear at this destination" check across many points.
- Agent tools: give a location assistant one call instead of three APIs + glue code.
- Scheduled monitoring: watch a set of sites and get pinged only on caution/hazard.
π€ For AI agents (MCP)
Keyless, one call β a fused, judged answer with the raw sub-data attached for grounding. Every input is described in the schema for programmatic/MCP use. Example MCP server config:
{"mcpServers": {"location-conditions": {"url": "https://mcp.apify.com/?tools=actors,docs,centorprat/weather-air-quality-earthquake-api"}}}
Claude Code: claude mcp add --transport http apify "https://mcp.apify.com/?tools=actors,docs,centorprat/weather-air-quality-earthquake-api" --header "Authorization: Bearer <YOUR_APIFY_TOKEN>"
No extra setup: this Actor is callable from Claude, Cursor, ChatGPT or any MCP client through the Apify MCP server, and agents can find it on their own with the server's search-actors tool.
π Alerts (scheduled)
Set onlyAlerts: true + webhookUrl, add an Apify Schedule (e.g. every 30 min), and get
pinged only when a watched location turns caution/hazard.
π Ready-made tasks (one click)
Pre-configured runs for the most common jobs. Open one, change the input, run:
- Air Quality & Weather Now for Any City: Current AQI, PM2.5, PM10 and weather for many cities in one call, with a hazard verdict per city. Keyless air quality API.
- Recent Earthquakes Near a Location (USGS): Recent USGS earthquakes near any lat/lon with magnitude, distance and time, plus weather, air quality and a hazard verdict.
- Travel Destination Weather & Hazard Check: Weather, air quality and earthquake check for travel destinations, with a clear/caution/hazard verdict per place. One call, many places.
β FAQ
- Do I need an API key? No β all three sources are keyless and free; you only pay the Actor's per-result fee.
- How fresh is it? Weather & air quality are current; earthquakes cover your chosen lookback window (default 7 days).
- How many locations per run? As many as you pass in
locations; you're billed per location assessed. - What makes a
hazardvscaution? Severe thresholds (e.g. gusts β₯60 km/h, US AQI β₯151, precip β₯7 mm, Mβ₯5.5) βhazard; moderate thresholds βcaution; otherwiseclear. - Why both US and EU AQI? Different regions read air quality on different scales; you get both plus a plain-language band.
- Can I only get alerts? Yes β
onlyAlerts: truedropsclearpoints; addwebhookUrlto push them out. - What units? Temperature Β°C, wind km/h, precipitation mm, visibility m, magnitudes on the USGS scale.
- Is the data stored? No β it's fetched, composed, returned. Nothing is retained.
- Is this legal to use commercially? Yes β Open-Meteo is free for commercial use with attribution; USGS data is U.S. public domain.
- What if a source is down? The row still returns with whatever composed successfully; the failed sub-object carries an error flag.
π Data & attribution
Weather & air quality from Open-Meteo (open data, free for commercial use with attribution); earthquakes from the USGS earthquake feed (U.S. public domain). This actor retrieves and composes public data; it stores none of it.
π Related actors
Part of one suite of keyless, agent-ready composers by the same developer:
- Shopify Store Leads + App Audit (Reviews, Email, Pixels): Shopify stores by niche, verified and audited for missing apps (reviews, email/SMS, upsell, loyalty, chat, subscriptions), pixels and theme: scored leads with emails.
- Google Maps Leads + Website Audit for Agencies: local businesses from Google Maps audited for website, Google profile, reviews, booking and tracking gaps: scored, explained leads with phone and emails.
- FEMA Flood Zone & Property Risk API - Zillow/Redfin Enricher: FEMA flood zone + 18-hazard FEMA risk index + neighborhood demographics per US address, or for a whole Zillow/Redfin dataset.
- Domain Lookup API - DNS, MX, SPF, Tech & Contact Emails: DNS + live homepage β IPs, MX/SPF, tech, socials and public contacts per domain.
- Wikipedia & Wikidata API - Entity Facts, Summary & Pageviews: Wikipedia + Wikidata + pageviews β one structured brief per company, person or place.
- Country Economic Data API - World Bank GDP, FX & Holidays: World Bank + FX + public holidays β one market brief per country.
- Aircraft Tracker API (ADS-B) - Approach & Military Alerts: aircraft approaching a point with CPA/ETA + military/unidentified flags and alerts.
- NARA Catalog Extractor: US National Archives catalog search β digital-object download URLs + metadata.