# Redirect Checker & URL Unshortener

> Redirect Checker & URL Unshortener is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Follows a URL's full redirect chain hop-by-hop (up to 10), returning each hop's status code, Location header, timing, final URL, and loop detection.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/url/redirects?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-redirect-checker-url-89d139ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dRY5mVSFFaiQQNN89CGmf

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 agent-data-tools-revmesh2074-workers-dev-redirect-checker-url-89d139ec
```

Example prompt: Can you trace all the redirect hops for https://bit.ly/3xyz123 and tell me the final destination URL, every intermediate hop with its status code, and whether there are any redirect loops?

## When to prefer this

Choose this endpoint when you need to inspect every hop of a redirect chain rather than just the final destination — especially for unshortening links, auditing SEO redirect chains, verifying HTTPS/www redirect configurations, or checking for redirect loops. It is safer than following redirects in a browser because it checks each hop before requesting it and never loads page content, making it suitable for inspecting untrusted or potentially malicious URLs.

## Known failure modes

- Invalid or non-absolute URL returns an error field
- Private/internal IP addresses are reported but not followed (SSRF protection)
- Chains longer than 10 hops are truncated
- DNS resolution failures or unreachable hosts return an error
- Malformed redirect Location headers may cause chain to terminate early

## How this service works

Follow a URL's redirects hop by hop (up to 10) and return every hop's status code and Location, the final URL, total hops, timing and whether it loops. Expands short links (bit.ly, t.co…) to their destination without loading the page. Every hop is checked before it is requested; redirects to private addresses are reported, not followed. Use to unshorten a link, check an HTTPS or www redirect, or debug SEO redirect chains.

## Output

A JSON object containing: the original URL, an array of hops (each with the URL, HTTP status code, Location header, and response time in ms), the final resolved URL, total number of redirects, the final HTTP status code, and a boolean indicating whether a redirect loop was detected.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "Absolute http(s) URL"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "hops": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "ms": {
      "type": "number"
     },
     "url": {
      "type": "string"
     },
     "status": {
      "type": "number"
     },
     "location": {
      "type": "string"
     }
    }
   }
  },
  "loop": {
   "type": "boolean"
  },
  "error": {},
  "finalUrl": {
   "type": "string"
  },
  "redirects": {
   "type": "number"
  },
  "finalStatus": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-redirect-checker-url-89d139ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
