Every endpoint costs a fraction of a cent, paid in USDC and settled on Base via the x402 protocol. Your agent sends one HTTP request, pays inline, and gets the data — machine to machine, fully autonomous.
AgentToll is a data vending machine for AI agents. Software can't sign up for accounts or hold credit cards — so here, every piece of data is a URL with a price tag. An agent requests it, gets an HTTP 402 quote, pays a fraction of a cent in USDC, and receives the data in the same round trip. No accounts, no API keys, no subscriptions — pay exactly for what you use.
Trading bots, portfolio monitors, DeFi watchers, and AI assistants (Claude, GPT) that need market or Base onchain data.
$0.001–$0.005 per call. An agent polling every 5 minutes spends cents per month — and pays nothing when idle.
Machine-readable catalog at GET /api/catalog (free) lists everything for sale with prices.
| Endpoint | What you get | Price |
|---|---|---|
GET /api/price/:symbol |
Spot price (USD) + 24h change for any asset | $0.001 |
GET /api/gas |
Base network gas price + latest block | $0.001 |
GET /api/trending |
Tokens trending across the market right now | $0.002 |
GET /api/base/token/:address |
Onchain USD price for any Base token by contract address | $0.001 |
GET /api/base/address/:address |
Base address snapshot: ETH balance, tx count, contract or EOA | $0.001 |
GET /api/feargreed |
Crypto Fear & Greed index with yesterday comparison | $0.001 |
GET /api/base/trending |
Trending DEX pools on Base: price, volume, liquidity | $0.002 |
GET /api/brief |
One-call market brief: BTC/ETH/SOL, Base gas, sentiment | $0.005 |
GET /api/catalog |
Machine-readable catalog of everything for sale | free |
GET /api/health |
Service status | free |
Your agent calls an endpoint. The server replies 402 Payment Required with a price quote.
The agent signs a USDC authorization for the quoted amount — no gas, no account, no API key.
The request retries with the payment header; settlement lands on Base, data comes back instantly.
# free health check curl https://agenttoll-pi.vercel.app/api/health # hit a paid endpoint without paying: you get the machine-readable 402 quote curl -i https://agenttoll-pi.vercel.app/api/price/eth # HTTP/1.1 402 Payment Required # {"x402Version":1,"accepts":[{"maxAmountRequired":"1000","asset":"USDC","payTo":"0x..."}]}
That 402 response is the whole product: a price quote any agent can pay programmatically. Payments settle in real USDC on Base mainnet. (Self-hosting the open-source repo defaults to Base Sepolia testnet — free test USDC at faucet.circle.com.)
// npm i x402-fetch viem import { wrapFetchWithPayment } from "x402-fetch"; import { privateKeyToAccount } from "viem/accounts"; const pay = wrapFetchWithPayment(fetch, privateKeyToAccount(AGENT_KEY)); const res = await pay("https://agenttoll-pi.vercel.app/api/price/eth"); console.log(await res.json()); // { symbol: "eth", usd: ..., change24h: ... }
AgentToll ships an MCP server: add it to Claude Desktop / Claude Code and every endpoint becomes a native tool — your agent pays per call automatically.
{
"mcpServers": {
"agenttoll": {
"command": "npx",
"args": ["-y", "agenttoll-mcp"],
"env": { "AGENT_PRIVATE_KEY": "0x..." }
}
}
}
10 tools: get_price,
get_base_gas, get_trending, get_base_token_price,
get_base_address_info, get_fear_greed, get_base_trending_pools,
get_market_brief, get_new_token_radar, get_try_premium.
Package: agenttoll-mcp on npm ·
README.