Free URL Shortener API

Create short links without an account on the homepage. For scripts and integrations, sign up and apply for API access. Sign-up, applications, and approved API usage are free.

Developer API

Copy your key from the dashboard after approval. Replace YOUR_API_KEY with your own key and keep it on the server.

Quick Start

  1. Create a free account and verify your email.
  2. Open the dashboard and submit a Developer API application.
  3. After approval, copy your API key and use it in the request below.
POSThttps://url.asia/api/v1/links
cURL · POST
curl --request POST 'https://url.asia/api/v1/links' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"targetUrl":"https://example.com/","expiresIn":86400}'

A successful request returns 201 Created. Share the response's shortUrl. See request parameters and error responses for details.

Guest links

Open the URL.ASIA homepage, paste a URL, and choose an optional slug and expiry before creating the link. Your browser sends a same-origin request.

POSThttps://url.asia/api/links
Content-Type: application/json
{
  "targetUrl": "https://example.com/",
  "customSlug": "",
  "expiresIn": null
}

Request parameters

JSONTypeRequest parameters
targetUrlstringtargetUrl is required and must be a public HTTP(S) URL of up to 8,192 bytes after encoding.
customSlugstringcustomSlug is optional, uses 3–24 ASCII letters, digits, - or _, and is lowercased; omit it for automatic generation.
expiresIninteger · nullexpiresIn is in seconds; omit it or use null for no scheduled expiry.

expiresIn: 3600 · 86400 · 604800 · 2592000 · null

Developer API

Copy your key from the dashboard after approval. Replace YOUR_API_KEY with your own key and keep it on the server.

To create a short link, use the Quick Start request above.

PATCHhttps://url.asia/api/v1/links/{slug}

You can update links owned by your account. 200 means updated. 202 means pending review, and the existing destination stays live.

cURL · PATCH
curl --request PATCH 'https://url.asia/api/v1/links/YOUR_SLUG' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{"targetUrl":"https://example.com/new"}'

Keep the API key, statsUrl, and statsToken private.

Responses and errors

Creation returns 201. Share shortUrl. expiresAt is a Unix timestamp in seconds or null.

201 Created
{
  "ok": true,
  "slug": "example",
  "targetUrl": "https://example.com/",
  "shortUrl": "https://url.asia/example",
  "statsUrl": "https://url.asia/s/DEMO_TOKEN",
  "statsToken": "DEMO_TOKEN",
  "expiresAt": null
}
HTTPResponses and errors
400errInvalidUrl · errBlocked · errInvalidExpiresIn
Please enter a valid, complete URL This target domain does not comply with URL.ASIA rules
errSlugReserved · errSlugFormat · errCsrfFailed
This custom alias is reserved. Use 3–24 letters, digits, hyphens or underscores for your custom alias. Page verification failed. Refresh the page and try again.
401errUnauthorized
The API key is missing or invalid.
403errApiNotApproved · errPermDenied
The account has not been approved or cannot perform this action.
404errNotFound
The short link doesn't exist or is not owned by this account.
409errSlugTaken
This custom alias is already in use
429errRateLimit
503errDatabaseBusy · errSafetyUnavailable

After a 429, wait the number of seconds in Retry-After or retryAfter. window identifies the limit. Daily quotas reset in UTC.

Request a higher quota for free

Guest limits apply per traffic source. Signed-in web creation and API calls share the account quota. Applications and approved usage are free.

  1. Register
  2. Dashboard · Developer API
    Enter your use case and expected daily request volume. Submit the request and track its review in the dashboard. Copy your key after approval.