← Earthquakes (USGS)
environment by fourzerotwo
Count earthquakes
How many earthquakes match a time and magnitude window.
Count earthquakes
How many earthquakes match a time and magnitude window.
- price
- $0.001 / call
- free tier
- free allowance
- MCP tool
- earthquakes__count
- method
- GET
GET https://fourzerotwo.si/v1/earthquakes/count
| Param | Type | Description |
|---|---|---|
| starttime | string | YYYY-MM-DD |
| minmagnitude? | string | Minimum magnitude |
# unpaid: returns 402 with the price curl -i "https://fourzerotwo.si/v1/earthquakes/count?starttime=2026-09-01" # free tier: send a free key from https://fourzerotwo.si/free curl -H "X-API-Key: fzt_…" "https://fourzerotwo.si/v1/earthquakes/count?starttime=2026-09-01"
Use it from an AI agent (MCP)
Add the server once, then ask for this data in plain English. The agent finds the endpoint with search_apis and runs it with call_api.
{
"mcpServers": {
"fourzerotwo": { "type": "http", "url": "https://fourzerotwo.si/mcp" }
}
}
# the call the agent makes
call_api {"tool": "earthquakes__count", "arguments": {"starttime":"2026-09-01","minmagnitude":"5"}}
More from Earthquakes (USGS)
- Significant this week — Significant earthquakes worldwide in the past 7 days.
- M4.5+ this week — Magnitude 4.5+ earthquakes worldwide in the past 7 days.
- M2.5+ today — Magnitude 2.5+ earthquakes worldwide in the past day.
- Earthquakes near a point — Earthquakes within a radius of a point since a date.
- Earthquake detail — Full detail for one earthquake by USGS event id.
Source: U.S. Geological Survey Earthquake Hazards Program. Public domain.