Developer API

Integrate wzzlink directly into your applications, Telegram bots, or Discord scripts for free. No authentication or API keys required. Rate limits apply to prevent abuse.

POST
https://wzzlink.pages.dev/api/shorten
Request Body (JSON)
Parameter Type Description
original_url String (Required) The long URL you want to shorten.
custom_code String (Optional) Custom alias (3-30 chars, alphanumeric/hyphens).
is_burn Boolean (Optional) Set to true for Burn After Reading (one-time use).
expiry_hours Integer (Optional) Hours until deletion. Use 24 or 168 (7 days).
cURL Example
curl -X POST https://wzzlink.pages.dev/api/shorten \ -H "Content-Type: application/json" \ -d '{ "original_url": "https://github.com/wzzkrishnaaa", "custom_code": "my-github", "is_burn": false }'
Success Response (200 OK)
{ "short_url": "https://wzzlink.pages.dev/my-github", "short_code": "my-github", "is_burn": 0 }