Check an x402 endpoint first: price, payee and terms
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Check an x402 endpoint before you pay it: decode its 402 payment terms (USD price for native USDC, network, asset, recipient, scheme, timeout) without paying, plus a listing-quality score for the resource URL, atomic amount, facilitator minimum and output schema. Never signs. Use before buying from an unfamiliar x402 seller.
Inputs
| Name | Type | Description |
|---|---|---|
url (required) | string | Absolute public https URL of the paid endpoint, with any query it needs |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/check-x402-endpoint-before-paying?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees"
Node.js
const r = await fetch("https://glyphtools.com/check-x402-endpoint-before-paying?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/check-x402-endpoint-before-paying?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/check-x402-endpoint-before-paying?url=https%3A%2F%2Fagent-data-tools.revmesh2074.workers.dev%2Fbtc-fees&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"url": "https://agent-data-tools.revmesh2074.workers.dev/btc-fees",
"status": 402,
"paywalled": true,
"x402Version": 2,
"resource": {
"url": "https://agent-data-tools.revmesh2074.workers.dev/btc-fees",
"description": "Current Bitcoin network fee rates… Use before sending a Bitcoin transaction…",
"mimeType": "application/json"
},
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x…",
"amountAtomic": "2000",
"priceUsd": 0.002,
"assetIsNativeUsdc": true,
"maxTimeoutSeconds": 300
}
],
"checks": [
{
"check": "x402 payment requirements present",
"pass": true
}
],
"score": 1
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is check_x402_endpoint_before_paying, and the first 10 successful calls are free:
https://glyphtools.com/mcp