Weather, Air Quality & Earthquake Risk API by Location avatar

Weather, Air Quality & Earthquake Risk API by Location

Pricing

from $4.25 / 1,000 location assesseds

Go to Apify Store
Weather, Air Quality & Earthquake Risk API by Location

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

Centor Prat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

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

FieldMeaning
statusComputed verdict: clear · caution · hazard
flagse.g. high_wind, heavy_precip, low_visibility, poor_air, strong_quake, dark
reasonsHuman-readable why (e.g. "notable earthquake nearby (M4.9)")
weathertemp °C, wind & gusts km/h, precip mm, visibility m, is-day, sunrise/sunset, condition
airQualityPM2.5, PM10, US AQI + band, EU AQI, ozone, NO₂
seismiccount, max magnitude, and the recent events (place, time, depth)
sourcesthe three upstream sources (attribution)

📥 Input

FieldTypeMeaning
latitude, longitudenumberA single point (decimal degrees)
labelstringOptional name for that point
locationsarrayMany points: [{"latitude":35.68,"longitude":139.69,"label":"Tokyo"}]
radiusKmintegerEarthquake search radius (default 300)
quakeLookbackDaysintegerDays back to search quakes (default 7)
minMagnitudenumberIgnore quakes below this (default 2.5)
onlyAlertsbooleanDrop clear points (great with a schedule)
webhookUrlstringPOST 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:

❓ 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 hazard vs caution? Severe thresholds (e.g. gusts ≥60 km/h, US AQI ≥151, precip ≥7 mm, M≥5.5) → hazard; moderate thresholds → caution; otherwise clear.
  • 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: true drops clear points; add webhookUrl to 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.

Part of one suite of keyless, agent-ready composers by the same developer: