# x402.forgemesh.io URL Expander

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

Follows a short or redirecting URL through up to 6 hops and returns the final destination URL, full redirect chain, and final HTTP status code.

## Facts

- Endpoint: POST https://x402.forgemesh.io/url-expand
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-forgemesh-io-url-expander-b25358d0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w83n8zT_l4QyR9Fn7LEcW

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 x402-forgemesh-io-url-expander-b25358d0 -d '<json body>'
```

Example prompt: Can you trace where this link actually goes before I click it — https://bit.ly/3xKqPWz — and show me the full redirect chain and final destination?

## When to prefer this

Use this endpoint when you need to safely resolve a shortened, obfuscated, or multi-hop redirect URL to its true destination without exposing internal infrastructure. Ideal for phishing triage, affiliate link auditing, or any scenario where you need to know the real endpoint of a link before acting on it. Prefer this over a raw HTTP client when SSRF protection and hop-by-hop chain visibility are required.

## Known failure modes

- URL exceeds 6 redirect hops — chain truncated or error returned
- Target URL is unreachable or returns a network timeout
- SSRF guard blocks internal/private IP address targets
- Malformed or missing URL input returns validation error
- Target server returns non-standard redirect that cannot be followed

## How this service works

URL expansion API: safely follow a short or redirecting link (up to 6 hops, SSRF-guarded) and return the final URL, complete redirect chain, and final HTTP status — see where a link REALLY goes before touching it. For link-safety checks, affiliate auditing, and phishing triage.

## Output

Returns the fully resolved final URL after following all redirects (up to 6 hops), the complete ordered list of intermediate redirect URLs, and the HTTP status code of the final response. SSRF protections are applied to prevent requests to internal/private network addresses.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": [
   "https://bit.ly/example",
   "https://t.co/x",
   "https://example.com/landing"
  ],
  "final_url": "https://example.com/landing",
  "redirects": 2
 }
}
```

## More

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