# URL Shortener API by Klymax402

> URL Shortener API by Klymax402 is a paid API for AI agents from url-shortener.api.klymax402.com, paid per call via x402, $0.001/call, status down (last checked 2026-10-12).

Takes a long URL and returns a shortened version, optionally with a custom alias

## Facts

- Endpoint: GET https://url-shortener.api.klymax402.com/api/shorten?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Success rate: 0% of calls made through Zero
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/url-shortener-api-klymax402-com-4e4c5f83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HzQ6Uk9rFpHeosz6LI3iz

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 url-shortener-api-klymax402-com-4e4c5f83
```

Example prompt: Can you shorten this URL for me — https://www.example.com/some/very/long/path?with=query&params=here — and use the custom alias 'mylink' if possible?

## When to prefer this

Use this endpoint when you need to convert a long URL into a short, shareable link, especially when a custom memorable alias is desired. Good for sharing in messages, social posts, or anywhere character count matters.

## Known failure modes

- Invalid or malformed input URL returns an error
- Custom alias already taken returns a conflict error
- Custom alias too short or too long (outside 3-20 chars) returns a validation error
- Network timeout or service unavailability returns a 5xx error
- Non-URL string input may return a bad request error

## How this service works

Shorten a URL and return the shortened version

## Output

Returns a shortened URL string that redirects to the original long URL, optionally using the provided custom alias (3-20 alphanumeric characters).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "The URL to shorten"
  },
  "custom_alias": {
   "type": "string",
   "description": "Optional custom alias for the short URL (3-20 alphanumeric chars)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/url-shortener-api-klymax402-com-4e4c5f83/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from url-shortener.api.klymax402.com](https://www.zero.xyz/host/url-shortener.api.klymax402.com/llms.txt)
