x402 Router

v0.1.2
io.github.camerxnduff/x402-router Checked 2 days ago Published 9 days ago

Search 24.5k+ live, probed x402 endpoints; route to the best.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_x402_endpoints

Search LIVE x402 (HTTP 402 pay-per-call) endpoints. Filters: q (text), chain (Base, Solana...), category, max_price (USDC), min_score (0-100), sort (score|price|latency|newest), limit (1-50).

ParameterTypeDescription
categorystring
chainstring
limitinteger
max_price
min_score
qstring
sortstring

route_x402_request

FREE. Best live x402 endpoint for a task plus the top 3 (POST /route). Filters: q, category, chain, max_price. For the full ranked list with latency/reliability and a ready-to-pay pick use find_best_x402_endpoint. Does not pay.

ParameterTypeDescription
agentstring
categorystring
chainstring
max_price
qstring

get_registry_stats

Registry summary: total/LIVE counts, LIVE by chain, median price, last crawl time, router health.

get_paid_route_requirements

Return the x402 payment requirements of the paid route (/route/paid) without paying.

find_best_x402_endpoint

PAID ($0.01 USDC on Base via x402). Full ranked list (up to 25) of live-tested x402 APIs for a task, with latency, reliability, price, payTo/networks, plus a ready-to-pay best pick. Needs X402_EVM_PRIVATE_KEY; otherwise returns the price.

ParameterTypeDescription
agentstring
categorystring
chainstring
max_price
qstring

check_x402_endpoint

PAID ($0.002 USDC on Base via x402). Fresh live probe of one registry endpoint: is it up (HTTP 402), latency, the real price and payTo it asks for now, and whether that matches the registry. Needs X402_EVM_PRIVATE_KEY.

ParameterTypeDescription
url *string
agentstring