# Mat Web & Data Toolkit – URL Unshortener

> Mat Web & Data Toolkit – URL Unshortener is a paid API for AI agents from automatom.matt-d59.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Resolves a shortened or redirected URL and returns the full redirect chain, hop count, and final destination URL as JSON.

## Facts

- Endpoint: GET https://automatom.matt-d59.workers.dev/unshorten?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mat-web-data-toolkit-url-unshortener-1f465c3c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8KFadHBP84UTDQsvbmEls

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 mat-web-data-toolkit-url-unshortener-1f465c3c
```

Example prompt: Can you unshorten this link for me and tell me where it actually goes — https://t.co/abc123xyz?

## When to prefer this

Use this endpoint when you need to resolve a shortened, tracked, or obfuscated URL to its final destination and want the full redirect chain with hop counts. Prefer this over a full web-scraping endpoint when you only need the resolved URL, not page content. Best for link safety checks, marketing audit workflows, and deobfuscating embedded tracking links.

## Known failure modes

- URL is unreachable or returns a non-200 status — chain will reflect the failure status
- Infinite redirect loops may cause timeout or max-hop cutoff
- Malformed or non-HTTP URLs will likely trigger a validation error
- Private/intranet URLs will be unreachable from the worker
- Rate limiting or firewall blocks on the target domain may return errors

## How this service works

Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.

## Output

Returns a JSON object containing the input URL, the final resolved URL after all redirects, the total number of redirect hops, and an ordered chain array with each intermediate URL and its HTTP status code.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hops": 0,
  "chain": [
   {
    "url": "https://github.com/",
    "status": 200
   }
  ],
  "input": "https://github.com",
  "final_url": "https://github.com/"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mat-web-data-toolkit-url-unshortener-1f465c3c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automatom.matt-d59.workers.dev](https://www.zero.xyz/host/automatom.matt-d59.workers.dev/llms.txt)
