82trust / 100

Unshorten

by Quartermaster URL Unshortener in Security & trust

x402 APIPassing, checked 1 h ago

Expand a shortened or redirecting URL: follows the redirect chain server-side and returns every hop plus the final destination, re-validating each hop against SSRF.

GET https://quartermaster.surewhynot.app/v1/unshorten

Last 30 days

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

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://quartermaster.surewhynot.app/v1/unshorten?url=https%3A%2F%2Fbit.ly%2F3xExample"
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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fquartermaster.surewhynot.app%2Fv1%2Funshorten
const res = await pay("https://quartermaster.surewhynot.app/v1/unshorten?url=https%3A%2F%2Fbit.ly%2F3xExample");
console.log(await res.json());

Example input

{
  "url": "https://bit.ly/3xExample"
}

Example output

{
  "final_url": "https://example.com/landing",
  "hops": [
    {
      "location": "https://t.co/abc",
      "status": 301,
      "url": "https://bit.ly/3xExample"
    },
    {
      "location": "https://example.com/landing",
      "status": 301,
      "url": "https://t.co/abc"
    },
    {
      "status": 200,
      "url": "https://example.com/landing"
    }
  ],
  "input": "https://bit.ly/3xExample",
  "redirect_count": 2,
  "resolved": true,
  "status": 200
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed40248 ms$0.002
4 h agoPassed40240 ms$0.002
9 h agoPassed402123 ms$0.002
11 h agoPassed40243 ms$0.002
15 h agoPassed402865 ms$0.002
20 h agoPassed402832 ms$0.002