# x402-experiments Gas Price Alert Subscription

> x402-experiments Gas Price Alert Subscription is a paid API for AI agents from lab.paidapis.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Registers a webhook-based gas price alert that fires when Ethereum gas prices cross a specified Gwei threshold

## Facts

- Endpoint: POST https://lab.paidapis.net/api/alerts/subscribe
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-experiments-gas-price-alert-subscription-b1ab15f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__uQAboChsfP_1weeDw5TD

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 x402-experiments-gas-price-alert-subscription-b1ab15f5 -d '<json body>'
```

Example prompt: Set up a gas price alert for me — notify my endpoint at https://myapp.example.com/gas-hook when gas goes above 80 Gwei.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-alert webhook subscription for Ethereum gas price monitoring, especially in an x402-based micropayment architecture. It's ideal for blockchain automation workflows where you want to trigger actions (mints, swaps, pauses) based on real-time gas conditions without polling. Prefer this over general monitoring services if you're already using the x402 payment protocol on Base mainnet USDC.

## Known failure modes

- Missing required fields (condition, webhookUrl, thresholdGwei) returns a 400 validation error
- Invalid webhookUrl format (non-http/https) may cause alert registration failure or delivery-failed status
- Payment failure or insufficient USDC balance causes 402 response before alert is created
- Webhook delivery failure results in status 'delivery-failed' if the target URL is unreachable when alert fires
- Threshold never crossed means alert remains in 'active' state indefinitely

## How this service works

Alerting: register a one-shot webhook that fires when Ethereum gas price crosses your threshold — the server pushes to you when it happens, instead of you polling for it.

## Output

Returns a JSON object with a unique alertId, current status ('active', 'fired', or 'delivery-failed'), the registered webhookUrl, thresholdGwei, condition, createdAt timestamp, and — once fired — firedAt and gasPriceGweiAtTrigger values.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "condition",
  "webhookUrl",
  "thresholdGwei"
 ],
 "properties": {
  "condition": {
   "enum": [
    "above",
    "below"
   ],
   "type": "string",
   "description": "Either \"above\" or \"below\"."
  },
  "webhookUrl": {
   "type": "string",
   "description": "Public http(s) URL to POST to when the alert fires."
  },
  "thresholdGwei": {
   "type": "number",
   "description": "Gas price threshold in Gwei."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "status": {
   "enum": [
    "active",
    "fired",
    "delivery-failed"
   ],
   "type": "string"
  },
  "alertId": {
   "type": "string"
  },
  "firedAt": {
   "type": [
    "string",
    "null"
   ]
  },
  "condition": {
   "enum": [
    "above",
    "below"
   ],
   "type": "string"
  },
  "createdAt": {
   "type": "string"
  },
  "webhookUrl": {
   "type": "string"
  },
  "thresholdGwei": {
   "type": "number"
  },
  "gasPriceGweiAtTrigger": {
   "type": [
    "number",
    "null"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-experiments-gas-price-alert-subscription-b1ab15f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lab.paidapis.net](https://www.zero.xyz/host/lab.paidapis.net/llms.txt)
