Alerting: register a one-shot webhook that fires when Ethereum gas price crosses your thre
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.
20000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-12
updated
Provider
lab.paidapis.net · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xf74f2020aC3d73F2Bf5ee0F8Bf635475eA881319",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"condition": "above",
"thresholdGwei": 0,
"webhookUrl": ""
},
"method": "POST",
"type": "http"
},
"output": {
"example": {
"alertId": "",
"condition": "above",
"createdAt": "",
"firedAt": "",
"gasPriceGweiAtTrigger": 0,
"status": "active",
"thresholdGwei": 0,
"webhookUrl": ""
},
"type": "json"
}
},
"schema": {
"properties": {
"input": {
"properties": {
"body": {
"properties": {
"condition": {
"description": "Either \"above\" or \"below\".",
"enum": [
"above",
"below"
],
"type": "string"
},
"thresholdGwei": {
"description": "Gas price threshold in Gwei.",
"type": "number"
},
"webhookUrl": {
"description": "Public http(s) URL to POST to when the alert fires.",
"type": "string"
}
},
"required": [
"webhookUrl",
"condition",
"thresholdGwei"
],
"type": "object"
}
}
},
"output": {
"properties": {
"example": {
"properties": {
"alertId": {
"type": "string"
},
"condition": {
"enum": [
"above",
"below"
],
"type": "string"
},
"createdAt": {
"type": "string"
},
"firedAt": {
"type": [
"string",
"null"
]
},
"gasPriceGweiAtTrigger": {
"type": [
"number",
"null"
]
},
"status": {
"enum": [
"active",
"fired",
"delivery-failed"
],
"type": "string"
},
"thresholdGwei": {
"type": "number"
},
"webhookUrl": {
"type": "string"
}
},
"type": "object"
}
}
}
}
}
}
}Use it
curl
curl "https://lab.paidapis.net/api/alerts/subscribe" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://lab.paidapis.net/api/alerts/subscribe");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://lab.paidapis.net/api/alerts/subscribe")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/12420.json, and this resource appears in /discovery/resources and /discovery/search.