81trust / 100

Url Unwrap

by api.x-402.online in Weather & location

x402 APIPassing, checked 3 h ago

Trace the redirect chain of a URL to its final destination without downloading page bodies: every hop with its status code, time and Location header, the final URL, whether the domain changed, and loop detection. Useful before trusting a short link or an ad link. Query: ?url=https://bit.ly/…

GET https://api.x-402.online/v1/url/unwrap

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
134 ms typical, 134 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.x-402.online/v1/url/unwrap?url=http%3A%2F%2Fgithub.com"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.x-402.online%2Fv1%2Furl%2Funwrap
const res = await pay("https://api.x-402.online/v1/url/unwrap?url=http%3A%2F%2Fgithub.com");
console.log(await res.json());

Example input

{
  "url": "http://github.com"
}

Example output

{
  "chain": [
    {
      "location": "https://github.com/",
      "status": 301,
      "url": "http://github.com"
    },
    {
      "status": 200,
      "url": "https://github.com/"
    }
  ],
  "domain_changed": false,
  "final_url": "https://github.com/",
  "hops": 1
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402134 ms$0.005