FetchDelta Quickstart

Start with one narrow workflow: let an agent re-check docs, release notes, pricing, or policy pages only when it needs fresh public web state. The paid path uses x402 on eip155:8453 with USDC settlement.

Best first buyer: an internal agent that answers questions from product docs or release notes and occasionally needs a fresh fetch before it replies.

Pricing

$0.002 /api/resolve per request, about 500 calls per $1
$0.004 /api/diff per request, about 250 calls per $1

Try the preview first

Use the free preview for your real URL The preview endpoint returns title, excerpt, headings, links, and a truncated markdown sample before you pay for the full response.
Promote only useful pages to the paid path If the sample looks useful, switch to the paid resolve or diff endpoint for the same URL.
https://fetchdelta.com/preview

https://fetchdelta.com/api/resolve/preview?url=https%3A%2F%2Fexample.com%2Fpost

Best First Workflow

1. Pick one page your agent already cares about Start with a docs page, changelog, pricing page, or policy page that already appears in prompts or support work.
2. Pay once for the current markdown Use /api/resolve when the agent needs the current clean body, headings, and excerpt.
3. Switch to /api/diff for repeated checks After the first fetch, ask only whether the page changed and inspect the structured diff preview.

Agent Buyer Flow

1. Inspect the endpoint Hit a paid URL and read the 402 Payment Required response headers.
2. Retry with an x402-capable client Use a Base wallet and pay exactly for the request you want.
3. Consume normalized JSON The unlocked response contains clean markdown or a structured diff, not raw page HTML.

Inspect the Paywall

curl -i 'https://fetchdelta.com/api/resolve?url=https%3A%2F%2Fexample.com%2Fpost'

Use the Included CLI

API_BASE_URL=https://fetchdelta.com node scripts/agent-client.js inspect resolve https://example.com

API_BASE_URL=https://fetchdelta.com EVM_PRIVATE_KEY=0x... \
node scripts/agent-client.js pay resolve https://example.com

The repository already includes scripts/agent-client.js, so buyers can inspect or pay with one command instead of wiring a client from scratch.

Paid Endpoints

https://fetchdelta.com/api/resolve?url=https%3A%2F%2Fexample.com%2Fpost

https://fetchdelta.com/api/diff?url=https%3A%2F%2Fexample.com%2Fpost

Node Buyer Example

import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const paidFetch = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:*", client: new ExactEvmScheme(account) }],
});

const response = await paidFetch("https://fetchdelta.com/api/resolve?url=https%3A%2F%2Fexample.com%2Fpost");
const data = await response.json();
console.log(data);

Good First Buyers

Docs copilots Pull the latest public docs page into markdown before answering a user question with stale context.
Release-note monitors Use /api/diff on changelog or release-note pages so the agent only reacts when something moved.
Policy and pricing watchers Track public pages that matter to compliance, quoting, or procurement without keeping a crawler alive full-time.