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.
| Endpoint | What it does | Base units | USDT |
|---|---|---|---|
| GET/api/v1/search | Structured web search results | 10000 | 0.01 |
| POST/api/v1/fetch | Clean content extraction from up to 10 URLs | 15000 | 0.015 |
| POST/api/v1/agent/run | Goal-based browser automation | 50000 | 0.05 |
| POST/api/v1/agent/run-sse | Streaming agent run | 50000 | 0.05 |
| POST/api/v1/research | Cited multi-source research report | 200000 | 0.20.50 for mode "max" |
| POST/api/v1/datasets | Structured dataset filled from the web | 20000 | 0.02per target row |
| POST/api/v1/browser | Remote browser session (CDP) | 30000 | 0.03 |
How a paid request works
- 01
Request
Call any endpoint. No key, no account, no signup.
- 02
402 Payment Required
The server answers with a PAYMENT-REQUIRED header: price, asset, pay-to.
- 03
Sign, don't send
Your wallet signs an EIP-3009 authorization. Gasless; the facilitator submits it.
- 04
Result + receipt
Retry returns the result with a PAYMENT-RESPONSE header carrying the tx hash.
Facilitator https://whitechain.007575.xyz · Asset 0xcedfB56113143d55b2358b8CFbB0dEB5Ad2f55a7