# URL Unshortener / Redirect Chain Expander

> URL Unshortener / Redirect Chain Expander is a paid API for AI agents from quartermaster.surewhynot.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Follows a shortened or redirecting URL server-side through every hop and returns the full redirect chain plus final destination, with SSRF validation at each step.

## Facts

- Endpoint: GET https://quartermaster.surewhynot.app/v1/unshorten
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-unshortener-redirect-chain-expander-d7b73274
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bJ3K2-sajNAgGAgK3FO81

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability url-unshortener-redirect-chain-expander-d7b73274
```

Example prompt: Can you trace all the redirects for this link and tell me every hop plus the final destination: https://bit.ly/3xAmPLe?

## When to prefer this

Choose this endpoint when you need server-side, safe resolution of a URL redirect chain without exposing your own infrastructure — particularly useful when SSRF safety validation at every hop is required, or when you need the full intermediate hop list rather than just the final URL.

## Known failure modes

- URL is unreachable or times out — returns error with no chain
- SSRF check blocks a hop (e.g. private IP range detected) — chain halted and flagged
- Malformed or non-HTTP URL provided — validation error returned
- Redirect loop detected — returns error indicating circular redirect
- Final destination returns non-redirect status unexpectedly

## How this service works

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.

## Output

An ordered list of every URL hop in the redirect chain (with HTTP status codes per hop), plus the final resolved destination URL, each hop re-validated against SSRF.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "The (possibly shortened) URL to expand"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-unshortener-redirect-chain-expander-d7b73274/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quartermaster.surewhynot.app](https://www.zero.xyz/host/quartermaster.surewhynot.app/llms.txt)
