Guest links
No sign-up. Paste a URL and create.
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.
No sign-up. Paste a URL and create.
Copy your key from the dashboard after approval. Replace YOUR_API_KEY with your own key and keep it on the server.
https://url.asia/api/v1/linkscurl --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.
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.
https://url.asia/api/links{
"targetUrl": "https://example.com/",
"customSlug": "",
"expiresIn": null
}
| JSON | Type | Request parameters |
|---|---|---|
targetUrl | string | targetUrl is required and must be a public HTTP(S) URL of up to 8,192 bytes after encoding. |
customSlug | string | customSlug is optional, uses 3–24 ASCII letters, digits, - or _, and is lowercased; omit it for automatic generation. |
expiresIn | integer · null | expiresIn is in seconds; omit it or use null for no scheduled expiry. |
expiresIn: 3600 · 86400 · 604800 · 2592000 · null
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.
https://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 --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.
Creation returns 201. Share shortUrl. expiresAt is a Unix timestamp in seconds or null.
{
"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
}
| HTTP | Responses and errors |
|---|---|
| 400 | errInvalidUrl · errBlocked · errInvalidExpiresInPlease enter a valid, complete URL This target domain does not comply with URL.ASIA rules errSlugReserved · errSlugFormat · errCsrfFailedThis 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. |
| 401 | errUnauthorizedThe API key is missing or invalid. |
| 403 | errApiNotApproved · errPermDeniedThe account has not been approved or cannot perform this action. |
| 404 | errNotFoundThe short link doesn't exist or is not owned by this account. |
| 409 | errSlugTakenThis custom alias is already in use |
| 429 | errRateLimit |
| 503 | errDatabaseBusy · errSafetyUnavailable |
After a 429, wait the number of seconds in Retry-After or retryAfter. window identifies the limit. Daily quotas reset in UTC.
Guest limits apply per traffic source. Signed-in web creation and API calls share the account quota. Applications and approved usage are free.