Use when an agent must pick a paid x402 API for a task
1gateway.dev/v1/x402/recommend
Use when an agent must pick a paid x402 API for a task. Input: q (task in plain words or keywords), optional max_price (USD), network (base, solana or CAIP-2), limit (1-20). Output: JSON ranked endpoints: resource URL, method, description, price, networks, seller, 30-day payers and calls (Bazaar), seller buyers (x402scan), wash/quality flags, score, index as_of. Same rules for every seller. Exampl
GET
https://1gateway.dev/v1/x402/recommendUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://1gateway.dev/v1/x402/recommend?include_flagged=true&limit=5&max_price=0.02&network=base&q=base+token+honeypot+check");
console.log(await res.json());Example input
{
"include_flagged": "true",
"limit": 5,
"max_price": 0.02,
"network": "base",
"q": "base token honeypot check"
}