# USGS Earthquake Catalog (ComCat) · Search

Search public records with USGS Earthquake Catalog (ComCat) · Search from Alexandria through one Spiral API key. Find earthquakes (or other seismic events) in a time window, region or magnitude range: recent significant quakes, a historical sequence, quakes near a site. Use event for one event's ShakeMap, PAGER and DYFI summaries. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Public Records
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `earthquake-usgs-gov/earthquakes/search`
- Page: https://spiral.ai/tools/alexandria/earthquake-usgs-gov/earthquakes/search

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `limit` | number | 1 to 200 | 50 | Events per page. |
| `cursor` | text |  | — | next_cursor from the previous page of the same search. Pattern: ^[0-9]{1,5}$. |
| `end_time` | text |  | — | Latest origin time (inclusive), UTC, same formats. A bare date means 00:00:00 of that day. Defaults to now. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}(:[0-9]{2}(\.[0-9]{1,3})?)?)?Z?$. |
| `latitude` | number | -90 to 90 | — | Circle center latitude; requires longitude and max_radius_km. |
| `order_by` | one of | time, time-asc, magnitude, magnitude-asc | time | Newest first (time), oldest first, largest first (magnitude) or smallest first. |
| `longitude` | number | -180 to 180 | — | Circle center longitude. |
| `event_type` | text |  | — | ComCat event type, e.g. earthquake, explosion, quarry blast. Defaults to every type. Pattern: ^[a-z][a-z ]{0,39}$. |
| `start_time` | text |  | — | Earliest origin time, UTC: YYYY-MM-DD or YYYY-MM-DDTHH:MM[:SS[.fff]][Z]. Defaults to 30 days ago. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}(:[0-9]{2}(\.[0-9]{1,3})?)?)?Z?$. |
| `alert_level` | one of | green, yellow, orange, red | — | Only events with this PAGER alert level. |
| `max_depth_km` | number | -100 to 1000 | — | max_depth_km |
| `max_latitude` | number | -90 to 90 | — | Rectangle north edge. |
| `min_depth_km` | number | -100 to 1000 | — | min_depth_km |
| `min_latitude` | number | -90 to 90 | — | Rectangle south edge. Rectangle edges may be given in any subset; do not combine with the circle. |
| `max_longitude` | number | -360 to 360 | — | Rectangle east edge. |
| `max_magnitude` | number | -2 to 10 | — | max_magnitude |
| `max_radius_km` | number | 0 to 20001.6 | — | Circle radius in kilometres. |
| `min_longitude` | number | -360 to 360 | — | Rectangle west edge; values beyond +/-180 let a rectangle cross the antimeridian. |
| `min_magnitude` | number | -2 to 10 | — | min_magnitude |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "earthquake-usgs-gov/earthquakes/search",
    "input": {
      "limit": 50
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=earthquake-usgs-gov%2Fearthquakes%2Fsearch

## Common questions

### USGS Earthquake Catalog (ComCat) · Search

**How much does USGS Earthquake Catalog (ComCat) · Search cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use USGS Earthquake Catalog (ComCat) · Search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "earthquake-usgs-gov/earthquakes/search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use USGS Earthquake Catalog (ComCat) · Search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use USGS Earthquake Catalog (ComCat) · Search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

