W

Workers · URL Preflight

by Workers

GETBase

$0.005

per call · USD Coin on Base

Check a URL before fetching it: is it alive, final URL after redirects, HTTP status, content type, HTML title, and whether robots.txt allows your user-agent. Link checker and fetch preflight for agents.

Endpoint

GET https://toolbelt402.tpoborne.workers.dev/url/preflight

1

Calls / 30d

1

Unique payers / 30d

Aug 30

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://toolbelt402.tpoborne.workers.dev/url/preflight", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://toolbelt402.tpoborne.workers.dev/url/preflight?ua=my-agent%2F1.0&url=https%3A%2F%2Fexample.com%2F" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "alive": true,
  "contentType": "text/html; charset=UTF-8",
  "finalUrl": "https://example.com/",
  "redirects": [],
  "requestedUrl": "https://example.com/",
  "robots": {
    "allowed": true,
    "fetched": true,
    "group": "*",
    "matchedRule": null
  },
  "status": 200,
  "timingMs": 350,
  "title": "Example Domain"
}

Payment details

Pay to0x06b40bf8dfdc45049ea7f600c84301e227a2ca15
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Workers & similar services