# USGS Landslides API (x402)

> USGS Landslides API (x402) is a paid API for AI agents from x402-v2-mint-usgs-landslides.vercel.app, paid per call via x402, $0.020113/call, status unknown (last checked 2026-11-20).

Retrieves USGS landslide event data filtered by time range, magnitude, and result count via a pay-per-call x402 endpoint.

## Facts

- Endpoint: POST https://x402-v2-mint-usgs-landslides.vercel.app/v1/usgs-landslides?utm_source=zero.xyz
- Price: $0.020113/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usgs-landslides-api-x402-b38c3230
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BXYB2ndEeL2ayOjCCVZCU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability usgs-landslides-api-x402-b38c3230 -d '<json body>'
```

Example prompt: Can you pull up to 25 USGS landslide events from January 1 2024 to March 31 2024 with a minimum magnitude of 3?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-call access to USGS landslide event data with flexible filtering by time range and magnitude, especially in automated agent workflows where x402 micropayment billing per query is acceptable. Prefer this over direct USGS API calls when operating in an x402-compatible payment environment or when you want a simplified, pre-wrapped interface to USGS landslide data without managing API keys.

## Known failure modes

- Invalid date format for starttime or endtime returns an error
- limit value outside 1–100 range is rejected by schema validation
- minmagnitude with non-numeric value causes a bad request
- Payment failure via x402 protocol results in 402 Payment Required response
- No events found for the given time range returns ok:true with empty data
- Request timeout if USGS upstream data source is unavailable

## How this service works

USGS FDSN landslide events (keyless; eventtype=landslide). POST {starttime?}/{endtime?}/{limit?}. Empty -> 400 not charged. earthquake/fema/eonet/humdata adjacency disclosed.

## Output

Returns a JSON object with an 'ok' boolean status, the skill name ('usgs-landslides'), a 'charged' boolean indicating the payment was processed, and a 'summary' field confirming the result status. The response confirms the query completed and that USDC payment was deducted per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1
  },
  "endtime": {
   "type": "string",
   "maxLength": 32
  },
  "starttime": {
   "type": "string",
   "maxLength": 32
  },
  "request_id": {
   "type": "string"
  },
  "minmagnitude": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "usgs-landslides",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usgs-landslides-api-x402-b38c3230/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-usgs-landslides.vercel.app](https://www.zero.xyz/host/x402-v2-mint-usgs-landslides.vercel.app/llms.txt)
