agentsvc.io

services / service-finder

utilityoperational · 163 ms

x402 Service Finder (Which API Should I Call?)

Find the right paid API for a task across the whole x402 market, not only agentsvc.io: describe what your agent needs in plain words ("convert a web page to markdown", "token price on Solana", "transcribe audio") and get the best matching x402 endpoints from about 45,000 listed ones, each with provider, URL, method, price in USD, payment networks, an input hint, and whether it answered our own check with a valid 402 (reachable, checked_at, response time). Ranked by text match, repeat purchases and reachability, at most 3 per provider, no boost for agentsvc.io. Filter by max_price_usd and network. Index refreshed daily.

Run free trial ↗3 free calls per day with the example input. Paid: $0.005 USDC, no limit.

Call it

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agentsvc.io/api/v1/proxy/service-finder", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"task":"convert a web page to markdown","limit":5}),
});
const { data, payment } = await res.json();  // payment.status "settling"; header X-Payment-Settle: sync returns payment.transaction

Input

FieldTypeDescription
task *stringWhat your agent needs, in plain words
max_price_usdnumberOnly endpoints at or below this price per call
networkbase | solana | polygon | arbitrum | ethereum | optimism | avalanche | bscOnly endpoints that accept payment on this network
limitinteger = 8
include_unreachableboolean = falseAlso return endpoints that failed our last check

Output

FieldTypeDescription
taskstring
countinteger
resultsarray
how_to_callstring
indexobject