$0.0001
per call · USD Coin on Base
BitBooth Regex Test: pay 0.001 USDC, safely compile and run a regex against a corpus. Returns structured matches with capture groups, indices, and lengths. JS engine flags (g, i, m, s, u, y, d). Hard CPU deadline guards against catastrophic backtracking (ReDoS) — `regex_timeout` is reported instead of stalling. Stateless, no API key.
Endpoint
POST https://app.heinrichstech.com/v1/cdp/regex-test1
Calls / 30d
1
Unique payers / 30d
Sep 1
Last called
exact
Payment scheme
Call this service
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://app.heinrichstech.com/v1/cdp/regex-test", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"captureLimit": 100,
"flags": "g",
"input": "a1 b22 c333",
"pattern": "\\d+"
}),
});
const data = await res.json();curl -X POST \
"https://app.heinrichstech.com/v1/cdp/regex-test" \
-H "Content-Type: application/json" \
-d '{"captureLimit":100,"flags":"g","input":"a1 b22 c333","pattern":"\\d+"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"flags": "g",
"fullCount": 3,
"matchCount": 3,
"matches": [
{
"groups": [],
"index": 1,
"length": 1,
"match": "1"
},
{
"groups": [],
"index": 4,
"length": 2,
"match": "22"
},
{
"groups": [],
"index": 8,
"length": 3,
"match": "333"
}
],
"ok": true,
"pattern": "\\d+",
"payment": {
"network": "eip155:8453",
"payer": "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"transaction": "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"service": "BitBooth /v1/cdp/regex-test",
"truncated": false
}Payment details
0xda2f35d283c42dd60b965322394bc658a5c1769fUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Other and the homepage with a featured placement.
More from Heinrichstech & similar services
Heinrichstech · CDP Echo
app.heinrichstech.com
BitBooth echo endpoint — pays a tiny USDC fee, returns a JSON echo. Reference implementation of the x402 + CDP Facilitator + Bazaar discovery loop.
Heinrichstech · Chain Erc20 Balance
app.heinrichstech.com
ERC-20 token balance for any wallet — USDC, USDT, DAI, or any token contract — via balanceOf eth_call, with decimals applied. Ethereum or Base mainnet. Pay 0.003 USDC.
Heinrichstech · CDP Whois
app.heinrichstech.com
BitBooth Whois: pay 0.005 USDC, get the parsed whois record for any domain — registrar, creation/updated/expiry dates, name servers, status flags, plus the raw whois text. Two-hop resolution via whois.iana.org then the authoritative registry over TCP port 43. 5s per-connection timeout cap. Rejects IPv4/IPv6 inputs and blocks SSRF at the DNS layer. Built for agents auditing domain ownership, monitoring expiry, or pre-flighting a target.