# srch.best Alerts API

> srch.best Alerts API is a paid API for AI agents from x402.srch.best, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns structured earthquake and weather alert data for a given location or area, paid per request via x402

## Facts

- Endpoint: POST https://x402.srch.best/alerts
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/srch-best-alerts-api-a5286996
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3FA8d-CTp45I4Qmc1MOM2

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 srch-best-alerts-api-a5286996 -d '<json body>'
```

Example prompt: Can you pull structured earthquake alerts within 200 km of San Francisco (37.77, -122.41) from 2024-06-01 to 2024-06-30, minimum magnitude 3.5, and give me the top 20 results?

## When to prefer this

Choose this endpoint when you need structured, machine-readable earthquake or weather alert data tied to a specific geographic location or US state, especially in agentic workflows where you pay only per query via x402. It is well-suited for agents that need to programmatically assess risk, trigger notifications, or enrich location data with hazard information, without the overhead of scraping government alert feeds directly.

## Known failure modes

- Invalid or missing 'type' field (must be 'earthquake' or 'weather') — returns validation error
- Coordinates out of valid range — returns schema validation error
- Date format not matching ISO date (YYYY-MM-DD) — returns parse error
- Missing required 'area' field for weather queries — returns bad request
- Magnitude out of allowed range (-2 to 10) — returns validation error
- Payment failure via x402 protocol — returns 402 Payment Required
- No alerts found for the given parameters — returns empty result set
- Limit exceeding maximum of 100 — returns validation error

## How this service works

Structured alerts data for agents, paid per request with x402 v2

## Output

A structured JSON object containing a list of alert records matching the query. For earthquakes: event time, location, depth, magnitude, and geographic coordinates. For weather: active warnings, watch/advisory details, and affected area information. Results are capped at the requested limit (max 100).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "oneOf": [
      {
       "type": "object",
       "required": [
        "type"
       ],
       "properties": {
        "type": {
         "const": "earthquake"
        },
        "limit": {
         "type": "integer",
         "default": 20,
         "maximum": 100,
         "minimum": 1
        },
        "endTime": {
         "type": "string",
         "format": "date"
        },
        "latitude": {
         "type": "number"
        },
        "radiusKm": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        },
        "startTime": {
         "type": "string",
         "format": "date"
        },
        "minMagnitude": {
         "type": "number",
         "maximum": 10,
         "minimum": -2
        }
       },
       "additionalProperties": false
      },
      {
       "type": "object",
       "required": [
        "type"
       ],
       "properties": {
        "area": {
         "type": "string",
         "maxLength": 2,
         "minLength": 2
        },
        "type": {
         "const": "weather"
        },
        "limit": {
         "type": "integer",
         "default": 20,
         "maximum": 100,
         "minimum": 1
        },
        "latitude": {
         "type": "number"
        },
        "longitude": {
         "type": "number"
        }
       },
       "additionalProperties": false
      }
     ]
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/srch-best-alerts-api-a5286996/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.srch.best](https://www.zero.xyz/host/x402.srch.best/llms.txt)
