ai newsDo., 15. Okt.
EilmeldungClaude Code todo list: the day I stopped rebuilding it from memory

132 pay-per-call APIs for AI agents, paid in USDC with x402

AI agents need small facts all the time: a token balance, a company's filing, a page as clean text, a weather alert. Most APIs make an agent sign up, store a key and buy a plan first. SiteCheck works the other way. Each tool is one HTTP endpoint with a price between $0.001 and $0.01. The agent call

dev.toMittwoch 15:06 · 14.10.1 Min. Lesezeit
Bild: dev.to

AI agents need small facts all the time: a token balance, a company's filing, a page as clean text, a weather alert. Most APIs make an agent sign up, store a key and buy a plan first.

SiteCheck works the other way. Each tool is one HTTP endpoint with a price between $0.001 and $0.01. The agent calls it, gets an HTTP 402 with the price, pays in USDC on Base, Solana or Arc with the x402 protocol, and gets the answer. No account, no API key, no subscription. If the upstream source fails, the call is not charged.

Any tool answers an unpaid request with its price:

curl -i "https://api.sitecheck-api.workers.dev/api/crypto/price?symbols=BTC,ETH" Enter fullscreen mode Exit fullscreen mode An x402 client reads that 402, pays, and repeats the request. The full list with input and output schemas is at /openapi.json, and the same tools are a remote MCP server at:

https://api.sitecheck-api.workers.dev/mcp Enter fullscreen mode Exit fullscreen mode Accuracy This week every tool was run against inputs with known answers and compared with its official source: units, decimals, dates and missing fields. The faulty ones were fixed, and tools whose source does not work reliably from Cloudflare Workers were removed.

Quelle: dev.to (dev.to). Original öffnen