Home / Utilities / URL Shortener & Click Analytics API
URL Shortener & Click Analytics API logo

URL Shortener & Click Analytics API

Published by @mdforge · Verified
99.98% uptime ~15ms avg AI Score 94/100

Create short links at indieapis.com/s/<code> with custom aliases, expiration, max-click limits, live 302 redirects & referrer click analytics.

Try it live
https://api.indieapis.com/v1/url-shortener/shorten
Shorten any public http/https URL with optional custom alias, expires_in_hours & max_clicks.
Response Press Run to call the live API
{
  "ok": true
}

            

Overview

Create short links at indieapis.com/s/ with custom aliases, expiration, max-click limits, live 302 redirects & referrer click analytics.

Self-hosted production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.

Gateway Headers & Hard Caps

Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset. When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.

4 endpoints

Base URL
https://api.indieapis.com/v1/url-shortener
MCP
https://indieapis.com/mcp/url-shortener
Method Path Parameters Description
POST /shorten url*, alias, max_clicks, expires_in_hours Shorten any public http/https URL with optional custom alias, expires_in_hours & max_clicks.
GET /stats code* Check click count, active/expired status, last click timestamp & referrer breakdown.
GET /list limit Return all short links created under your IndieAPIs account.
POST /delete code* Permanently delete a short link owned by your account.