tinyx402

Live on Whitechain Sepolia · x402 v2

The web, as an API.
Paid per call.

TinyFish search, fetch, browser agents, research and datasets for your scripts and AI agents. Every request settles in USDT on Whitechain through x402. No API keys, no subscriptions, no invoices.

From
0.01 USDT
Gas for payer
0
Charged on error
never
agent.ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const paidFetch = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:1874", client: new ExactEvmScheme(account) }],
  spendControls: {
    allowedAssets: [{
      network: "eip155:1874",
      asset: "0xcedfB56113143d55b2358b8CFbB0dEB5Ad2f55a7",
      maxAmountPerPayment: "100000",
    }],
  },
});

const res = await paidFetch("https://your-domain.com/api/v1/search?query=x402");
console.log(await res.json());

Price list

USDT, 6 decimals. Settled only when the response succeeds.

EndpointWhat it doesBase unitsUSDT
GET/api/v1/searchStructured web search results100000.01
POST/api/v1/fetchClean content extraction from up to 10 URLs150000.015
POST/api/v1/agent/runGoal-based browser automation500000.05
POST/api/v1/agent/run-sseStreaming agent run500000.05
POST/api/v1/researchCited multi-source research report2000000.20.50 for mode "max"
POST/api/v1/datasetsStructured dataset filled from the web200000.02per target row
POST/api/v1/browserRemote browser session (CDP)300000.03

How a paid request works

  1. 01

    Request

    Call any endpoint. No key, no account, no signup.

  2. 02

    402 Payment Required

    The server answers with a PAYMENT-REQUIRED header: price, asset, pay-to.

  3. 03

    Sign, don't send

    Your wallet signs an EIP-3009 authorization. Gasless; the facilitator submits it.

  4. 04

    Result + receipt

    Retry returns the result with a PAYMENT-RESPONSE header carrying the tx hash.

Facilitator https://whitechain.007575.xyz · Asset 0xcedfB56113143d55b2358b8CFbB0dEB5Ad2f55a7