W

Workers · Resolve Redirect Chain

by Workers

POSTBase

$0.01

per call · USD Coin on Base

Resolve an HTTP or HTTPS URL through redirects and return the complete redirect chain, HTTP status for each hop, final URL, and redirect safety findings. Use when an agent needs to determine where a URL actually leads before visiting, citing, downloading, or trusting it.

Endpoint

POST https://atomic-verify-claim-poc.topadvancement-atomic.workers.dev/api/resolve-redirect-chain

5

Calls / 30d

3

Unique payers / 30d

Sep 4

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://atomic-verify-claim-poc.topadvancement-atomic.workers.dev/api/resolve-redirect-chain", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://example.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://atomic-verify-claim-poc.topadvancement-atomic.workers.dev/api/resolve-redirect-chain" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "failure_reason": null,
  "final_http_status": 200,
  "final_url": "https://example.com/",
  "hop_count": 0,
  "hops": [],
  "latency_ms": 125,
  "loop_detected": false,
  "requested_url": "https://example.com",
  "status": "NO_REDIRECT"
}

Payment details

Pay to0x16f619c78f5f85d00663a7275cca3d4a01f82b11
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Workers & similar services