T

Token Price Alert · Price Alert

by Token Price Alert

GETBasePolygon

$0.05

per call · USD Coin on Base

Pay once to register a price-threshold alert on any Base token. Supply target price, direction (above/below), and an https webhook URL. A polling cron (daily by default; configurable to ~minutes) checks DexScreener and POSTs your webhook when it crosses. Expires after 30 days. Or omit the webhook and poll with check=<id>: the verdict is THRESHOLD_MET, ok, FIRED, or unknown when the price feed could not be read.

Endpoint

GET https://402.com.tr/api/x402/price-alert

2

Calls / 30d

1

Unique payers / 30d

Sep 4

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://402.com.tr/api/x402/price-alert", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://402.com.tr/api/x402/price-alert?direction=above&threshold=0.01&token=0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "alertId": "alrt_7d4e3f9c",
  "direction": "above",
  "expiresInDays": 30,
  "fired": false,
  "priceAtCreate": 0.0072,
  "registered": true,
  "threshold": 0.01,
  "token": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"
}

Payment details

Pay to0x973a31858f4d2125f48c880542da11a2796f12d6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Polygon
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Token Price Alert & similar services