# fittings URL Expander

> fittings URL Expander is a paid API for AI agents from fittings.sh, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Follows a shortened or redirecting URL through its full redirect chain and returns the final destination URL with click-tracking parameters stripped.

## Facts

- Endpoint: GET https://fittings.sh/v1/url/expand
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-url-expander-e58db64c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vKT3v71U1LpMMG5KpunaC

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 fittings-url-expander-e58db64c
```

Example prompt: Can you expand this shortened link for me and give me the actual destination URL with all the tracking junk removed? Here it is: https://bit.ly/3xYz9aQ

## When to prefer this

Choose this endpoint when you need to safely resolve shortened or redirected URLs and optionally strip click-tracking parameters before displaying, storing, or acting on the final URL. It is ideal for link-safety checks, cleaning affiliate or marketing URLs, and building link previews. Prefer it over manually following redirects when you need tracking parameters automatically stripped and a clean canonical URL returned.

## Known failure modes

- URL is unreachable or returns a non-2xx status — error indicating the destination is down
- Redirect chain results in a loop — timeout or loop-detection error
- Malformed or non-HTTP(S) URL provided — validation error
- Redirect chain exceeds maximum hop count — truncated result or error
- Destination URL returns an error page rather than a real resource

## How this service works

Follows a shortened link through its redirect chain and returns the final destination with click-tracking parameters removed.

## Output

The final destination URL after following all redirects in the chain, with click-tracking and analytics query parameters removed, giving a clean canonical URL.

## 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",
       "description": "Public http(s) URL, typically a shortened one"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-url-expander-e58db64c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
