fourzerotwo
← 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

ParamTypeDescription
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)

Source: U.S. Geological Survey Earthquake Hazards Program. Public domain.