# AgentShelf URL Expander

> AgentShelf URL Expander is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Follows up to 5 redirects on a given URL (SSRF-safe, HEAD/GET only) and returns the final resolved URL, HTTP status, and the full redirect chain.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/url-expand?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-url-expander-fb9cd4a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YZVa7oFbfyLmEDbi3YRL1

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 agentshelf-url-expander-fb9cd4a1 -d '<json body>'
```

Example prompt: Can you follow all the redirects on this link — https://bit.ly/3xQmAbZ — and tell me the final URL it lands on and every hop along the way?

## When to prefer this

Choose this endpoint when you need to safely resolve a URL through its full redirect chain and get the canonical final destination — especially for shortened links, tracking URLs, or affiliate redirects. It is SSRF-safe, making it appropriate for automated agent pipelines where untrusted URLs may be submitted. Prefer the free POST /v1/sandbox/url-expand first if available; use this paid endpoint when the sandbox is unavailable or when you need production reliability.

## Known failure modes

- URL that triggers more than 5 redirects will be cut off at the limit
- SSRF-blocked addresses (private IPs, localhost) will be rejected for security reasons
- Malformed or too-short URLs (under 8 chars) will fail input validation
- Network timeouts or unreachable hosts will return an error status
- URLs returning non-redirect 4xx/5xx responses at any hop will surface that status

## How this service works

Call when an agent needs to follow redirects (max 5, SSRF-safe HEAD/GET) and receive final_url, status, and redirect_chain. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/url-expand first.

## Output

Returns the resolved final_url after following up to 5 redirects, the HTTP status code at the final destination, and a redirect_chain array listing every intermediate URL visited along the way.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "examples": [
    "https://example.com/"
   ],
   "maxLength": 2048,
   "minLength": 8,
   "description": "Public http(s) URL to fetch. Private, localhost, link-local, and metadata hosts are rejected."
  }
 }
}
```

## More

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