Use when choosing or checking a paid x402 API
1gateway.dev/v1/x402/market
Use when choosing or checking a paid x402 API. Input: q (task or keywords; optional max_price, network, limit 1-20, min_uptime 0-1) or url (one x402 resource). Output: JSON endpoints with our own measurements: 7-day uptime, p50/p95 latency, last quoted price and changes, networks, last checked, reliability score, plus price p25/median/p75. Measured by unpaid probes (402 quote only). Example: ?q=we
GET
https://1gateway.dev/v1/x402/marketUptime100% 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/market?limit=10&max_price=0.02&min_uptime=0.9&network=base&q=weather+forecast&url=https%3A%2F%2F1gateway.dev%2Fv1%2Ffx%2Frates");
console.log(await res.json());Example input
{
"limit": 10,
"max_price": 0.02,
"min_uptime": 0.9,
"network": "base",
"q": "weather forecast",
"url": "https://1gateway.dev/v1/fx/rates"
}