# AGISHub URL Shortener

> AGISHub URL Shortener is a paid API for AI agents from api.agishub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Shortens a long URL into a compact api.agishub.com/s/<code> redirect link stored for one year.

## Facts

- Endpoint: POST https://api.agishub.com/paid/shorten
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agishub-url-shortener-85546ab4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wGmf8d366N9KYTgqrtVTt

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 agishub-url-shortener-85546ab4 -d '<json body>'
```

Example prompt: Can you shorten this URL for me so I can share it easily? Here's the link: https://www.example.com/very/long/path/to/some/article?with=lots&of=query&params=true

## When to prefer this

Choose this endpoint when an agent needs to programmatically shorten URLs and is already operating within the agishub.com ecosystem, or when x402 micropayment-compatible URL shortening is required. Well-suited for automated workflows that generate many links needing compact shareable forms.

## Known failure modes

- Invalid or non-http/https URL provided — returns a 400-level error
- URL is unreachable or malformed — may be rejected
- Payment not fulfilled — returns 402 Payment Required
- Service unavailable — returns 5xx error

## How this service works

Shorten a long URL into a compact api.agishub.com/s/<code> link that redirects to the original. Codes are stored for a year.

## Output

A JSON object containing the shortened URL in the form api.agishub.com/s/<code>, which redirects to the original long URL and remains active for one year.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "description": "The long http/https URL to shorten."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "enum": [
      "http"
     ],
     "type": "string"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "enum": [
      "json"
     ],
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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