x402-agent-tools

Pay-per-call APIs for AI agents via x402 (USDC on Base): DNS, SEO, security, DeFi, web and dev lookups. No signup or API key.

View the Project on GitHub kristofferpeders-sketch/x402-agent-tools

x402-agent-tools

Pay-per-call lookup APIs for AI agents. No signup, no API key: each call is paid with a tiny USDC payment on Base using the x402 protocol (v2).

All endpoints below were checked against known-true answers in our own audit (status OK, 2026-12-02). Calls that did not pass the audit are deliberately not listed. Payments go to 0x7B97303d62517eA9E26D1E1b199Eac42a487F430 (Base, eip155:8453, USDC). There are no free calls at the moment. You are only charged when a 2xx answer is delivered.

Calls

Call Endpoint (host *.restockalarm.workers.dev) Price Example query
Rug-pull check GET rug-check…/v1/rug $0.02 address=0x940181a94A35A4569E4529A3CDfB74e38FD98631
Token momentum score GET momentum-score…/v1/momentum $0.02 address=0x940181a94A35A4569E4529A3CDfB74e38FD98631
Wallet balance (Base) GET bal-check…/v1/balance $0.003 address=0x7B97303d62517eA9E26D1E1b199Eac42a487F430
DeFi protocol risk GET defi-protocol-tvl…/v1/defi-protocol-risk $0.05 protocol=aave
Gas price now GET defi-protocol-tvl…/v1/gas-now $0.005 chain=all
Chain TVL ranking GET defi-protocol-tvl…/v1/chain-tvl-rank $0.01 limit=15
Email spoofing audit (SPF/DMARC/MX) GET dns-email-security…/v1/audit $0.01 domain=cloudflare.com
DNS propagation GET dns-email-security…/v1/dns-propagation $0.01 domain=cloudflare.com&type=A
RDAP domain info GET domain-rdap-info…/v1/domain $0.01 domain=cloudflare.com
Security headers GET domain-trust-report…/v1/headers-security $0.01 domain=cloudflare.com
Tech detection GET domain-trust-report…/v1/tech-detect $0.01 domain=vercel.com
Robots/sitemap/llms.txt audit GET sitemap-robots-audit…/v1/audit $0.01 domain=cloudflare.com
AI crawl readiness GET x402-seo-api…/v1/ai-crawl-readiness $0.03 domain=example.com
SERP snippets GET x402-seo-api…/v1/serp-snippets $0.02 keyword=running%20shoes
Keyword ideas GET x402-seo-api…/v1/keyword-ideas $0.01 keyword=running%20shoes&hl=en
Questions for a keyword GET x402-seo-api…/v1/questions $0.02 keyword=running%20shoes&hl=en
Shop agent-ready score GET x402-shop-check…/v1/agent-ready $0.05 url=https://example.com/products/x
Package audit (batch) GET pkg-cve-check…/v1/audit $0.02 ecosystem=npm&packages=lodash@4.17.20,express@4.18.2
License compliance GET pkg-cve-check…/v1/license-compliance $0.02 ecosystem=npm&name=express
URL metadata GET url-meta…/v1/meta $0.002 url=https://github.com
Web to Markdown GET web-md…/v1/markdown $0.003 url=https://example.com
IP to ASN GET ip-asn-intel…/v1/ip $0.01 ip=1.1.1.1

Full URLs are in endpoints.json and llms.txt.

The 402 flow

curl -i "https://rug-check.restockalarm.workers.dev/v1/rug?address=0x940181a94A35A4569E4529A3CDfB74e38FD98631"
# HTTP/2 402
# payment-required: <base64 JSON: accepts[0] = {scheme: exact, network: eip155:8453, amount: 20000, asset: USDC, payTo: 0x7B97...F430}>

An x402 client reads payment-required, signs a USDC authorization, and retries the same request with a PAYMENT-SIGNATURE header. The server answers 200 with JSON. See examples/ for a working JavaScript client using @x402/fetch.

Example client

cd examples && npm install
PRIVATE_KEY=0x... node pay.mjs "https://url-meta.restockalarm.workers.dev/v1/meta?url=https://github.com"

Your own wallet key stays on your machine; no key is stored in this repo.

Monitoring

A GitHub Action (.github/workflows/monitor.yml) checks every listed endpoint hourly, expects HTTP 402 with the payTo address in the payment requirements, and opens an issue if one fails.

Disclaimer

Data answers are informational, not financial or legal advice. License: MIT.